Skip to content

SqlModel

Attributes

Field Type Default Description
path string None A unique path to this object
name string None The unique name of the object across the entire project.
file_path string None The path to the file that contains the object definition.
sql string None The sql used to generate your base data
source Any of: BigQuerySource, CSVFileSource, ClickhouseSource, DuckdbSource, ExcelFileSource, MysqlSource, PostgresqlSource, RedshiftSource, SnowflakeSource, SqliteSource, string or string None A source object defined inline or a ref() to a chart. Override the defaults.source_name
metrics Array of Metric [] A list of model-scoped metrics that aggregate data from this model.
dimensions Array of Dimension [] A list of computed dimensions (row-level calculations) for this model.