Gembit Soultan
Jun 25, 2021
Based on my understanding, you want to do the migration(creating schema, table, etc), if that the case you can use GORM. The library has a features for migration and also it support not only postgre, the other relational db like mysql, cockroach db, etc.
But if i may suggest, the best way to setup the table, etc is by doing directly on the database. why? there are other things that you need to concern on creating a table and column, like the index, constraint, composite index, etc. some of this things will be missed by using the migration tool, if not carefully.
485 views485
Comments












