Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDBConnection ¶
GetDBConnection get the main database connection set by SetDBConnection.
func MigrateSync ¶
MigrateSync will sync all database structure from migration file to postgres. This uses lib/pq because sql-migrate only support sql.DB struct. Actually we can create struct that implements all method like sql.DB do, but it takes time.
func SetDBConnection ¶
SetDBConnection will set the main database connection. This connection will be use as main DB.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.