src/api/v4/source/dataset.js
function Dataset (tableName) {
  _checkTableName(tableName);
  this._tableName = tableName;

  Base.apply(this, arguments);

  this._appliedFilters.on('change:filters', () => this._updateInternalModelQuery(this._getQueryToApply()));
}
function Dataset (tableName) {
  _checkTableName(tableName);
  this._tableName = tableName;

  Base.apply(this, arguments);

  this._appliedFilters.on('change:filters', () => this._updateInternalModelQuery(this._getQueryToApply()));
}
function Dataset ( tableName ) { _checkTableName ( tableName ) ; this . _tableName = tableName ; Base . apply ( this , arguments ) ; this . _appliedFilters . on ( 'change:filters' , ( ) => this . _updateInternalModelQuery ( this . _getQueryToApply ( ) ) ) ; }
A Dataset that can be used as the data source for layers and dataviews.

@param {string} tableName The name of an existing table
@example
new carto.source.Dataset('european_cities');
@constructor
@fires error
@extends carto.source.Base
@memberof carto.source
@api
A Dataset that can be used as the data source for layers and dataviews .