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

Add dialect.namespace #947

Open
roll opened this issue Jun 25, 2024 · 3 comments
Open

Add dialect.namespace #947

roll opened this issue Jun 25, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@roll
Copy link
Member

roll commented Jun 25, 2024

          @roll, I'm not sure if there's still time, but wouldn't it make sense to add a `dialect.namespace` to specify the database schema where the table is located? 

frictionless-py for example already allows this.

Originally posted by @fjuniorr in #920 (comment)

@roll
Copy link
Member Author

roll commented Jun 25, 2024

@fjuniorr
I think we can include it in the next version i.e. v2.1. I'm wondering when namespace can be applicable as I guess it's not a part of SQLite?

@fjuniorr
Copy link

SQLite indeed does not have a traditional schema1, but others do, such as PostgreSQL and DuckDB, understood as a collection of database objects within a single database.

I currently utilize the namespace support in frictionless-py to load data packages into different schemas, which helps prevent name conflicts among my tables. These tables are named after each resource that exists under the same name in different packages.

Footnotes

  1. Only attached databases.

@roll roll added this to the v2.1 milestone Jun 26, 2024
@roll
Copy link
Member Author

roll commented Jun 26, 2024

@fjuniorr
Ahh I have forgotten about DuckDB. The Data Package spec itself in a form of a published data package is kinda hard to apply for classical client/server databases as they require authz but in-process ones are really good uses cases so having in mind DuckDB this feature totally makes sense for me 👍

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

No branches or pull requests

2 participants