Versions in this module Expand all Collapse all v1 v1.0.5 Mar 27, 2019 Changes in this version + const GOROSE_IMG + func NewTableToStruct(c *Connection) *converter.Table2Struct v1.0.4 Oct 22, 2018 Changes in this version + func BootLogger() func(*Connection) + func NewLogger() func(*Connection) type Connection + Logger cors.LoggerHandler + func (conn *Connection) Use(options ...func(*Connection)) *Connection v1.0.3 Sep 26, 2018 Changes in this version + const VERSION + const VERSION_NO + const VERSION_TEXT v1.0.2 Sep 26, 2018 Changes in this version + func NewBuilder(ormApi across.OrmApi, operType ...string) (string, error) + type Connection struct + Db sqlDb + DbConfig *DbConfigCluster + func NewConnection() *Connection + func Open(args ...interface{}) (*Connection, error) + func (c *Connection) Execute(arg string, params ...interface{}) (int64, error) + func (c *Connection) GetExecuteDb() *sql.DB + func (c *Connection) GetQueryDb() (db *sql.DB) + func (c *Connection) NewSession() *Session + func (c *Connection) Query(arg string, params ...interface{}) ([]map[string]interface{}, error) + func (c *Connection) Table(arg interface{}) *Session + func (conn *Connection) Close() error + type DbConfigCluster struct + Master *DbConfigSingle + Slave []*DbConfigSingle + func NewDbConfigCluster() *DbConfigCluster + func NewFileParser(fileOrDriverType, dsnOrFile string) (*DbConfigCluster, error) + type DbConfigSingle struct + Driver string + Dsn string + EnableQueryLog bool + Prefix string + SetMaxIdleConns int + SetMaxOpenConns int + type Session struct + Connection *Connection + func NewOrm() *Session + func (dba *Session) AddFields(fields ...string) *Session + func (dba *Session) Avg(avg string) (interface{}, error) + func (dba *Session) Begin() + func (dba *Session) BuildSql(operType ...string) (string, error) + func (dba *Session) Chunk(limit int, callback func([]map[string]interface{})) + func (dba *Session) Commit() + func (dba *Session) Count(args ...string) (int64, error) + func (dba *Session) CrossJoin(args ...interface{}) *Session + func (dba *Session) Data(data interface{}) *Session + func (dba *Session) Decrement(args ...interface{}) (int64, error) + func (dba *Session) Delete() (int64, error) + func (dba *Session) Distinct() *Session + func (dba *Session) Execute(sqlstring string, params ...interface{}) (int64, error) + func (dba *Session) ExecuteAct(operType string) (int64, error) + func (dba *Session) Fields(fields ...string) *Session + func (dba *Session) First() (result map[string]interface{}, err error) + func (dba *Session) Force(arg ...bool) *Session + func (dba *Session) Get() (result []map[string]interface{}, err error) + func (dba *Session) Group(group string) *Session + func (dba *Session) GroupBy(group string) *Session + func (dba *Session) Having(having string) *Session + func (dba *Session) Increment(args ...interface{}) (int64, error) + func (dba *Session) InnerJoin(args ...interface{}) *Session + func (dba *Session) Insert() (int64, error) + func (dba *Session) InsertGetId() (int64, error) + func (dba *Session) Join(args ...interface{}) *Session + func (dba *Session) JsonEncode(data interface{}) string + func (dba *Session) LeftJoin(args ...interface{}) *Session + func (dba *Session) Limit(limit int) *Session + func (dba *Session) Loop(limit int, callback func([]map[string]interface{})) + func (dba *Session) Max(max string) (interface{}, error) + func (dba *Session) Min(min string) (interface{}, error) + func (dba *Session) Offset(offset int) *Session + func (dba *Session) OrWhere(args ...interface{}) *Session + func (dba *Session) OrWhereBetween(field string, arr []interface{}) *Session + func (dba *Session) OrWhereIn(field string, arr []interface{}) *Session + func (dba *Session) OrWhereNotBetween(field string, arr []interface{}) *Session + func (dba *Session) OrWhereNotIn(field string, arr []interface{}) *Session + func (dba *Session) OrWhereNotNull(arg string) *Session + func (dba *Session) OrWhereNull(arg string) *Session + func (dba *Session) Order(order string) *Session + func (dba *Session) OrderBy(order string) *Session + func (dba *Session) Page(page int) *Session + func (dba *Session) ParseTable() error + func (dba *Session) Pluck(args ...string) (interface{}, error) + func (dba *Session) Query(sqlstring string, params ...interface{}) (result []map[string]interface{}, errs error) + func (dba *Session) Reset(source string) + func (dba *Session) ResetWhere() + func (dba *Session) RightJoin(args ...interface{}) *Session + func (dba *Session) Rollback() + func (dba *Session) Scan(rows *sql.Rows) (result []map[string]interface{}, err error) + func (dba *Session) ScanAll(rows *sql.Rows, dst interface{}) error + func (dba *Session) ScanMap(rows *sql.Rows) (result []map[string]interface{}, err error) + func (dba *Session) ScanRow(rows *sql.Rows, dst interface{}) error + func (dba *Session) Select() (err error) + func (dba *Session) Skip(offset int) *Session + func (dba *Session) Sum(sum string) (interface{}, error) + func (dba *Session) Table(arg interface{}) *Session + func (dba *Session) Take(limit int) *Session + func (dba *Session) Transaction(closure func() error) (bool, error) + func (dba *Session) UnionAct(union, field string) (interface{}, error) + func (dba *Session) UnionJoin(args ...interface{}) *Session + func (dba *Session) Update() (int64, error) + func (dba *Session) Value(arg string) (interface{}, error) + func (dba *Session) Where(args ...interface{}) *Session + func (dba *Session) WhereBetween(field string, arr []interface{}) *Session + func (dba *Session) WhereIn(field string, arr []interface{}) *Session + func (dba *Session) WhereNotBetween(field string, arr []interface{}) *Session + func (dba *Session) WhereNotIn(field string, arr []interface{}) *Session + func (dba *Session) WhereNotNull(arg string) *Session + func (dba *Session) WhereNull(arg string) *Session Other modules containing this package github.com/gohouse/gorose/v2