Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Metabase database ID when exporting models #253

Open
eskrm opened this issue Apr 18, 2024 · 2 comments
Open

Pass Metabase database ID when exporting models #253

eskrm opened this issue Apr 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@eskrm
Copy link

eskrm commented Apr 18, 2024

Currently it seems the only way to pass a Metabase database is by display name. Example from README:

dbt-metabase models \
    --manifest-path target/manifest.json \
    --metabase-url https://metabase.example.com \
    --metabase-api-key mb_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= \
    --metabase-database business \
    --include-schemas public

Can you also support passing the database by numeric ID? For motivation, we have a multi-tenant environment where databases have the same display name and are tracked by ID. Allowing one to pass the database ID makes it possible for the tool to distinguish between those databases.

@gouline gouline added the enhancement New feature or request label Apr 18, 2024
@gouline
Copy link
Owner

gouline commented Apr 18, 2024

Since there's no way to distinguish databases with identical names in the Metabase UI, this seems like a rare hacky use case. I'll wait to see if anyone else upvotes this issue before considering it.

@eskrm
Copy link
Author

eskrm commented Apr 18, 2024

Since there's no way to distinguish databases with identical names in the Metabase UI, this seems like a rare hacky use case. I'll wait to see if anyone else upvotes this issue before considering it.

The databases are managed programmatically by an admin user, and non-admin users are in groups that can only see one of the databases. But yeah, fair enough. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants