Closed ajankovic closed 7 years ago
That's correct. Did you want this configuration flag to replace 'public' as a single schema, or did you want it to provide a list of schemas?
I guess single schema is fine. But if you think list will cover more use cases I don't mind.
Due to the fact that different schemas can contain tables with the same names, we've decided to only support replacing 'public', instead of a list of schemas. Otherwise, you will get naming conflicts for all of the generated models and functions, and the only way around that would be to prefix everything with the schema name, which is quite gross. So instead, if you need to generate for multiple schemas, you can just generate multiple different packages, which allows you to organize things however you like. Much cleaner. Will get working on this.
Hi @ajankovic -- we've released V2 which includes the schema flag requested. See here for release notes: https://github.com/vattle/sqlboiler/releases/tag/v2.0.0
Thanks.
Maybe I am wrong but currently there is only support for 'public' schema, right?
It would be nice to probably add a configuration option for specifying other schemas as well.