Versions in this module Expand all Collapse all v0 v0.7.0 Jan 27, 2020 Changes in this version + const DEFAULT_LOG_FLAG + const DEFAULT_LOG_LEVEL + const DEFAULT_LOG_PREFIX + const Version + var DefaultPostgresSchema = "public" + var ErrCacheFailed = errors.New("Cache failed") + var ErrConditionType = errors.New("Unsupported condition type") + var ErrNeedDeletedCond = errors.New("Delete action needs at least one condition") + var ErrNotExist = errors.New("Record does not exist") + var ErrNotImplemented = errors.New("Not implemented") + var ErrParamsType = errors.New("Params type error") + var ErrTableNotFound = errors.New("Table not found") + var ErrUnSupportedType = errors.New("Unsupported type error") + func AutoIncrTagHandler(ctx *tagContext) error + func CacheTagHandler(ctx *tagContext) error + func CommentTagHandler(ctx *tagContext) error + func CreatedTagHandler(ctx *tagContext) error + func DefaultTagHandler(ctx *tagContext) error + func DeletedTagHandler(ctx *tagContext) error + func ExtendsTagHandler(ctx *tagContext) error + func IgnoreTagHandler(ctx *tagContext) error + func IndexTagHandler(ctx *tagContext) error + func LocalTagHandler(ctx *tagContext) error + func NULLTagHandler(ctx *tagContext) error + func NoCacheTagHandler(ctx *tagContext) error + func NotNullTagHandler(ctx *tagContext) error + func OnlyFromDBTagHandler(ctx *tagContext) error + func OnlyToDBTagHandler(ctx *tagContext) error + func PKTagHandler(ctx *tagContext) error + func SQLTypeTagHandler(ctx *tagContext) error + func UTCTagHandler(ctx *tagContext) error + func UniqueTagHandler(ctx *tagContext) error + func UpdatedTagHandler(ctx *tagContext) error + func VersionTagHandler(ctx *tagContext) error + type AfterDeleteProcessor interface + AfterDelete func() + type AfterInsertProcessor interface + AfterInsert func() + type AfterLoadProcessor interface + AfterLoad func() + type AfterLoadSessionProcessor interface + AfterLoad func(*Session) + type AfterSetProcessor interface + AfterSet func(string, Cell) + type AfterUpdateProcessor interface + AfterUpdate func() + type BeforeDeleteProcessor interface + BeforeDelete func() + type BeforeInsertProcessor interface + BeforeInsert func() + type BeforeSetProcessor interface + BeforeSet func(string, Cell) + type BeforeUpdateProcessor interface + BeforeUpdate func() + type Cell *interface + type DiscardLogger struct + func (DiscardLogger) Debug(v ...interface{}) + func (DiscardLogger) Debugf(format string, v ...interface{}) + func (DiscardLogger) Error(v ...interface{}) + func (DiscardLogger) Errorf(format string, v ...interface{}) + func (DiscardLogger) Info(v ...interface{}) + func (DiscardLogger) Infof(format string, v ...interface{}) + func (DiscardLogger) IsShowSQL() bool + func (DiscardLogger) Level() core.LogLevel + func (DiscardLogger) SetLevel(l core.LogLevel) + func (DiscardLogger) ShowSQL(show ...bool) + func (DiscardLogger) Warn(v ...interface{}) + func (DiscardLogger) Warnf(format string, v ...interface{}) + type Engine struct + Cacher core.Cacher + ColumnMapper core.IMapper + DatabaseTZ *time.Location + TZLocation *time.Location + TableMapper core.IMapper + Tables map[reflect.Type]*core.Table + TagIdentifier string + func NewEngine(driverName string, dataSourceName string) (*Engine, error) + func NewEngineWithParams(driverName string, dataSourceName string, params map[string]string) (*Engine, error) + func (engine *Engine) After(closures func(interface{})) *Session + func (engine *Engine) Alias(alias string) *Session + func (engine *Engine) AllCols() *Session + func (engine *Engine) Asc(colNames ...string) *Session + func (engine *Engine) AutoIncrStr() string + func (engine *Engine) Before(closures func(interface{})) *Session + func (engine *Engine) BufferSize(size int) *Session + func (engine *Engine) Cascade(trueOrFalse ...bool) *Session + func (engine *Engine) Charset(charset string) *Session + func (engine *Engine) ClearCache(beans ...interface{}) error + func (engine *Engine) ClearCacheBean(bean interface{}, id string) error + func (engine *Engine) Clone() (*Engine, error) + func (engine *Engine) Close() error + func (engine *Engine) Cols(columns ...string) *Session + func (engine *Engine) CondDeleted(colName string) builder.Cond + func (engine *Engine) Count(bean ...interface{}) (int64, error) + func (engine *Engine) CreateIndexes(bean interface{}) error + func (engine *Engine) CreateTables(beans ...interface{}) error + func (engine *Engine) CreateUniques(bean interface{}) error + func (engine *Engine) DB() *core.DB + func (engine *Engine) DBMetas() ([]*core.Table, error) + func (engine *Engine) DataSourceName() string + func (engine *Engine) Decr(column string, arg ...interface{}) *Session + func (engine *Engine) Delete(bean interface{}) (int64, error) + func (engine *Engine) Desc(colNames ...string) *Session + func (engine *Engine) Dialect() core.Dialect + func (engine *Engine) Distinct(columns ...string) *Session + func (engine *Engine) DriverName() string + func (engine *Engine) DropIndexes(bean interface{}) error + func (engine *Engine) DropTables(beans ...interface{}) error + func (engine *Engine) DumpAll(w io.Writer, tp ...core.DbType) error + func (engine *Engine) DumpAllToFile(fp string, tp ...core.DbType) error + func (engine *Engine) DumpTables(tables []*core.Table, w io.Writer, tp ...core.DbType) error + func (engine *Engine) DumpTablesToFile(tables []*core.Table, fp string, tp ...core.DbType) error + func (engine *Engine) Exec(sql string, args ...interface{}) (sql.Result, error) + func (engine *Engine) Exist(bean ...interface{}) (bool, error) + func (engine *Engine) Find(beans interface{}, condiBeans ...interface{}) error + func (engine *Engine) FindAndCount(rowsSlicePtr interface{}, condiBean ...interface{}) (int64, error) + func (engine *Engine) Get(bean interface{}) (bool, error) + func (engine *Engine) GetCacher(tableName string) core.Cacher + func (engine *Engine) GetColumnMapper() core.IMapper + func (engine *Engine) GetDefaultCacher() core.Cacher + func (engine *Engine) GetTZDatabase() *time.Location + func (engine *Engine) GetTZLocation() *time.Location + func (engine *Engine) GetTableMapper() core.IMapper + func (engine *Engine) GobRegister(v interface{}) *Engine + func (engine *Engine) GroupBy(keys string) *Session + func (engine *Engine) Having(conditions string) *Session + func (engine *Engine) ID(id interface{}) *Session + func (engine *Engine) IDOf(bean interface{}) core.PK + func (engine *Engine) IDOfV(rv reflect.Value) core.PK + func (engine *Engine) Id(id interface{}) *Session + func (engine *Engine) IdOf(bean interface{}) core.PK + func (engine *Engine) IdOfV(rv reflect.Value) core.PK + func (engine *Engine) Import(r io.Reader) ([]sql.Result, error) + func (engine *Engine) ImportFile(ddlPath string) ([]sql.Result, error) + func (engine *Engine) In(column string, args ...interface{}) *Session + func (engine *Engine) Incr(column string, arg ...interface{}) *Session + func (engine *Engine) Insert(beans ...interface{}) (int64, error) + func (engine *Engine) InsertOne(bean interface{}) (int64, error) + func (engine *Engine) IsTableEmpty(bean interface{}) (bool, error) + func (engine *Engine) IsTableExist(beanOrTableName interface{}) (bool, error) + func (engine *Engine) Iterate(bean interface{}, fun IterFunc) error + func (engine *Engine) Join(joinOperator string, tablename interface{}, condition string, ...) *Session + func (engine *Engine) Limit(limit int, start ...int) *Session + func (engine *Engine) Logger() core.ILogger + func (engine *Engine) MapCacher(bean interface{}, cacher core.Cacher) error + func (engine *Engine) MustCols(columns ...string) *Session + func (engine *Engine) NewDB() (*core.DB, error) + func (engine *Engine) NewSession() *Session + func (engine *Engine) NoAutoCondition(no ...bool) *Session + func (engine *Engine) NoAutoTime() *Session + func (engine *Engine) NoCache() *Session + func (engine *Engine) NoCascade() *Session + func (engine *Engine) NotIn(column string, args ...interface{}) *Session + func (engine *Engine) Nullable(columns ...string) *Session + func (engine *Engine) Omit(columns ...string) *Session + func (engine *Engine) OrderBy(order string) *Session + func (engine *Engine) Ping() error + func (engine *Engine) PingContext(ctx context.Context) error + func (engine *Engine) Prepare() *Session + func (engine *Engine) Query(sqlorArgs ...interface{}) (resultsSlice []map[string][]byte, err error) + func (engine *Engine) QueryInterface(sqlorArgs ...interface{}) ([]map[string]interface{}, error) + func (engine *Engine) QueryString(sqlorArgs ...interface{}) ([]map[string]string, error) + func (engine *Engine) Quote(value string) string + func (engine *Engine) QuoteStr() string + func (engine *Engine) QuoteTo(buf *bytes.Buffer, value string) + func (engine *Engine) Rows(bean interface{}) (*Rows, error) + func (engine *Engine) SQL(query interface{}, args ...interface{}) *Session + func (engine *Engine) SQLType(c *core.Column) string + func (engine *Engine) Select(str string) *Session + func (engine *Engine) SetCacher(tableName string, cacher core.Cacher) + func (engine *Engine) SetColumnMapper(mapper core.IMapper) + func (engine *Engine) SetConnMaxLifetime(d time.Duration) + func (engine *Engine) SetDefaultCacher(cacher core.Cacher) + func (engine *Engine) SetDisableGlobalCache(disable bool) + func (engine *Engine) SetExpr(column string, expression string) *Session + func (engine *Engine) SetLogLevel(level core.LogLevel) + func (engine *Engine) SetLogger(logger core.ILogger) + func (engine *Engine) SetMapper(mapper core.IMapper) + func (engine *Engine) SetMaxIdleConns(conns int) + func (engine *Engine) SetMaxOpenConns(conns int) + func (engine *Engine) SetSchema(schema string) + func (engine *Engine) SetTZDatabase(tz *time.Location) + func (engine *Engine) SetTZLocation(tz *time.Location) + func (engine *Engine) SetTableMapper(mapper core.IMapper) + func (engine *Engine) ShowExecTime(show ...bool) + func (engine *Engine) ShowSQL(show ...bool) + func (engine *Engine) Sql(querystring string, args ...interface{}) *Session + func (engine *Engine) SqlType(c *core.Column) string + func (engine *Engine) StoreEngine(storeEngine string) *Session + func (engine *Engine) Sum(bean interface{}, colName string) (float64, error) + func (engine *Engine) SumInt(bean interface{}, colName string) (int64, error) + func (engine *Engine) Sums(bean interface{}, colNames ...string) ([]float64, error) + func (engine *Engine) SumsInt(bean interface{}, colNames ...string) ([]int64, error) + func (engine *Engine) SupportInsertMany() bool + func (engine *Engine) Sync(beans ...interface{}) error + func (engine *Engine) Sync2(beans ...interface{}) error + func (engine *Engine) Table(tableNameOrBean interface{}) *Session + func (engine *Engine) TableInfo(bean interface{}) *Table + func (engine *Engine) TableName(bean interface{}, includeSchema ...bool) string + func (engine *Engine) UnMapType(t reflect.Type) + func (engine *Engine) Unscoped() *Session + func (engine *Engine) Update(bean interface{}, condiBeans ...interface{}) (int64, error) + func (engine *Engine) UseBool(columns ...string) *Session + func (engine *Engine) Where(query interface{}, args ...interface{}) *Session + type EngineGroup struct + func NewEngineGroup(args1 interface{}, args2 interface{}, policies ...GroupPolicy) (*EngineGroup, error) + func (eg *EngineGroup) Close() error + func (eg *EngineGroup) Master() *Engine + func (eg *EngineGroup) Ping() error + func (eg *EngineGroup) SetColumnMapper(mapper core.IMapper) + func (eg *EngineGroup) SetConnMaxLifetime(d time.Duration) + func (eg *EngineGroup) SetDefaultCacher(cacher core.Cacher) + func (eg *EngineGroup) SetLogLevel(level core.LogLevel) + func (eg *EngineGroup) SetLogger(logger core.ILogger) + func (eg *EngineGroup) SetMapper(mapper core.IMapper) + func (eg *EngineGroup) SetMaxIdleConns(conns int) + func (eg *EngineGroup) SetMaxOpenConns(conns int) + func (eg *EngineGroup) SetPolicy(policy GroupPolicy) *EngineGroup + func (eg *EngineGroup) SetTableMapper(mapper core.IMapper) + func (eg *EngineGroup) ShowExecTime(show ...bool) + func (eg *EngineGroup) ShowSQL(show ...bool) + func (eg *EngineGroup) Slave() *Engine + func (eg *EngineGroup) Slaves() []*Engine + type EngineInterface interface + Before func(func(interface{})) *Session + Charset func(charset string) *Session + CreateTables func(...interface{}) error + DBMetas func() ([]*core.Table, error) + Dialect func() core.Dialect + DropTables func(...interface{}) error + DumpAllToFile func(fp string, tp ...core.DbType) error + GetCacher func(string) core.Cacher + GetColumnMapper func() core.IMapper + GetDefaultCacher func() core.Cacher + GetTZDatabase func() *time.Location + GetTZLocation func() *time.Location + GetTableMapper func() core.IMapper + NewSession func() *Session + NoAutoTime func() *Session + Quote func(string) string + SetCacher func(string, core.Cacher) + SetDefaultCacher func(core.Cacher) + SetLogLevel func(core.LogLevel) + SetMapper func(core.IMapper) + SetSchema func(string) + SetTZDatabase func(tz *time.Location) + SetTZLocation func(tz *time.Location) + ShowSQL func(show ...bool) + StoreEngine func(storeEngine string) *Session + Sync func(...interface{}) error + Sync2 func(...interface{}) error + TableInfo func(bean interface{}) *Table + TableName func(interface{}, ...bool) string + UnMapType func(reflect.Type) + type ErrFieldIsNotExist struct + FieldName string + TableName string + func (e ErrFieldIsNotExist) Error() string + type ErrFieldIsNotValid struct + FieldName string + TableName string + func (e ErrFieldIsNotValid) Error() string + type GroupPolicy interface + Slave func(*EngineGroup) *Engine + type GroupPolicyHandler func(*EngineGroup) *Engine + func LeastConnPolicy() GroupPolicyHandler + func RandomPolicy() GroupPolicyHandler + func RoundRobinPolicy() GroupPolicyHandler + func WeightRandomPolicy(weights []int) GroupPolicyHandler + func WeightRoundRobinPolicy(weights []int) GroupPolicyHandler + func (h GroupPolicyHandler) Slave(eg *EngineGroup) *Engine + type Interface interface + Alias func(alias string) *Session + AllCols func() *Session + Asc func(colNames ...string) *Session + BufferSize func(size int) *Session + Cols func(columns ...string) *Session + Count func(...interface{}) (int64, error) + CreateIndexes func(bean interface{}) error + CreateUniques func(bean interface{}) error + Decr func(column string, arg ...interface{}) *Session + Delete func(interface{}) (int64, error) + Desc func(...string) *Session + Distinct func(columns ...string) *Session + DropIndexes func(bean interface{}) error + Exec func(string, ...interface{}) (sql.Result, error) + Exist func(bean ...interface{}) (bool, error) + Find func(interface{}, ...interface{}) error + FindAndCount func(interface{}, ...interface{}) (int64, error) + Get func(interface{}) (bool, error) + GroupBy func(keys string) *Session + ID func(interface{}) *Session + In func(string, ...interface{}) *Session + Incr func(column string, arg ...interface{}) *Session + Insert func(...interface{}) (int64, error) + InsertOne func(interface{}) (int64, error) + IsTableEmpty func(bean interface{}) (bool, error) + IsTableExist func(beanOrTableName interface{}) (bool, error) + Iterate func(interface{}, IterFunc) error + Join func(joinOperator string, tablename interface{}, condition string, ...) *Session + Limit func(int, ...int) *Session + MustCols func(columns ...string) *Session + NoAutoCondition func(...bool) *Session + NotIn func(string, ...interface{}) *Session + Omit func(columns ...string) *Session + OrderBy func(order string) *Session + Ping func() error + Query func(sqlOrAgrs ...interface{}) (resultsSlice []map[string][]byte, err error) + QueryInterface func(sqlorArgs ...interface{}) ([]map[string]interface{}, error) + QueryString func(sqlorArgs ...interface{}) ([]map[string]string, error) + Rows func(bean interface{}) (*Rows, error) + SQL func(interface{}, ...interface{}) *Session + SetExpr func(string, string) *Session + Sum func(bean interface{}, colName string) (float64, error) + SumInt func(bean interface{}, colName string) (int64, error) + Sums func(bean interface{}, colNames ...string) ([]float64, error) + SumsInt func(bean interface{}, colNames ...string) ([]int64, error) + Table func(tableNameOrBean interface{}) *Session + Unscoped func() *Session + Update func(bean interface{}, condiBeans ...interface{}) (int64, error) + UseBool func(...string) *Session + Where func(interface{}, ...interface{}) *Session + type IterFunc func(idx int, bean interface{}) error + type LRUCacher struct + Expired time.Duration + GcInterval time.Duration + MaxElementSize int + func NewLRUCacher(store core.CacheStore, maxElementSize int) *LRUCacher + func NewLRUCacher2(store core.CacheStore, expired time.Duration, maxElementSize int) *LRUCacher + func (m *LRUCacher) ClearBeans(tableName string) + func (m *LRUCacher) ClearIds(tableName string) + func (m *LRUCacher) DelBean(tableName string, id string) + func (m *LRUCacher) DelIds(tableName, sql string) + func (m *LRUCacher) GC() + func (m *LRUCacher) GetBean(tableName string, id string) interface{} + func (m *LRUCacher) GetIds(tableName, sql string) interface{} + func (m *LRUCacher) PutBean(tableName string, id string, obj interface{}) + func (m *LRUCacher) PutIds(tableName, sql string, ids interface{}) + func (m *LRUCacher) RunGC() + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (s *MemoryStore) Del(key string) error + func (s *MemoryStore) Get(key string) (interface{}, error) + func (s *MemoryStore) Put(key string, value interface{}) error + type Rows struct + NoTypeCheck bool + func (rows *Rows) Close() error + func (rows *Rows) Err() error + func (rows *Rows) Next() bool + func (rows *Rows) Scan(bean interface{}) error + type Session struct + func (session *Session) After(closures func(interface{})) *Session + func (session *Session) Alias(alias string) *Session + func (session *Session) AllCols() *Session + func (session *Session) And(query interface{}, args ...interface{}) *Session + func (session *Session) Asc(colNames ...string) *Session + func (session *Session) Before(closures func(interface{})) *Session + func (session *Session) Begin() error + func (session *Session) BufferSize(size int) *Session + func (session *Session) Cascade(trueOrFalse ...bool) *Session + func (session *Session) Charset(charset string) *Session + func (session *Session) Clone() *Session + func (session *Session) Close() + func (session *Session) Cols(columns ...string) *Session + func (session *Session) Commit() error + func (session *Session) Conds() builder.Cond + func (session *Session) Conn() (*core.Conn, error) + func (session *Session) Context() context.Context + func (session *Session) Count(bean ...interface{}) (int64, error) + func (session *Session) CreateIndexes(bean interface{}) error + func (session *Session) CreateTable(bean interface{}) error + func (session *Session) CreateUniques(bean interface{}) error + func (session *Session) DB() *core.DB + func (session *Session) Decr(column string, arg ...interface{}) *Session + func (session *Session) Delete(bean interface{}) (int64, error) + func (session *Session) Desc(colNames ...string) *Session + func (session *Session) Distinct(columns ...string) *Session + func (session *Session) DropIndexes(bean interface{}) error + func (session *Session) DropTable(beanOrTableName interface{}) error + func (session *Session) Exec(sqlStr string, args ...interface{}) (sql.Result, error) + func (session *Session) Exist(bean ...interface{}) (bool, error) + func (session *Session) Find(rowsSlicePtr interface{}, condiBean ...interface{}) error + func (session *Session) FindAndCount(rowsSlicePtr interface{}, condiBean ...interface{}) (int64, error) + func (session *Session) ForUpdate() *Session + func (session *Session) Get(bean interface{}) (bool, error) + func (session *Session) GroupBy(keys string) *Session + func (session *Session) Having(conditions string) *Session + func (session *Session) ID(id interface{}) *Session + func (session *Session) Id(id interface{}) *Session + func (session *Session) In(column string, args ...interface{}) *Session + func (session *Session) Incr(column string, arg ...interface{}) *Session + func (session *Session) Init() + func (session *Session) Insert(beans ...interface{}) (int64, error) + func (session *Session) InsertMulti(rowsSlicePtr interface{}) (int64, error) + func (session *Session) InsertOne(bean interface{}) (int64, error) + func (session *Session) IsClosed() bool + func (session *Session) IsTableEmpty(bean interface{}) (bool, error) + func (session *Session) IsTableExist(beanOrTableName interface{}) (bool, error) + func (session *Session) Iterate(bean interface{}, fun IterFunc) error + func (session *Session) Join(joinOperator string, tablename interface{}, condition string, ...) *Session + func (session *Session) LastSQL() (string, []interface{}) + func (session *Session) Limit(limit int, start ...int) *Session + func (session *Session) MustCols(columns ...string) *Session + func (session *Session) NoAutoCondition(no ...bool) *Session + func (session *Session) NoAutoTime() *Session + func (session *Session) NoCache() *Session + func (session *Session) NoCascade() *Session + func (session *Session) NotIn(column string, args ...interface{}) *Session + func (session *Session) Nullable(columns ...string) *Session + func (session *Session) Omit(columns ...string) *Session + func (session *Session) Or(query interface{}, args ...interface{}) *Session + func (session *Session) OrderBy(order string) *Session + func (session *Session) Ping() error + func (session *Session) PingContext(ctx context.Context) error + func (session *Session) Prepare() *Session + func (session *Session) Query(sqlorArgs ...interface{}) ([]map[string][]byte, error) + func (session *Session) QueryInterface(sqlorArgs ...interface{}) ([]map[string]interface{}, error) + func (session *Session) QueryString(sqlorArgs ...interface{}) ([]map[string]string, error) + func (session *Session) Rollback() error + func (session *Session) Rows(bean interface{}) (*Rows, error) + func (session *Session) SQL(query interface{}, args ...interface{}) *Session + func (session *Session) Select(str string) *Session + func (session *Session) SetExpr(column string, expression string) *Session + func (session *Session) Sql(query string, args ...interface{}) *Session + func (session *Session) StoreEngine(storeEngine string) *Session + func (session *Session) Sum(bean interface{}, columnName string) (res float64, err error) + func (session *Session) SumInt(bean interface{}, columnName string) (res int64, err error) + func (session *Session) Sums(bean interface{}, columnNames ...string) ([]float64, error) + func (session *Session) SumsInt(bean interface{}, columnNames ...string) ([]int64, error) + func (session *Session) Sync2(beans ...interface{}) error + func (session *Session) Table(tableNameOrBean interface{}) *Session + func (session *Session) Unscoped() *Session + func (session *Session) Update(bean interface{}, condiBean ...interface{}) (int64, error) + func (session *Session) UseBool(columns ...string) *Session + func (session *Session) Where(query interface{}, args ...interface{}) *Session + type SimpleLogger struct + DEBUG *log.Logger + ERR *log.Logger + INFO *log.Logger + WARN *log.Logger + func NewSimpleLogger(out io.Writer) *SimpleLogger + func NewSimpleLogger2(out io.Writer, prefix string, flag int) *SimpleLogger + func NewSimpleLogger3(out io.Writer, prefix string, flag int, l core.LogLevel) *SimpleLogger + func (s *SimpleLogger) Debug(v ...interface{}) + func (s *SimpleLogger) Debugf(format string, v ...interface{}) + func (s *SimpleLogger) Error(v ...interface{}) + func (s *SimpleLogger) Errorf(format string, v ...interface{}) + func (s *SimpleLogger) Info(v ...interface{}) + func (s *SimpleLogger) Infof(format string, v ...interface{}) + func (s *SimpleLogger) IsShowSQL() bool + func (s *SimpleLogger) Level() core.LogLevel + func (s *SimpleLogger) SetLevel(l core.LogLevel) + func (s *SimpleLogger) ShowSQL(show ...bool) + func (s *SimpleLogger) Warn(v ...interface{}) + func (s *SimpleLogger) Warnf(format string, v ...interface{}) + type Statement struct + AltTableName string + Charset string + ColumnStr string + Engine *Engine + GroupByStr string + HavingStr string + IsDistinct bool + IsForUpdate bool + JoinStr string + LimitN int + OmitStr string + OrderStr string + RawParams []interface{} + RawSQL string + RefTable *core.Table + Start int + StoreEngine string + TableAlias string + UseAutoJoin bool + UseAutoTime bool + UseCache bool + UseCascade bool + func (statement *Statement) Alias(alias string) *Statement + func (statement *Statement) AllCols() *Statement + func (statement *Statement) And(query interface{}, args ...interface{}) *Statement + func (statement *Statement) Asc(colNames ...string) *Statement + func (statement *Statement) Cols(columns ...string) *Statement + func (statement *Statement) Decr(column string, arg ...interface{}) *Statement + func (statement *Statement) Desc(colNames ...string) *Statement + func (statement *Statement) Distinct(columns ...string) *Statement + func (statement *Statement) ForUpdate() *Statement + func (statement *Statement) GroupBy(keys string) *Statement + func (statement *Statement) Having(conditions string) *Statement + func (statement *Statement) ID(id interface{}) *Statement + func (statement *Statement) In(column string, args ...interface{}) *Statement + func (statement *Statement) Incr(column string, arg ...interface{}) *Statement + func (statement *Statement) Init() + func (statement *Statement) Join(joinOP string, tablename interface{}, condition string, args ...interface{}) *Statement + func (statement *Statement) Limit(limit int, start ...int) *Statement + func (statement *Statement) MustCols(columns ...string) *Statement + func (statement *Statement) NoAutoCondition(no ...bool) *Statement + func (statement *Statement) NotIn(column string, args ...interface{}) *Statement + func (statement *Statement) Nullable(columns ...string) + func (statement *Statement) Omit(columns ...string) + func (statement *Statement) Or(query interface{}, args ...interface{}) *Statement + func (statement *Statement) OrderBy(order string) *Statement + func (statement *Statement) SQL(query interface{}, args ...interface{}) *Statement + func (statement *Statement) Select(str string) *Statement + func (statement *Statement) SetExpr(column string, expression string) *Statement + func (statement *Statement) Table(tableNameOrBean interface{}) *Statement + func (statement *Statement) TableName() string + func (statement *Statement) Top(limit int) *Statement + func (statement *Statement) Unscoped() *Statement + func (statement *Statement) UseBool(columns ...string) *Statement + func (statement *Statement) Where(query interface{}, args ...interface{}) *Statement + type SyslogLogger struct — darwin/amd64, js/wasm, linux/amd64 + func NewSyslogLogger(w *syslog.Writer) *SyslogLogger + func (s *SyslogLogger) Debug(v ...interface{}) + func (s *SyslogLogger) Debugf(format string, v ...interface{}) + func (s *SyslogLogger) Error(v ...interface{}) + func (s *SyslogLogger) Errorf(format string, v ...interface{}) + func (s *SyslogLogger) Info(v ...interface{}) + func (s *SyslogLogger) Infof(format string, v ...interface{}) + func (s *SyslogLogger) IsShowSQL() bool + func (s *SyslogLogger) Level() core.LogLevel + func (s *SyslogLogger) SetLevel(l core.LogLevel) + func (s *SyslogLogger) ShowSQL(show ...bool) + func (s *SyslogLogger) Warn(v ...interface{}) + func (s *SyslogLogger) Warnf(format string, v ...interface{}) + type Table struct + Name string + func (t *Table) IsValid() bool + type TableName interface + TableName func() string