Class RVCsvDataSourceItem

The data source item used to represent a dataset from a CSV file, it includes optional settings like the separator to use when parsing the data.

Hierarchy

Index

Accessors

  • get dateFormat(): nullableString

    Optional date format to use when parsing/detecting date columns, if not specified Reveal will try to infer the date format to use for each column (if it detects the column is a date, date time or time column).

    Returns nullableString

  • set dateFormat(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get defaultRefreshRate(): number | null

    Returns number | null

  • set defaultRefreshRate(v: number | null): void

    Default value to use for "Refresh Data" setting for visualizations created using this item, expressed in minutes (e.g. 1440 = 1 day). A value of N means that whenever the visualization requests data, the engine will return data found in the cache if it's not older than N minutes -this means, if the engine fetched it from the datasource no more than N minutes before-. If not set it will use the default value set in the data source object.

    Parameters

    • v: number | null

    Returns void

  • get description(): nullableString

    Description of this data source item.

    Returns nullableString

  • set description(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get encoding(): nullableString

    The encoding to use, if not specified Reveal will try to detect it automatically.

    Returns nullableString

  • set encoding(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get id(): nullableString

    The value that identifies this item in the data source, it might be for example the name of the schema concatenated with the table name.

    Returns nullableString

  • set id(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get resourceItem(): RVDataSourceItem | null

    The resource item used to get the data for the referenced file, must be an item from one of the resource providers: Sharepoint, Web Resource, REST API, etc.

    Returns RVDataSourceItem | null

  • set resourceItem(value: RVDataSourceItem | null): void

    Parameters

    Returns void

  • get separator(): nullableString

    The separator to use, one of ',', ';', or 'TAB'. If not specified it will be detected automatically.

    Returns nullableString

  • set separator(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get subtitle(): nullableString

    The subtitle of the data source, if not null will be displayed to users instead of connection information like host and database name.

    Returns nullableString

  • set subtitle(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void

  • get title(): nullableString

    The title of the item, as displayed to the user, it might be for example the name of the table in a database.

    Returns nullableString

  • set title(value: nullableString): void

    Parameters

    • value: nullableString

    Returns void