Hi, is there a clean way to specify a database schema (postgres)?
i.e. i want the answer tables to be created in a specific schema in a database.
thanks
Hi, is there a clean way to specify a database schema (postgres)?
i.e. i want the answer tables to be created in a specific schema in a database.
thanks
I think the essiest way is execute the SQL in database directly. If you want to modify the source code, you can try modifying the init.go.
I added the schema in TableName() in internal/entity. I only had ti adjust GetFollowingTags in TagService, otherwise it worked for me.
are you interested in a feature like this?