-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Configure search_path #3663
Comments
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. |
@prog8 I need some inspiration of how to use the generated code with multiple schema. Can you share, how you are using the code without hard-coding the schema name? Suppose I am able to generate the code without schema and Install the application not in public, but in "my_schema". |
@smainz There are in fact 2 things. First of all I added this PR where I let users to configure Thanks to Advantages of having |
Thank you for the explanation. In my case, I need to run the executable against different schema, so passing |
What do you want to change?
Today
catalog.Catalog
has a field calledSearchPath
. 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 calltable
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
The text was updated successfully, but these errors were encountered: