Modify Autogenerated code - "from" statement to "database.table" #1149
Unanswered
gauravgola96
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I believe if you set a custom schema in the DB connection configuration it should add the schema name. At the moment, you kind of have to decide at generation which schema to use. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to modify sql boiler auto-generated code such that all the database calls should happens like
select * from database.table_name;
currently generated code hasselect * from table_name;
In our my previous architecture design we have one user per database and one instance machine connects to one database only but now we decided to have one admin user that connects to
defaultdb
on startup and we want decide which DB to call on the basis request headers/subdomain data.I figured out setting up something like below can help but again we have to do it manually everytime schema is changed and code is regenrated.
Beta Was this translation helpful? Give feedback.
All reactions