├── .github ├── FUNDING.yml └── workflows │ ├── codeql-analysis.yml │ ├── main.yml │ └── pull_request.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── dbtmetabase ├── __init__.py ├── __main__.py ├── _exposures.py ├── _models.py ├── core.py ├── errors.py ├── format.py ├── manifest.py └── metabase.py ├── pyproject.toml ├── sandbox ├── .env ├── .gitignore ├── Dockerfile ├── README.md ├── dbt_project.yml ├── docker-compose.yml ├── entrypoint.py ├── metabase.db │ └── metabase.db.mv.db ├── models │ ├── .gitignore │ ├── customers.sql │ ├── orders.sql │ ├── payments.sql │ ├── schema.yml │ └── staging │ │ ├── schema.yml │ │ ├── stg_customers.sql │ │ ├── stg_orders.sql │ │ └── stg_payments.sql ├── postgres-initdb │ └── init.sql ├── profiles.yml └── seeds │ ├── raw_customers.csv │ ├── raw_orders.csv │ └── raw_payments.csv ├── tests ├── __init__.py ├── _mocks.py ├── conftest.py ├── fixtures │ ├── api │ │ ├── card │ │ │ ├── 27.json │ │ │ ├── 28.json │ │ │ ├── 29.json │ │ │ ├── 30.json │ │ │ ├── 31.json │ │ │ ├── 32.json │ │ │ └── 33.json │ │ ├── collection.json │ │ ├── collection │ │ │ ├── 3 │ │ │ │ └── items.json │ │ │ └── root │ │ │ │ └── items.json │ │ ├── dashboard │ │ │ └── 2.json │ │ ├── database.json │ │ ├── database │ │ │ └── 2 │ │ │ │ └── metadata.json │ │ ├── table.json │ │ └── user │ │ │ └── 1.json │ ├── exposure │ │ ├── collection │ │ │ ├── our_analytics.yml │ │ │ └── коллекция.yml │ │ ├── default │ │ │ └── exposures.yml │ │ └── type │ │ │ ├── card │ │ │ ├── 27.yml │ │ │ ├── 28.yml │ │ │ ├── 29.yml │ │ │ ├── 30.yml │ │ │ ├── 31.yml │ │ │ ├── 32.yml │ │ │ └── 33.yml │ │ │ └── dashboard │ │ │ └── 2.yml │ ├── manifest-v11-disabled.json │ ├── manifest-v12.json │ ├── manifest-v2.json │ └── test_dump_yaml.yml ├── test_database_schema_table_format.py ├── test_exposures.py ├── test_format.py ├── test_manifest.py ├── test_metabase.py └── test_models.py └── uv.lock /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/pull_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/.github/workflows/pull_request.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/README.md -------------------------------------------------------------------------------- /dbtmetabase/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/__init__.py -------------------------------------------------------------------------------- /dbtmetabase/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/__main__.py -------------------------------------------------------------------------------- /dbtmetabase/_exposures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/_exposures.py -------------------------------------------------------------------------------- /dbtmetabase/_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/_models.py -------------------------------------------------------------------------------- /dbtmetabase/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/core.py -------------------------------------------------------------------------------- /dbtmetabase/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/errors.py -------------------------------------------------------------------------------- /dbtmetabase/format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/format.py -------------------------------------------------------------------------------- /dbtmetabase/manifest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/manifest.py -------------------------------------------------------------------------------- /dbtmetabase/metabase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/dbtmetabase/metabase.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/pyproject.toml -------------------------------------------------------------------------------- /sandbox/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/.env -------------------------------------------------------------------------------- /sandbox/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/.gitignore -------------------------------------------------------------------------------- /sandbox/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/Dockerfile -------------------------------------------------------------------------------- /sandbox/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/README.md -------------------------------------------------------------------------------- /sandbox/dbt_project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/dbt_project.yml -------------------------------------------------------------------------------- /sandbox/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/docker-compose.yml -------------------------------------------------------------------------------- /sandbox/entrypoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/entrypoint.py -------------------------------------------------------------------------------- /sandbox/metabase.db/metabase.db.mv.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/metabase.db/metabase.db.mv.db -------------------------------------------------------------------------------- /sandbox/models/.gitignore: -------------------------------------------------------------------------------- 1 | /exposures/ 2 | -------------------------------------------------------------------------------- /sandbox/models/customers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/customers.sql -------------------------------------------------------------------------------- /sandbox/models/orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/orders.sql -------------------------------------------------------------------------------- /sandbox/models/payments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/payments.sql -------------------------------------------------------------------------------- /sandbox/models/schema.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/schema.yml -------------------------------------------------------------------------------- /sandbox/models/staging/schema.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/staging/schema.yml -------------------------------------------------------------------------------- /sandbox/models/staging/stg_customers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/staging/stg_customers.sql -------------------------------------------------------------------------------- /sandbox/models/staging/stg_orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/staging/stg_orders.sql -------------------------------------------------------------------------------- /sandbox/models/staging/stg_payments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/models/staging/stg_payments.sql -------------------------------------------------------------------------------- /sandbox/postgres-initdb/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/postgres-initdb/init.sql -------------------------------------------------------------------------------- /sandbox/profiles.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/profiles.yml -------------------------------------------------------------------------------- /sandbox/seeds/raw_customers.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/seeds/raw_customers.csv -------------------------------------------------------------------------------- /sandbox/seeds/raw_orders.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/seeds/raw_orders.csv -------------------------------------------------------------------------------- /sandbox/seeds/raw_payments.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/sandbox/seeds/raw_payments.csv -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/_mocks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/_mocks.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/fixtures/api/card/27.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/27.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/28.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/28.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/29.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/29.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/30.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/30.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/31.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/31.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/32.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/32.json -------------------------------------------------------------------------------- /tests/fixtures/api/card/33.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/card/33.json -------------------------------------------------------------------------------- /tests/fixtures/api/collection.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/collection.json -------------------------------------------------------------------------------- /tests/fixtures/api/collection/3/items.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/collection/3/items.json -------------------------------------------------------------------------------- /tests/fixtures/api/collection/root/items.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/collection/root/items.json -------------------------------------------------------------------------------- /tests/fixtures/api/dashboard/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/dashboard/2.json -------------------------------------------------------------------------------- /tests/fixtures/api/database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/database.json -------------------------------------------------------------------------------- /tests/fixtures/api/database/2/metadata.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/database/2/metadata.json -------------------------------------------------------------------------------- /tests/fixtures/api/table.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/table.json -------------------------------------------------------------------------------- /tests/fixtures/api/user/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/api/user/1.json -------------------------------------------------------------------------------- /tests/fixtures/exposure/collection/our_analytics.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/collection/our_analytics.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/collection/коллекция.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/collection/коллекция.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/default/exposures.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/default/exposures.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/27.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/27.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/28.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/28.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/29.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/29.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/30.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/30.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/31.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/31.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/32.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/32.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/card/33.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/card/33.yml -------------------------------------------------------------------------------- /tests/fixtures/exposure/type/dashboard/2.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/exposure/type/dashboard/2.yml -------------------------------------------------------------------------------- /tests/fixtures/manifest-v11-disabled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/manifest-v11-disabled.json -------------------------------------------------------------------------------- /tests/fixtures/manifest-v12.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/manifest-v12.json -------------------------------------------------------------------------------- /tests/fixtures/manifest-v2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/manifest-v2.json -------------------------------------------------------------------------------- /tests/fixtures/test_dump_yaml.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/fixtures/test_dump_yaml.yml -------------------------------------------------------------------------------- /tests/test_database_schema_table_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_database_schema_table_format.py -------------------------------------------------------------------------------- /tests/test_exposures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_exposures.py -------------------------------------------------------------------------------- /tests/test_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_format.py -------------------------------------------------------------------------------- /tests/test_manifest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_manifest.py -------------------------------------------------------------------------------- /tests/test_metabase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_metabase.py -------------------------------------------------------------------------------- /tests/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/tests/test_models.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gouline/dbt-metabase/HEAD/uv.lock --------------------------------------------------------------------------------