Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Connect(c *utils.Config) *utils.ModelError Migrate(table interface{}) *utils.ModelError GetDB() *gorm.DB }
Interface DB interface
type PostgreSQL ¶
PostgreSQL struct
func (*PostgreSQL) Connect ¶
func (pg *PostgreSQL) Connect(c *utils.Config) *utils.ModelError
Connect starts initial connection to DB
func (*PostgreSQL) Migrate ¶
func (pg *PostgreSQL) Migrate(table interface{}) *utils.ModelError
Migrate migrates a table
Click to show internal directories.
Click to hide internal directories.