Documentation ¶
Index ¶
- func GetItemByAverageStepAsc(db *gorm.DB, tableName string) ([]sol.Record, error)
- func InsertItem(db *gorm.DB, tableName string, item interface{}) error
- func NewDB(opts ...Option) *gorm.DB
- type Dsn
- type Option
- func Charset(charset string) Option
- func Host(host string) Option
- func Loc(loc string) Option
- func LogLevel(level string) Option
- func MaxIdle(maxIdle int) Option
- func MaxLifeTime(maxLifeTime time.Duration) Option
- func MaxOpenConn(maxOpenConn int) Option
- func ParseTime(parseTime string) Option
- func Password(password string) Option
- func Proto(proto string) Option
- func Schema(schema string) Option
- func User(user string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItemByAverageStepAsc ¶
Types ¶
type Dsn ¶
Click to show internal directories.
Click to hide internal directories.