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

Configure search_path #3663

Open
prog8 opened this issue Oct 20, 2024 · 1 comment
Open

Configure search_path #3663

prog8 opened this issue Oct 20, 2024 · 1 comment
Labels
📚 postgresql enhancement New feature or request

Comments

@prog8
Copy link

prog8 commented Oct 20, 2024

What do you want to change?

Today catalog.Catalog has a field called SearchPath. The only place it is configured is hardcoded and is part of catalog initialization here.

It's a common use case to have search_path per connection and then one expects not to use full name like schema.table but just call table explicitly. It'd be good to have ability to configure search_path when sqlc generate is triggered.

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response

@prog8 prog8 added the enhancement New feature or request label Oct 20, 2024
@prog8
Copy link
Author

prog8 commented Oct 21, 2024

Similar situation applies to DefaultSchema.

This later impacts the name of structs that are generated here. I'd like my struct to skip schema name in the struct name and if I change DefaultSchema code generation works nice.

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

No branches or pull requests

1 participant