Documentation ¶
Index ¶
- type Engine
- func (e *Engine) CreateIndex(table *schema.Table) error
- func (e *Engine) CreateTable(table *schema.Table) error
- func (e *Engine) CreateUnique(table *schema.Table) error
- func (e *Engine) DropIndexes(table *schema.Table) error
- func (e *Engine) DropTable(models ...interface{}) error
- func (e *Engine) GetProvider() *rt.Provider
- func (e *Engine) HasTable(table *schema.Table) error
- func (e *Engine) SetConnMaxIdleTime(d time.Duration) *Engine
- func (e *Engine) SetConnMaxLifetime(d time.Duration) *Engine
- func (e *Engine) SetLogSQL(log bool) *Engine
- func (e *Engine) SetLogger(log logger.GpaLogger)
- func (e *Engine) SetMaxIdleConns(n int) *Engine
- func (e *Engine) SetMaxOpenConns(n int) *Engine
- func (e *Engine) Sync(beans ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { TZLocation *time.Location // The timezone of the application DatabaseTZ *time.Location // The timezone of the database // contains filtered or unexported fields }
func (*Engine) DropIndexes ¶
DropIndexes drop indexes
func (*Engine) GetProvider ¶
func (*Engine) SetMaxIdleConns ¶
func (*Engine) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.