Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDatabase ¶
InitDatabase will create the table and table records that predefined in model package. NOTE:The version of gorm.io/driver/postgres lower than v1.5.4 have some issues. more details see: https://github.com/go-gorm/gorm/issues/6886
func Transaction ¶
Transaction start a transaction as a block, return error will rollback, otherwise to commit. Transaction executes an arbitrary number of commands in fc within a transaction. On success the changes are committed; if an error occurs they are rolled back.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.