Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBAdapter ¶
type DBAdapter interface { Open(connectionString string, config gorm.Config) error Begin() DBAdapter RollbackUselessCommitted() Commit() Close() Gormer() *gorm.DB DB() (*sql.DB, error) }
DBAdapter interface represent adapter connect to DB
func NewDatabase ¶
func NewDatabase() DBAdapter
Click to show internal directories.
Click to hide internal directories.