Skip to content


SQL Models are queries that return base data from a SQL target. These data are then used in Traces


  - name: sql_model
    target: ref(sql_target)
    sql: select * from table_in_target


Field Type Default Description
name string None The unique name of the object across the entire project.
sql string None The sql used to generate your base data
target Any of: MysqlTarget, PostgresqlTarget, SnowflakeTarget, SqliteTarget None A target object defined inline or a ref() to a chart. Override the defaults.target_name