Documentation ¶
Overview ¶
Package database provides a wrapper around the gorm package providing convenience functions around database management, model creation, etc... it currently supports PostreSQL and Sqlite but you can easily add support for your own databases by registering the drivers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AutoMigrate ¶
AutoMigrate is used to automatically migrate datbase tables
type Date ¶
Date provides a time.Time wrapper for databases which may not support time formats
func (Date) GormDataType ¶
GormDataType gorm common data type
Click to show internal directories.
Click to hide internal directories.