API reference#

dbt_ibis.ref(name: str) None[source]#

A reference to a dbt model.

dbt_ibis.source(source_name: str, table_name: str) None[source]#

A reference to a dbt source.

dbt_ibis.depends_on(*references: _Reference) Callable[source]#

Decorator to specify the dependencies of an Ibis model. You can pass either dbt_ibis.ref or dbt_ibis.source objects as arguments.

dbt_ibis.compile_ibis_to_sql(dbt_parse_arguments: list[str] | None = None) None[source]#

Compiles all Ibis code to SQL and writes them to the .sql files in the dbt project. There is no need to call this function directly as you’d usually use the dbt-ibis command line interface instead. This function is equivalent to dbt-ibis precompile. However, it is provided for convenience in case you want to call it from Python.