gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
441 stars 63 forks source link

Add wildcard syntax to table filters #232

Closed ewhauser closed 4 months ago

ewhauser commented 4 months ago

Certain models - such as staging tables - might not be a part of Metabase's table definitions. As opposed to having to specify all includes or excludes, dbtmetabase should allow you to define a wildcard to exclude them, i.e.

        c.export_models(
            metabase_database="my_database",
            schema_filter=Filter(include=["PUBLIC", "SNAPSHOTS"], exclude=["STG_*"]),
            skip_sources=True,
        )
gouline commented 4 months ago

Good point, I've thought about implementing this before.