xorm

package module
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 21 Imported by: 0

README

goner/xorm

A powerful database integration component for the Gone framework, providing enhanced features based on XORM.

Features

  • Multiple database support (MySQL, SQLite3, PostgreSQL, Oracle, MSSQL)
  • Automatic transaction management
  • Transaction propagation
  • Named parameter support
  • Enhanced SQL query capabilities
  • Master-slave cluster support
  • Connection pool management

Installation

go get github.com/gone-io/goner/xorm

Import the required database driver:

import (
    github.com/gone-io/goner/xorm

    // MySQL driver
    _ "github.com/go-sql-driver/mysql"

    // SQLite3 driver
    // _ "github.com/mattn/go-sqlite3"

    // PostgreSQL driver
    // _ "github.com/lib/pq"

    // Oracle driver
    // _ "github.com/mattn/go-oci8"

    // MSSQL driver
    // _ "github.com/denisenkom/go-mssqldb"
)

Configuration

Single Database Mode
database.driver-name=mysql
database.dsn=root:123456@tcp(127.0.0.1:3306)/test?charset=utf8mb4&parseTime=True&loc=Local
Cluster Mode
database.cluster.enable=true

# Master database configuration
database.cluster.master.driver-name=mysql
database.cluster.master.dsn=root:123456@tcp(master-db-host:3306)/test?charset=utf8mb4&parseTime=True&loc=Local

# Slave database configuration
database.cluster.slaves[0].driver-name=mysql
database.cluster.slaves[0].dsn=root:123456@tcp(slave-db-0-host:3306)/test?charset=utf8mb4&parseTime=True&loc=Local
Configuration Parameters
Parameter Required Default Description
database.cluster.enable No false Enable cluster mode
database.driver-name No* - Database driver name
database.dsn No* - Database connection string
database.max-idle-count No 5 Maximum idle connections
database.max-open No 20 Maximum open connections
database.max-lifetime No 10m Connection maximum lifetime
database.show-sql No true Show SQL logs

*Required in non-cluster mode

Load And Start

package main
import (
    "github.com/gone-io/gone/v2"
    "github.com/gone-io/gone/goner/xorm"
    _ "github.com/go-sql-driver/mysql"
)
func main() {
    gone.
        NewApp(
            xorm.Load,
        ).
        Run(func(db xorm.Engine){
            // Your application logic
            db.Get(/*...*/)
        })
}

Usage

Basic Usage
type dbUser struct {
    gone.Flag
    db xorm.Engine `gone:"*"` // Inject database engine
}

type Book struct {
    Id    int64
    Title string
}

func (d *dbUser) GetBookById(id int64) (book *Book, err error) {
    book = new(Book)
    has, err := d.db.Where("id=?", id).Get(book)
    if err != nil {
        return nil, gone.ToError(err)
    }
    if !has {
        return nil, gone.NewParameterError("book not found", 404)
    }
    return book, nil
}
Automatic Transaction
func (d *db) updateUser(user *entity.User) error {
    return d.Transaction(func(session xorm.Interface) error {
        _, err := session.ID(user.Id).Update(user)
        return gone.ToError(err)
    })
}
Named Parameters
sql, args := xorm.MustNamed(`
    update user
    set status = :status,
        avatar = :avatar
    where id = :id`,
    map[string]any{
        "id":     1,
        "status": 1,
        "avatar": "https://example.com/avatar.jpg",
    },
)

Best Practices

  1. Connection Pool Configuration

    • Adjust max-idle-count based on load
    • Set appropriate max-open to prevent database overload
    • Configure max-lifetime to manage connection lifecycle
  2. Cluster Mode Optimization

    • Use read/write separation effectively
    • Configure connection pools for master and slave databases separately
    • Consider master-slave replication lag in transactions
  3. SQL Optimization

    • Use show-sql in development for SQL debugging
    • Implement proper indexing
    • Avoid large transactions
    • Use batch operations instead of loops

License

MIT License

Documentation

Overview

Package xorm is a generated GoMock package.

Package xorm is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var NameMapType = reflect.TypeOf(&NameMap{}).Elem()

Functions

func Load

func Load(loader gone.Loader) error

func MustIn

func MustIn(sql string, args ...any) (string, []any)

func MustNamed

func MustNamed(inputSql string, arg any) (sql string, args []any)

Types

type ClusterNodeConf

type ClusterNodeConf struct {
	DriverName string `properties:"driver-name,default=" mapstructure:"driver-name" json:"driver-name"`
	DSN        string `properties:"dsn,default=" mapstructure:"dsn,default=yyyy" json:"dsn"`
}

type Conf

type Conf struct {
	DriverName    string        `properties:"driver-name,default=" mapstructure:"driver-name" json:"driver-name"`
	Dsn           string        `properties:"dsn,default=" mapstructure:"dsn" json:"dsn"`
	MaxIdleCount  int           `properties:"max-idle-count,default=5" mapstructure:"max-idle-count,default=5" json:"max-idle-count"`
	MaxOpen       int           `properties:"max-open,default=20" mapstructure:"max-open,default=20" json:"max-open"`
	MaxLifetime   time.Duration `properties:"max-lifetime,default=10m" mapstructure:"max-lifetime,default=10m" json:"max-lifetime"`
	ShowSql       bool          `properties:"show-sql,default=true" mapstructure:"show-sql,default=true" json:"show-sql"`
	PingAfterInit bool          `properties:"ping-after-init,default=false" mapstructure:"ping-after-init,default=false" json:"ping-after-init"`
}

type Engine

type Engine interface {
	xorm.EngineInterface
	Transaction(fn func(session xorm.Interface) error) error
	Sqlx(sql string, args ...any) *xorm.Session
	GetOriginEngine() xorm.EngineInterface
	SetPolicy(policy xorm.GroupPolicy)
}

Engine db engine

type Interface

type Interface = xorm.Interface

type MockEngine added in v1.0.9

type MockEngine struct {
	// contains filtered or unexported fields
}

MockEngine is a mock of Engine interface.

func NewMockEngine added in v1.0.9

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance.

func (*MockEngine) AddHook added in v1.0.9

func (m *MockEngine) AddHook(hook contexts.Hook)

AddHook mocks base method.

func (*MockEngine) Alias added in v1.0.9

func (m *MockEngine) Alias(alias string) *xorm.Session

Alias mocks base method.

func (*MockEngine) AllCols added in v1.0.9

func (m *MockEngine) AllCols() *xorm.Session

AllCols mocks base method.

func (*MockEngine) Asc added in v1.0.9

func (m *MockEngine) Asc(colNames ...string) *xorm.Session

Asc mocks base method.

func (*MockEngine) Before added in v1.0.9

func (m *MockEngine) Before(arg0 func(any)) *xorm.Session

Before mocks base method.

func (*MockEngine) BufferSize added in v1.0.9

func (m *MockEngine) BufferSize(size int) *xorm.Session

BufferSize mocks base method.

func (*MockEngine) Charset added in v1.0.9

func (m *MockEngine) Charset(charset string) *xorm.Session

Charset mocks base method.

func (*MockEngine) ClearCache added in v1.0.9

func (m *MockEngine) ClearCache(arg0 ...any) error

ClearCache mocks base method.

func (*MockEngine) Cols added in v1.0.9

func (m *MockEngine) Cols(columns ...string) *xorm.Session

Cols mocks base method.

func (*MockEngine) Context added in v1.0.9

func (m *MockEngine) Context(arg0 context.Context) *xorm.Session

Context mocks base method.

func (*MockEngine) Count added in v1.0.9

func (m *MockEngine) Count(arg0 ...any) (int64, error)

Count mocks base method.

func (*MockEngine) CreateIndexes added in v1.0.9

func (m *MockEngine) CreateIndexes(bean any) error

CreateIndexes mocks base method.

func (*MockEngine) CreateTables added in v1.0.9

func (m *MockEngine) CreateTables(arg0 ...any) error

CreateTables mocks base method.

func (*MockEngine) CreateUniques added in v1.0.9

func (m *MockEngine) CreateUniques(bean any) error

CreateUniques mocks base method.

func (*MockEngine) DBMetas added in v1.0.9

func (m *MockEngine) DBMetas() ([]*schemas.Table, error)

DBMetas mocks base method.

func (*MockEngine) DBVersion added in v1.0.9

func (m *MockEngine) DBVersion() (*schemas.Version, error)

DBVersion mocks base method.

func (*MockEngine) Decr added in v1.0.9

func (m *MockEngine) Decr(column string, arg ...any) *xorm.Session

Decr mocks base method.

func (*MockEngine) Delete added in v1.0.9

func (m *MockEngine) Delete(arg0 ...any) (int64, error)

Delete mocks base method.

func (*MockEngine) Desc added in v1.0.9

func (m *MockEngine) Desc(arg0 ...string) *xorm.Session

Desc mocks base method.

func (*MockEngine) Dialect added in v1.0.9

func (m *MockEngine) Dialect() dialects.Dialect

Dialect mocks base method.

func (*MockEngine) Distinct added in v1.0.9

func (m *MockEngine) Distinct(columns ...string) *xorm.Session

Distinct mocks base method.

func (*MockEngine) DriverName added in v1.0.9

func (m *MockEngine) DriverName() string

DriverName mocks base method.

func (*MockEngine) DropIndexes added in v1.0.9

func (m *MockEngine) DropIndexes(bean any) error

DropIndexes mocks base method.

func (*MockEngine) DropTables added in v1.0.9

func (m *MockEngine) DropTables(arg0 ...any) error

DropTables mocks base method.

func (*MockEngine) DumpAllToFile added in v1.0.9

func (m *MockEngine) DumpAllToFile(fp string, tp ...schemas.DBType) error

DumpAllToFile mocks base method.

func (*MockEngine) EXPECT added in v1.0.9

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEngine) EnableSessionID added in v1.0.9

func (m *MockEngine) EnableSessionID(arg0 bool)

EnableSessionID mocks base method.

func (*MockEngine) Exec added in v1.0.9

func (m *MockEngine) Exec(sqlOrArgs ...any) (sql.Result, error)

Exec mocks base method.

func (*MockEngine) Exist added in v1.0.9

func (m *MockEngine) Exist(bean ...any) (bool, error)

Exist mocks base method.

func (*MockEngine) Find added in v1.0.9

func (m *MockEngine) Find(arg0 any, arg1 ...any) error

Find mocks base method.

func (*MockEngine) FindAndCount added in v1.0.9

func (m *MockEngine) FindAndCount(arg0 any, arg1 ...any) (int64, error)

FindAndCount mocks base method.

func (*MockEngine) Get added in v1.0.9

func (m *MockEngine) Get(arg0 ...any) (bool, error)

Get mocks base method.

func (*MockEngine) GetCacher added in v1.0.9

func (m *MockEngine) GetCacher(arg0 string) caches.Cacher

GetCacher mocks base method.

func (*MockEngine) GetColumnMapper added in v1.0.9

func (m *MockEngine) GetColumnMapper() names.Mapper

GetColumnMapper mocks base method.

func (*MockEngine) GetDefaultCacher added in v1.0.9

func (m *MockEngine) GetDefaultCacher() caches.Cacher

GetDefaultCacher mocks base method.

func (*MockEngine) GetOriginEngine added in v1.0.9

func (m *MockEngine) GetOriginEngine() xorm.EngineInterface

GetOriginEngine mocks base method.

func (*MockEngine) GetTZDatabase added in v1.0.9

func (m *MockEngine) GetTZDatabase() *time.Location

GetTZDatabase mocks base method.

func (*MockEngine) GetTZLocation added in v1.0.9

func (m *MockEngine) GetTZLocation() *time.Location

GetTZLocation mocks base method.

func (*MockEngine) GetTableMapper added in v1.0.9

func (m *MockEngine) GetTableMapper() names.Mapper

GetTableMapper mocks base method.

func (*MockEngine) GroupBy added in v1.0.9

func (m *MockEngine) GroupBy(keys string) *xorm.Session

GroupBy mocks base method.

func (*MockEngine) ID added in v1.0.9

func (m *MockEngine) ID(arg0 any) *xorm.Session

ID mocks base method.

func (*MockEngine) ImportFile added in v1.0.9

func (m *MockEngine) ImportFile(fp string) ([]sql.Result, error)

ImportFile mocks base method.

func (*MockEngine) In added in v1.0.9

func (m *MockEngine) In(arg0 string, arg1 ...any) *xorm.Session

In mocks base method.

func (*MockEngine) Incr added in v1.0.9

func (m *MockEngine) Incr(column string, arg ...any) *xorm.Session

Incr mocks base method.

func (*MockEngine) Insert added in v1.0.9

func (m *MockEngine) Insert(arg0 ...any) (int64, error)

Insert mocks base method.

func (*MockEngine) InsertOne added in v1.0.9

func (m *MockEngine) InsertOne(arg0 any) (int64, error)

InsertOne mocks base method.

func (*MockEngine) IsTableEmpty added in v1.0.9

func (m *MockEngine) IsTableEmpty(bean any) (bool, error)

IsTableEmpty mocks base method.

func (*MockEngine) IsTableExist added in v1.0.9

func (m *MockEngine) IsTableExist(beanOrTableName any) (bool, error)

IsTableExist mocks base method.

func (*MockEngine) Iterate added in v1.0.9

func (m *MockEngine) Iterate(arg0 any, arg1 xorm.IterFunc) error

Iterate mocks base method.

func (*MockEngine) Join added in v1.0.9

func (m *MockEngine) Join(joinOperator string, tablename, condition any, args ...any) *xorm.Session

Join mocks base method.

func (*MockEngine) Limit added in v1.0.9

func (m *MockEngine) Limit(arg0 int, arg1 ...int) *xorm.Session

Limit mocks base method.

func (*MockEngine) MapCacher added in v1.0.9

func (m *MockEngine) MapCacher(arg0 any, arg1 caches.Cacher) error

MapCacher mocks base method.

func (*MockEngine) MustCols added in v1.0.9

func (m *MockEngine) MustCols(columns ...string) *xorm.Session

MustCols mocks base method.

func (*MockEngine) NewSession added in v1.0.9

func (m *MockEngine) NewSession() *xorm.Session

NewSession mocks base method.

func (*MockEngine) NoAutoCondition added in v1.0.9

func (m *MockEngine) NoAutoCondition(arg0 ...bool) *xorm.Session

NoAutoCondition mocks base method.

func (*MockEngine) NoAutoTime added in v1.0.9

func (m *MockEngine) NoAutoTime() *xorm.Session

NoAutoTime mocks base method.

func (*MockEngine) NotIn added in v1.0.9

func (m *MockEngine) NotIn(arg0 string, arg1 ...any) *xorm.Session

NotIn mocks base method.

func (*MockEngine) Nullable added in v1.0.9

func (m *MockEngine) Nullable(arg0 ...string) *xorm.Session

Nullable mocks base method.

func (*MockEngine) Omit added in v1.0.9

func (m *MockEngine) Omit(columns ...string) *xorm.Session

Omit mocks base method.

func (*MockEngine) OrderBy added in v1.0.9

func (m *MockEngine) OrderBy(order any, args ...any) *xorm.Session

OrderBy mocks base method.

func (*MockEngine) Ping added in v1.0.9

func (m *MockEngine) Ping() error

Ping mocks base method.

func (*MockEngine) Prepare added in v1.0.9

func (m *MockEngine) Prepare() *xorm.Session

Prepare mocks base method.

func (*MockEngine) Query added in v1.0.9

func (m *MockEngine) Query(sqlOrArgs ...any) ([]map[string][]byte, error)

Query mocks base method.

func (*MockEngine) QueryInterface added in v1.0.9

func (m *MockEngine) QueryInterface(sqlOrArgs ...any) ([]map[string]any, error)

QueryInterface mocks base method.

func (*MockEngine) QueryString added in v1.0.9

func (m *MockEngine) QueryString(sqlOrArgs ...any) ([]map[string]string, error)

QueryString mocks base method.

func (*MockEngine) Quote added in v1.0.9

func (m *MockEngine) Quote(arg0 string) string

Quote mocks base method.

func (*MockEngine) Rows added in v1.0.9

func (m *MockEngine) Rows(bean any) (*xorm.Rows, error)

Rows mocks base method.

func (*MockEngine) SQL added in v1.0.9

func (m *MockEngine) SQL(arg0 any, arg1 ...any) *xorm.Session

SQL mocks base method.

func (*MockEngine) Select added in v1.0.9

func (m *MockEngine) Select(arg0 string) *xorm.Session

Select mocks base method.

func (*MockEngine) SetCacher added in v1.0.9

func (m *MockEngine) SetCacher(arg0 string, arg1 caches.Cacher)

SetCacher mocks base method.

func (*MockEngine) SetColumnMapper added in v1.0.9

func (m *MockEngine) SetColumnMapper(arg0 names.Mapper)

SetColumnMapper mocks base method.

func (*MockEngine) SetConnMaxLifetime added in v1.0.9

func (m *MockEngine) SetConnMaxLifetime(arg0 time.Duration)

SetConnMaxLifetime mocks base method.

func (*MockEngine) SetDefaultCacher added in v1.0.9

func (m *MockEngine) SetDefaultCacher(arg0 caches.Cacher)

SetDefaultCacher mocks base method.

func (*MockEngine) SetExpr added in v1.0.9

func (m *MockEngine) SetExpr(arg0 string, arg1 any) *xorm.Session

SetExpr mocks base method.

func (*MockEngine) SetLogLevel added in v1.0.9

func (m *MockEngine) SetLogLevel(arg0 log.LogLevel)

SetLogLevel mocks base method.

func (*MockEngine) SetLogger added in v1.0.9

func (m *MockEngine) SetLogger(logger any)

SetLogger mocks base method.

func (*MockEngine) SetMapper added in v1.0.9

func (m *MockEngine) SetMapper(arg0 names.Mapper)

SetMapper mocks base method.

func (*MockEngine) SetMaxIdleConns added in v1.0.9

func (m *MockEngine) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method.

func (*MockEngine) SetMaxOpenConns added in v1.0.9

func (m *MockEngine) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method.

func (*MockEngine) SetPolicy added in v1.0.9

func (m *MockEngine) SetPolicy(policy xorm.GroupPolicy)

SetPolicy mocks base method.

func (*MockEngine) SetQuotePolicy added in v1.0.9

func (m *MockEngine) SetQuotePolicy(arg0 dialects.QuotePolicy)

SetQuotePolicy mocks base method.

func (*MockEngine) SetSchema added in v1.0.9

func (m *MockEngine) SetSchema(arg0 string)

SetSchema mocks base method.

func (*MockEngine) SetTZDatabase added in v1.0.9

func (m *MockEngine) SetTZDatabase(tz *time.Location)

SetTZDatabase mocks base method.

func (*MockEngine) SetTZLocation added in v1.0.9

func (m *MockEngine) SetTZLocation(tz *time.Location)

SetTZLocation mocks base method.

func (*MockEngine) SetTableMapper added in v1.0.9

func (m *MockEngine) SetTableMapper(arg0 names.Mapper)

SetTableMapper mocks base method.

func (*MockEngine) SetTagIdentifier added in v1.0.9

func (m *MockEngine) SetTagIdentifier(arg0 string)

SetTagIdentifier mocks base method.

func (*MockEngine) ShowSQL added in v1.0.9

func (m *MockEngine) ShowSQL(show ...bool)

ShowSQL mocks base method.

func (*MockEngine) Sqlx added in v1.0.9

func (m *MockEngine) Sqlx(arg0 string, args ...any) *xorm.Session

Sqlx mocks base method.

func (*MockEngine) StoreEngine added in v1.0.9

func (m *MockEngine) StoreEngine(storeEngine string) *xorm.Session

StoreEngine mocks base method.

func (*MockEngine) Sum added in v1.0.9

func (m *MockEngine) Sum(bean any, colName string) (float64, error)

Sum mocks base method.

func (*MockEngine) SumInt added in v1.0.9

func (m *MockEngine) SumInt(bean any, colName string) (int64, error)

SumInt mocks base method.

func (*MockEngine) Sums added in v1.0.9

func (m *MockEngine) Sums(bean any, colNames ...string) ([]float64, error)

Sums mocks base method.

func (*MockEngine) SumsInt added in v1.0.9

func (m *MockEngine) SumsInt(bean any, colNames ...string) ([]int64, error)

SumsInt mocks base method.

func (*MockEngine) Sync added in v1.0.9

func (m *MockEngine) Sync(arg0 ...any) error

Sync mocks base method.

func (*MockEngine) Sync2 added in v1.0.9

func (m *MockEngine) Sync2(arg0 ...any) error

Sync2 mocks base method.

func (*MockEngine) SyncWithOptions added in v1.0.9

func (m *MockEngine) SyncWithOptions(arg0 xorm.SyncOptions, arg1 ...any) (*xorm.SyncResult, error)

SyncWithOptions mocks base method.

func (*MockEngine) Table added in v1.0.9

func (m *MockEngine) Table(tableNameOrBean any) *xorm.Session

Table mocks base method.

func (*MockEngine) TableInfo added in v1.0.9

func (m *MockEngine) TableInfo(bean any) (*schemas.Table, error)

TableInfo mocks base method.

func (*MockEngine) TableName added in v1.0.9

func (m *MockEngine) TableName(arg0 any, arg1 ...bool) string

TableName mocks base method.

func (*MockEngine) Transaction added in v1.0.9

func (m *MockEngine) Transaction(fn func(xorm.Interface) error) error

Transaction mocks base method.

func (*MockEngine) Truncate added in v1.0.9

func (m *MockEngine) Truncate(arg0 ...any) (int64, error)

Truncate mocks base method.

func (*MockEngine) UnMapType added in v1.0.9

func (m *MockEngine) UnMapType(arg0 reflect.Type)

UnMapType mocks base method.

func (*MockEngine) Unscoped added in v1.0.9

func (m *MockEngine) Unscoped() *xorm.Session

Unscoped mocks base method.

func (*MockEngine) Update added in v1.0.9

func (m *MockEngine) Update(bean any, condiBeans ...any) (int64, error)

Update mocks base method.

func (*MockEngine) UseBool added in v1.0.9

func (m *MockEngine) UseBool(arg0 ...string) *xorm.Session

UseBool mocks base method.

func (*MockEngine) Where added in v1.0.9

func (m *MockEngine) Where(arg0 any, arg1 ...any) *xorm.Session

Where mocks base method.

type MockEngineInterface added in v1.0.9

type MockEngineInterface struct {
	// contains filtered or unexported fields
}

MockEngineInterface is a mock of EngineInterface interface.

func NewMockEngineInterface added in v1.0.9

func NewMockEngineInterface(ctrl *gomock.Controller) *MockEngineInterface

NewMockEngineInterface creates a new mock instance.

func (*MockEngineInterface) AddHook added in v1.0.9

func (m *MockEngineInterface) AddHook(hook contexts.Hook)

AddHook mocks base method.

func (*MockEngineInterface) Alias added in v1.0.9

func (m *MockEngineInterface) Alias(alias string) *xorm.Session

Alias mocks base method.

func (*MockEngineInterface) AllCols added in v1.0.9

func (m *MockEngineInterface) AllCols() *xorm.Session

AllCols mocks base method.

func (*MockEngineInterface) Asc added in v1.0.9

func (m *MockEngineInterface) Asc(colNames ...string) *xorm.Session

Asc mocks base method.

func (*MockEngineInterface) Before added in v1.0.9

func (m *MockEngineInterface) Before(arg0 func(any)) *xorm.Session

Before mocks base method.

func (*MockEngineInterface) BufferSize added in v1.0.9

func (m *MockEngineInterface) BufferSize(size int) *xorm.Session

BufferSize mocks base method.

func (*MockEngineInterface) Charset added in v1.0.9

func (m *MockEngineInterface) Charset(charset string) *xorm.Session

Charset mocks base method.

func (*MockEngineInterface) ClearCache added in v1.0.9

func (m *MockEngineInterface) ClearCache(arg0 ...any) error

ClearCache mocks base method.

func (*MockEngineInterface) Cols added in v1.0.9

func (m *MockEngineInterface) Cols(columns ...string) *xorm.Session

Cols mocks base method.

func (*MockEngineInterface) Context added in v1.0.9

func (m *MockEngineInterface) Context(arg0 context.Context) *xorm.Session

Context mocks base method.

func (*MockEngineInterface) Count added in v1.0.9

func (m *MockEngineInterface) Count(arg0 ...any) (int64, error)

Count mocks base method.

func (*MockEngineInterface) CreateIndexes added in v1.0.9

func (m *MockEngineInterface) CreateIndexes(bean any) error

CreateIndexes mocks base method.

func (*MockEngineInterface) CreateTables added in v1.0.9

func (m *MockEngineInterface) CreateTables(arg0 ...any) error

CreateTables mocks base method.

func (*MockEngineInterface) CreateUniques added in v1.0.9

func (m *MockEngineInterface) CreateUniques(bean any) error

CreateUniques mocks base method.

func (*MockEngineInterface) DBMetas added in v1.0.9

func (m *MockEngineInterface) DBMetas() ([]*schemas.Table, error)

DBMetas mocks base method.

func (*MockEngineInterface) DBVersion added in v1.0.9

func (m *MockEngineInterface) DBVersion() (*schemas.Version, error)

DBVersion mocks base method.

func (*MockEngineInterface) Decr added in v1.0.9

func (m *MockEngineInterface) Decr(column string, arg ...any) *xorm.Session

Decr mocks base method.

func (*MockEngineInterface) Delete added in v1.0.9

func (m *MockEngineInterface) Delete(arg0 ...any) (int64, error)

Delete mocks base method.

func (*MockEngineInterface) Desc added in v1.0.9

func (m *MockEngineInterface) Desc(arg0 ...string) *xorm.Session

Desc mocks base method.

func (*MockEngineInterface) Dialect added in v1.0.9

func (m *MockEngineInterface) Dialect() dialects.Dialect

Dialect mocks base method.

func (*MockEngineInterface) Distinct added in v1.0.9

func (m *MockEngineInterface) Distinct(columns ...string) *xorm.Session

Distinct mocks base method.

func (*MockEngineInterface) DriverName added in v1.0.9

func (m *MockEngineInterface) DriverName() string

DriverName mocks base method.

func (*MockEngineInterface) DropIndexes added in v1.0.9

func (m *MockEngineInterface) DropIndexes(bean any) error

DropIndexes mocks base method.

func (*MockEngineInterface) DropTables added in v1.0.9

func (m *MockEngineInterface) DropTables(arg0 ...any) error

DropTables mocks base method.

func (*MockEngineInterface) DumpAllToFile added in v1.0.9

func (m *MockEngineInterface) DumpAllToFile(fp string, tp ...schemas.DBType) error

DumpAllToFile mocks base method.

func (*MockEngineInterface) EXPECT added in v1.0.9

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEngineInterface) EnableSessionID added in v1.0.9

func (m *MockEngineInterface) EnableSessionID(arg0 bool)

EnableSessionID mocks base method.

func (*MockEngineInterface) Exec added in v1.0.9

func (m *MockEngineInterface) Exec(sqlOrArgs ...any) (sql.Result, error)

Exec mocks base method.

func (*MockEngineInterface) Exist added in v1.0.9

func (m *MockEngineInterface) Exist(bean ...any) (bool, error)

Exist mocks base method.

func (*MockEngineInterface) Find added in v1.0.9

func (m *MockEngineInterface) Find(arg0 any, arg1 ...any) error

Find mocks base method.

func (*MockEngineInterface) FindAndCount added in v1.0.9

func (m *MockEngineInterface) FindAndCount(arg0 any, arg1 ...any) (int64, error)

FindAndCount mocks base method.

func (*MockEngineInterface) Get added in v1.0.9

func (m *MockEngineInterface) Get(arg0 ...any) (bool, error)

Get mocks base method.

func (*MockEngineInterface) GetCacher added in v1.0.9

func (m *MockEngineInterface) GetCacher(arg0 string) caches.Cacher

GetCacher mocks base method.

func (*MockEngineInterface) GetColumnMapper added in v1.0.9

func (m *MockEngineInterface) GetColumnMapper() names.Mapper

GetColumnMapper mocks base method.

func (*MockEngineInterface) GetDefaultCacher added in v1.0.9

func (m *MockEngineInterface) GetDefaultCacher() caches.Cacher

GetDefaultCacher mocks base method.

func (*MockEngineInterface) GetTZDatabase added in v1.0.9

func (m *MockEngineInterface) GetTZDatabase() *time.Location

GetTZDatabase mocks base method.

func (*MockEngineInterface) GetTZLocation added in v1.0.9

func (m *MockEngineInterface) GetTZLocation() *time.Location

GetTZLocation mocks base method.

func (*MockEngineInterface) GetTableMapper added in v1.0.9

func (m *MockEngineInterface) GetTableMapper() names.Mapper

GetTableMapper mocks base method.

func (*MockEngineInterface) GroupBy added in v1.0.9

func (m *MockEngineInterface) GroupBy(keys string) *xorm.Session

GroupBy mocks base method.

func (*MockEngineInterface) ID added in v1.0.9

func (m *MockEngineInterface) ID(arg0 any) *xorm.Session

ID mocks base method.

func (*MockEngineInterface) ImportFile added in v1.0.9

func (m *MockEngineInterface) ImportFile(fp string) ([]sql.Result, error)

ImportFile mocks base method.

func (*MockEngineInterface) In added in v1.0.9

func (m *MockEngineInterface) In(arg0 string, arg1 ...any) *xorm.Session

In mocks base method.

func (*MockEngineInterface) Incr added in v1.0.9

func (m *MockEngineInterface) Incr(column string, arg ...any) *xorm.Session

Incr mocks base method.

func (*MockEngineInterface) Insert added in v1.0.9

func (m *MockEngineInterface) Insert(arg0 ...any) (int64, error)

Insert mocks base method.

func (*MockEngineInterface) InsertOne added in v1.0.9

func (m *MockEngineInterface) InsertOne(arg0 any) (int64, error)

InsertOne mocks base method.

func (*MockEngineInterface) IsTableEmpty added in v1.0.9

func (m *MockEngineInterface) IsTableEmpty(bean any) (bool, error)

IsTableEmpty mocks base method.

func (*MockEngineInterface) IsTableExist added in v1.0.9

func (m *MockEngineInterface) IsTableExist(beanOrTableName any) (bool, error)

IsTableExist mocks base method.

func (*MockEngineInterface) Iterate added in v1.0.9

func (m *MockEngineInterface) Iterate(arg0 any, arg1 xorm.IterFunc) error

Iterate mocks base method.

func (*MockEngineInterface) Join added in v1.0.9

func (m *MockEngineInterface) Join(joinOperator string, tablename, condition any, args ...any) *xorm.Session

Join mocks base method.

func (*MockEngineInterface) Limit added in v1.0.9

func (m *MockEngineInterface) Limit(arg0 int, arg1 ...int) *xorm.Session

Limit mocks base method.

func (*MockEngineInterface) MapCacher added in v1.0.9

func (m *MockEngineInterface) MapCacher(arg0 any, arg1 caches.Cacher) error

MapCacher mocks base method.

func (*MockEngineInterface) MustCols added in v1.0.9

func (m *MockEngineInterface) MustCols(columns ...string) *xorm.Session

MustCols mocks base method.

func (*MockEngineInterface) NewSession added in v1.0.9

func (m *MockEngineInterface) NewSession() *xorm.Session

NewSession mocks base method.

func (*MockEngineInterface) NoAutoCondition added in v1.0.9

func (m *MockEngineInterface) NoAutoCondition(arg0 ...bool) *xorm.Session

NoAutoCondition mocks base method.

func (*MockEngineInterface) NoAutoTime added in v1.0.9

func (m *MockEngineInterface) NoAutoTime() *xorm.Session

NoAutoTime mocks base method.

func (*MockEngineInterface) NotIn added in v1.0.9

func (m *MockEngineInterface) NotIn(arg0 string, arg1 ...any) *xorm.Session

NotIn mocks base method.

func (*MockEngineInterface) Nullable added in v1.0.9

func (m *MockEngineInterface) Nullable(arg0 ...string) *xorm.Session

Nullable mocks base method.

func (*MockEngineInterface) Omit added in v1.0.9

func (m *MockEngineInterface) Omit(columns ...string) *xorm.Session

Omit mocks base method.

func (*MockEngineInterface) OrderBy added in v1.0.9

func (m *MockEngineInterface) OrderBy(order any, args ...any) *xorm.Session

OrderBy mocks base method.

func (*MockEngineInterface) Ping added in v1.0.9

func (m *MockEngineInterface) Ping() error

Ping mocks base method.

func (*MockEngineInterface) Prepare added in v1.0.9

func (m *MockEngineInterface) Prepare() *xorm.Session

Prepare mocks base method.

func (*MockEngineInterface) Query added in v1.0.9

func (m *MockEngineInterface) Query(sqlOrArgs ...any) ([]map[string][]byte, error)

Query mocks base method.

func (*MockEngineInterface) QueryInterface added in v1.0.9

func (m *MockEngineInterface) QueryInterface(sqlOrArgs ...any) ([]map[string]any, error)

QueryInterface mocks base method.

func (*MockEngineInterface) QueryString added in v1.0.9

func (m *MockEngineInterface) QueryString(sqlOrArgs ...any) ([]map[string]string, error)

QueryString mocks base method.

func (*MockEngineInterface) Quote added in v1.0.9

func (m *MockEngineInterface) Quote(arg0 string) string

Quote mocks base method.

func (*MockEngineInterface) Rows added in v1.0.9

func (m *MockEngineInterface) Rows(bean any) (*xorm.Rows, error)

Rows mocks base method.

func (*MockEngineInterface) SQL added in v1.0.9

func (m *MockEngineInterface) SQL(arg0 any, arg1 ...any) *xorm.Session

SQL mocks base method.

func (*MockEngineInterface) Select added in v1.0.9

func (m *MockEngineInterface) Select(arg0 string) *xorm.Session

Select mocks base method.

func (*MockEngineInterface) SetCacher added in v1.0.9

func (m *MockEngineInterface) SetCacher(arg0 string, arg1 caches.Cacher)

SetCacher mocks base method.

func (*MockEngineInterface) SetColumnMapper added in v1.0.9

func (m *MockEngineInterface) SetColumnMapper(arg0 names.Mapper)

SetColumnMapper mocks base method.

func (*MockEngineInterface) SetConnMaxLifetime added in v1.0.9

func (m *MockEngineInterface) SetConnMaxLifetime(arg0 time.Duration)

SetConnMaxLifetime mocks base method.

func (*MockEngineInterface) SetDefaultCacher added in v1.0.9

func (m *MockEngineInterface) SetDefaultCacher(arg0 caches.Cacher)

SetDefaultCacher mocks base method.

func (*MockEngineInterface) SetExpr added in v1.0.9

func (m *MockEngineInterface) SetExpr(arg0 string, arg1 any) *xorm.Session

SetExpr mocks base method.

func (*MockEngineInterface) SetLogLevel added in v1.0.9

func (m *MockEngineInterface) SetLogLevel(arg0 log.LogLevel)

SetLogLevel mocks base method.

func (*MockEngineInterface) SetLogger added in v1.0.9

func (m *MockEngineInterface) SetLogger(logger any)

SetLogger mocks base method.

func (*MockEngineInterface) SetMapper added in v1.0.9

func (m *MockEngineInterface) SetMapper(arg0 names.Mapper)

SetMapper mocks base method.

func (*MockEngineInterface) SetMaxIdleConns added in v1.0.9

func (m *MockEngineInterface) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method.

func (*MockEngineInterface) SetMaxOpenConns added in v1.0.9

func (m *MockEngineInterface) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method.

func (*MockEngineInterface) SetQuotePolicy added in v1.0.9

func (m *MockEngineInterface) SetQuotePolicy(arg0 dialects.QuotePolicy)

SetQuotePolicy mocks base method.

func (*MockEngineInterface) SetSchema added in v1.0.9

func (m *MockEngineInterface) SetSchema(arg0 string)

SetSchema mocks base method.

func (*MockEngineInterface) SetTZDatabase added in v1.0.9

func (m *MockEngineInterface) SetTZDatabase(tz *time.Location)

SetTZDatabase mocks base method.

func (*MockEngineInterface) SetTZLocation added in v1.0.9

func (m *MockEngineInterface) SetTZLocation(tz *time.Location)

SetTZLocation mocks base method.

func (*MockEngineInterface) SetTableMapper added in v1.0.9

func (m *MockEngineInterface) SetTableMapper(arg0 names.Mapper)

SetTableMapper mocks base method.

func (*MockEngineInterface) SetTagIdentifier added in v1.0.9

func (m *MockEngineInterface) SetTagIdentifier(arg0 string)

SetTagIdentifier mocks base method.

func (*MockEngineInterface) ShowSQL added in v1.0.9

func (m *MockEngineInterface) ShowSQL(show ...bool)

ShowSQL mocks base method.

func (*MockEngineInterface) StoreEngine added in v1.0.9

func (m *MockEngineInterface) StoreEngine(storeEngine string) *xorm.Session

StoreEngine mocks base method.

func (*MockEngineInterface) Sum added in v1.0.9

func (m *MockEngineInterface) Sum(bean any, colName string) (float64, error)

Sum mocks base method.

func (*MockEngineInterface) SumInt added in v1.0.9

func (m *MockEngineInterface) SumInt(bean any, colName string) (int64, error)

SumInt mocks base method.

func (*MockEngineInterface) Sums added in v1.0.9

func (m *MockEngineInterface) Sums(bean any, colNames ...string) ([]float64, error)

Sums mocks base method.

func (*MockEngineInterface) SumsInt added in v1.0.9

func (m *MockEngineInterface) SumsInt(bean any, colNames ...string) ([]int64, error)

SumsInt mocks base method.

func (*MockEngineInterface) Sync added in v1.0.9

func (m *MockEngineInterface) Sync(arg0 ...any) error

Sync mocks base method.

func (*MockEngineInterface) Sync2 added in v1.0.9

func (m *MockEngineInterface) Sync2(arg0 ...any) error

Sync2 mocks base method.

func (*MockEngineInterface) SyncWithOptions added in v1.0.9

func (m *MockEngineInterface) SyncWithOptions(arg0 xorm.SyncOptions, arg1 ...any) (*xorm.SyncResult, error)

SyncWithOptions mocks base method.

func (*MockEngineInterface) Table added in v1.0.9

func (m *MockEngineInterface) Table(tableNameOrBean any) *xorm.Session

Table mocks base method.

func (*MockEngineInterface) TableInfo added in v1.0.9

func (m *MockEngineInterface) TableInfo(bean any) (*schemas.Table, error)

TableInfo mocks base method.

func (*MockEngineInterface) TableName added in v1.0.9

func (m *MockEngineInterface) TableName(arg0 any, arg1 ...bool) string

TableName mocks base method.

func (*MockEngineInterface) Truncate added in v1.0.9

func (m *MockEngineInterface) Truncate(arg0 ...any) (int64, error)

Truncate mocks base method.

func (*MockEngineInterface) UnMapType added in v1.0.9

func (m *MockEngineInterface) UnMapType(arg0 reflect.Type)

UnMapType mocks base method.

func (*MockEngineInterface) Unscoped added in v1.0.9

func (m *MockEngineInterface) Unscoped() *xorm.Session

Unscoped mocks base method.

func (*MockEngineInterface) Update added in v1.0.9

func (m *MockEngineInterface) Update(bean any, condiBeans ...any) (int64, error)

Update mocks base method.

func (*MockEngineInterface) UseBool added in v1.0.9

func (m *MockEngineInterface) UseBool(arg0 ...string) *xorm.Session

UseBool mocks base method.

func (*MockEngineInterface) Where added in v1.0.9

func (m *MockEngineInterface) Where(arg0 any, arg1 ...any) *xorm.Session

Where mocks base method.

type MockEngineInterfaceMockRecorder added in v1.0.9

type MockEngineInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockEngineInterfaceMockRecorder is the mock recorder for MockEngineInterface.

func (*MockEngineInterfaceMockRecorder) AddHook added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) AddHook(hook any) *gomock.Call

AddHook indicates an expected call of AddHook.

func (*MockEngineInterfaceMockRecorder) Alias added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Alias(alias any) *gomock.Call

Alias indicates an expected call of Alias.

func (*MockEngineInterfaceMockRecorder) AllCols added in v1.0.9

AllCols indicates an expected call of AllCols.

func (*MockEngineInterfaceMockRecorder) Asc added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Asc(colNames ...any) *gomock.Call

Asc indicates an expected call of Asc.

func (*MockEngineInterfaceMockRecorder) Before added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Before(arg0 any) *gomock.Call

Before indicates an expected call of Before.

func (*MockEngineInterfaceMockRecorder) BufferSize added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) BufferSize(size any) *gomock.Call

BufferSize indicates an expected call of BufferSize.

func (*MockEngineInterfaceMockRecorder) Charset added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Charset(charset any) *gomock.Call

Charset indicates an expected call of Charset.

func (*MockEngineInterfaceMockRecorder) ClearCache added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) ClearCache(arg0 ...any) *gomock.Call

ClearCache indicates an expected call of ClearCache.

func (*MockEngineInterfaceMockRecorder) Cols added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Cols(columns ...any) *gomock.Call

Cols indicates an expected call of Cols.

func (*MockEngineInterfaceMockRecorder) Context added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Context(arg0 any) *gomock.Call

Context indicates an expected call of Context.

func (*MockEngineInterfaceMockRecorder) Count added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Count(arg0 ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockEngineInterfaceMockRecorder) CreateIndexes added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) CreateIndexes(bean any) *gomock.Call

CreateIndexes indicates an expected call of CreateIndexes.

func (*MockEngineInterfaceMockRecorder) CreateTables added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) CreateTables(arg0 ...any) *gomock.Call

CreateTables indicates an expected call of CreateTables.

func (*MockEngineInterfaceMockRecorder) CreateUniques added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) CreateUniques(bean any) *gomock.Call

CreateUniques indicates an expected call of CreateUniques.

func (*MockEngineInterfaceMockRecorder) DBMetas added in v1.0.9

DBMetas indicates an expected call of DBMetas.

func (*MockEngineInterfaceMockRecorder) DBVersion added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) DBVersion() *gomock.Call

DBVersion indicates an expected call of DBVersion.

func (*MockEngineInterfaceMockRecorder) Decr added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Decr(column any, arg ...any) *gomock.Call

Decr indicates an expected call of Decr.

func (*MockEngineInterfaceMockRecorder) Delete added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Delete(arg0 ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockEngineInterfaceMockRecorder) Desc added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Desc(arg0 ...any) *gomock.Call

Desc indicates an expected call of Desc.

func (*MockEngineInterfaceMockRecorder) Dialect added in v1.0.9

Dialect indicates an expected call of Dialect.

func (*MockEngineInterfaceMockRecorder) Distinct added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Distinct(columns ...any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockEngineInterfaceMockRecorder) DriverName added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) DriverName() *gomock.Call

DriverName indicates an expected call of DriverName.

func (*MockEngineInterfaceMockRecorder) DropIndexes added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) DropIndexes(bean any) *gomock.Call

DropIndexes indicates an expected call of DropIndexes.

func (*MockEngineInterfaceMockRecorder) DropTables added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) DropTables(arg0 ...any) *gomock.Call

DropTables indicates an expected call of DropTables.

func (*MockEngineInterfaceMockRecorder) DumpAllToFile added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) DumpAllToFile(fp any, tp ...any) *gomock.Call

DumpAllToFile indicates an expected call of DumpAllToFile.

func (*MockEngineInterfaceMockRecorder) EnableSessionID added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) EnableSessionID(arg0 any) *gomock.Call

EnableSessionID indicates an expected call of EnableSessionID.

func (*MockEngineInterfaceMockRecorder) Exec added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Exec(sqlOrArgs ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockEngineInterfaceMockRecorder) Exist added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Exist(bean ...any) *gomock.Call

Exist indicates an expected call of Exist.

func (*MockEngineInterfaceMockRecorder) Find added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Find(arg0 any, arg1 ...any) *gomock.Call

Find indicates an expected call of Find.

func (*MockEngineInterfaceMockRecorder) FindAndCount added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) FindAndCount(arg0 any, arg1 ...any) *gomock.Call

FindAndCount indicates an expected call of FindAndCount.

func (*MockEngineInterfaceMockRecorder) Get added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Get(arg0 ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockEngineInterfaceMockRecorder) GetCacher added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetCacher(arg0 any) *gomock.Call

GetCacher indicates an expected call of GetCacher.

func (*MockEngineInterfaceMockRecorder) GetColumnMapper added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetColumnMapper() *gomock.Call

GetColumnMapper indicates an expected call of GetColumnMapper.

func (*MockEngineInterfaceMockRecorder) GetDefaultCacher added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetDefaultCacher() *gomock.Call

GetDefaultCacher indicates an expected call of GetDefaultCacher.

func (*MockEngineInterfaceMockRecorder) GetTZDatabase added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetTZDatabase() *gomock.Call

GetTZDatabase indicates an expected call of GetTZDatabase.

func (*MockEngineInterfaceMockRecorder) GetTZLocation added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetTZLocation() *gomock.Call

GetTZLocation indicates an expected call of GetTZLocation.

func (*MockEngineInterfaceMockRecorder) GetTableMapper added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GetTableMapper() *gomock.Call

GetTableMapper indicates an expected call of GetTableMapper.

func (*MockEngineInterfaceMockRecorder) GroupBy added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) GroupBy(keys any) *gomock.Call

GroupBy indicates an expected call of GroupBy.

func (*MockEngineInterfaceMockRecorder) ID added in v1.0.9

ID indicates an expected call of ID.

func (*MockEngineInterfaceMockRecorder) ImportFile added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) ImportFile(fp any) *gomock.Call

ImportFile indicates an expected call of ImportFile.

func (*MockEngineInterfaceMockRecorder) In added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) In(arg0 any, arg1 ...any) *gomock.Call

In indicates an expected call of In.

func (*MockEngineInterfaceMockRecorder) Incr added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Incr(column any, arg ...any) *gomock.Call

Incr indicates an expected call of Incr.

func (*MockEngineInterfaceMockRecorder) Insert added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Insert(arg0 ...any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockEngineInterfaceMockRecorder) InsertOne added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) InsertOne(arg0 any) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockEngineInterfaceMockRecorder) IsTableEmpty added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) IsTableEmpty(bean any) *gomock.Call

IsTableEmpty indicates an expected call of IsTableEmpty.

func (*MockEngineInterfaceMockRecorder) IsTableExist added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) IsTableExist(beanOrTableName any) *gomock.Call

IsTableExist indicates an expected call of IsTableExist.

func (*MockEngineInterfaceMockRecorder) Iterate added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Iterate(arg0, arg1 any) *gomock.Call

Iterate indicates an expected call of Iterate.

func (*MockEngineInterfaceMockRecorder) Join added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Join(joinOperator, tablename, condition any, args ...any) *gomock.Call

Join indicates an expected call of Join.

func (*MockEngineInterfaceMockRecorder) Limit added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Limit(arg0 any, arg1 ...any) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockEngineInterfaceMockRecorder) MapCacher added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) MapCacher(arg0, arg1 any) *gomock.Call

MapCacher indicates an expected call of MapCacher.

func (*MockEngineInterfaceMockRecorder) MustCols added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) MustCols(columns ...any) *gomock.Call

MustCols indicates an expected call of MustCols.

func (*MockEngineInterfaceMockRecorder) NewSession added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) NewSession() *gomock.Call

NewSession indicates an expected call of NewSession.

func (*MockEngineInterfaceMockRecorder) NoAutoCondition added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) NoAutoCondition(arg0 ...any) *gomock.Call

NoAutoCondition indicates an expected call of NoAutoCondition.

func (*MockEngineInterfaceMockRecorder) NoAutoTime added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) NoAutoTime() *gomock.Call

NoAutoTime indicates an expected call of NoAutoTime.

func (*MockEngineInterfaceMockRecorder) NotIn added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) NotIn(arg0 any, arg1 ...any) *gomock.Call

NotIn indicates an expected call of NotIn.

func (*MockEngineInterfaceMockRecorder) Nullable added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Nullable(arg0 ...any) *gomock.Call

Nullable indicates an expected call of Nullable.

func (*MockEngineInterfaceMockRecorder) Omit added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Omit(columns ...any) *gomock.Call

Omit indicates an expected call of Omit.

func (*MockEngineInterfaceMockRecorder) OrderBy added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) OrderBy(order any, args ...any) *gomock.Call

OrderBy indicates an expected call of OrderBy.

func (*MockEngineInterfaceMockRecorder) Ping added in v1.0.9

Ping indicates an expected call of Ping.

func (*MockEngineInterfaceMockRecorder) Prepare added in v1.0.9

Prepare indicates an expected call of Prepare.

func (*MockEngineInterfaceMockRecorder) Query added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Query(sqlOrArgs ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockEngineInterfaceMockRecorder) QueryInterface added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) QueryInterface(sqlOrArgs ...any) *gomock.Call

QueryInterface indicates an expected call of QueryInterface.

func (*MockEngineInterfaceMockRecorder) QueryString added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) QueryString(sqlOrArgs ...any) *gomock.Call

QueryString indicates an expected call of QueryString.

func (*MockEngineInterfaceMockRecorder) Quote added in v1.0.9

Quote indicates an expected call of Quote.

func (*MockEngineInterfaceMockRecorder) Rows added in v1.0.9

Rows indicates an expected call of Rows.

func (*MockEngineInterfaceMockRecorder) SQL added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SQL(arg0 any, arg1 ...any) *gomock.Call

SQL indicates an expected call of SQL.

func (*MockEngineInterfaceMockRecorder) Select added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Select(arg0 any) *gomock.Call

Select indicates an expected call of Select.

func (*MockEngineInterfaceMockRecorder) SetCacher added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetCacher(arg0, arg1 any) *gomock.Call

SetCacher indicates an expected call of SetCacher.

func (*MockEngineInterfaceMockRecorder) SetColumnMapper added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetColumnMapper(arg0 any) *gomock.Call

SetColumnMapper indicates an expected call of SetColumnMapper.

func (*MockEngineInterfaceMockRecorder) SetConnMaxLifetime added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetConnMaxLifetime(arg0 any) *gomock.Call

SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.

func (*MockEngineInterfaceMockRecorder) SetDefaultCacher added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetDefaultCacher(arg0 any) *gomock.Call

SetDefaultCacher indicates an expected call of SetDefaultCacher.

func (*MockEngineInterfaceMockRecorder) SetExpr added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetExpr(arg0, arg1 any) *gomock.Call

SetExpr indicates an expected call of SetExpr.

func (*MockEngineInterfaceMockRecorder) SetLogLevel added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetLogLevel(arg0 any) *gomock.Call

SetLogLevel indicates an expected call of SetLogLevel.

func (*MockEngineInterfaceMockRecorder) SetLogger added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetLogger(logger any) *gomock.Call

SetLogger indicates an expected call of SetLogger.

func (*MockEngineInterfaceMockRecorder) SetMapper added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetMapper(arg0 any) *gomock.Call

SetMapper indicates an expected call of SetMapper.

func (*MockEngineInterfaceMockRecorder) SetMaxIdleConns added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetMaxIdleConns(arg0 any) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockEngineInterfaceMockRecorder) SetMaxOpenConns added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetMaxOpenConns(arg0 any) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

func (*MockEngineInterfaceMockRecorder) SetQuotePolicy added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetQuotePolicy(arg0 any) *gomock.Call

SetQuotePolicy indicates an expected call of SetQuotePolicy.

func (*MockEngineInterfaceMockRecorder) SetSchema added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetSchema(arg0 any) *gomock.Call

SetSchema indicates an expected call of SetSchema.

func (*MockEngineInterfaceMockRecorder) SetTZDatabase added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetTZDatabase(tz any) *gomock.Call

SetTZDatabase indicates an expected call of SetTZDatabase.

func (*MockEngineInterfaceMockRecorder) SetTZLocation added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetTZLocation(tz any) *gomock.Call

SetTZLocation indicates an expected call of SetTZLocation.

func (*MockEngineInterfaceMockRecorder) SetTableMapper added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetTableMapper(arg0 any) *gomock.Call

SetTableMapper indicates an expected call of SetTableMapper.

func (*MockEngineInterfaceMockRecorder) SetTagIdentifier added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SetTagIdentifier(arg0 any) *gomock.Call

SetTagIdentifier indicates an expected call of SetTagIdentifier.

func (*MockEngineInterfaceMockRecorder) ShowSQL added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) ShowSQL(show ...any) *gomock.Call

ShowSQL indicates an expected call of ShowSQL.

func (*MockEngineInterfaceMockRecorder) StoreEngine added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) StoreEngine(storeEngine any) *gomock.Call

StoreEngine indicates an expected call of StoreEngine.

func (*MockEngineInterfaceMockRecorder) Sum added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Sum(bean, colName any) *gomock.Call

Sum indicates an expected call of Sum.

func (*MockEngineInterfaceMockRecorder) SumInt added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SumInt(bean, colName any) *gomock.Call

SumInt indicates an expected call of SumInt.

func (*MockEngineInterfaceMockRecorder) Sums added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Sums(bean any, colNames ...any) *gomock.Call

Sums indicates an expected call of Sums.

func (*MockEngineInterfaceMockRecorder) SumsInt added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SumsInt(bean any, colNames ...any) *gomock.Call

SumsInt indicates an expected call of SumsInt.

func (*MockEngineInterfaceMockRecorder) Sync added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Sync(arg0 ...any) *gomock.Call

Sync indicates an expected call of Sync.

func (*MockEngineInterfaceMockRecorder) Sync2 added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Sync2(arg0 ...any) *gomock.Call

Sync2 indicates an expected call of Sync2.

func (*MockEngineInterfaceMockRecorder) SyncWithOptions added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) SyncWithOptions(arg0 any, arg1 ...any) *gomock.Call

SyncWithOptions indicates an expected call of SyncWithOptions.

func (*MockEngineInterfaceMockRecorder) Table added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Table(tableNameOrBean any) *gomock.Call

Table indicates an expected call of Table.

func (*MockEngineInterfaceMockRecorder) TableInfo added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) TableInfo(bean any) *gomock.Call

TableInfo indicates an expected call of TableInfo.

func (*MockEngineInterfaceMockRecorder) TableName added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) TableName(arg0 any, arg1 ...any) *gomock.Call

TableName indicates an expected call of TableName.

func (*MockEngineInterfaceMockRecorder) Truncate added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Truncate(arg0 ...any) *gomock.Call

Truncate indicates an expected call of Truncate.

func (*MockEngineInterfaceMockRecorder) UnMapType added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) UnMapType(arg0 any) *gomock.Call

UnMapType indicates an expected call of UnMapType.

func (*MockEngineInterfaceMockRecorder) Unscoped added in v1.0.9

Unscoped indicates an expected call of Unscoped.

func (*MockEngineInterfaceMockRecorder) Update added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Update(bean any, condiBeans ...any) *gomock.Call

Update indicates an expected call of Update.

func (*MockEngineInterfaceMockRecorder) UseBool added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) UseBool(arg0 ...any) *gomock.Call

UseBool indicates an expected call of UseBool.

func (*MockEngineInterfaceMockRecorder) Where added in v1.0.9

func (mr *MockEngineInterfaceMockRecorder) Where(arg0 any, arg1 ...any) *gomock.Call

Where indicates an expected call of Where.

type MockEngineMockRecorder added in v1.0.9

type MockEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockEngineMockRecorder is the mock recorder for MockEngine.

func (*MockEngineMockRecorder) AddHook added in v1.0.9

func (mr *MockEngineMockRecorder) AddHook(hook any) *gomock.Call

AddHook indicates an expected call of AddHook.

func (*MockEngineMockRecorder) Alias added in v1.0.9

func (mr *MockEngineMockRecorder) Alias(alias any) *gomock.Call

Alias indicates an expected call of Alias.

func (*MockEngineMockRecorder) AllCols added in v1.0.9

func (mr *MockEngineMockRecorder) AllCols() *gomock.Call

AllCols indicates an expected call of AllCols.

func (*MockEngineMockRecorder) Asc added in v1.0.9

func (mr *MockEngineMockRecorder) Asc(colNames ...any) *gomock.Call

Asc indicates an expected call of Asc.

func (*MockEngineMockRecorder) Before added in v1.0.9

func (mr *MockEngineMockRecorder) Before(arg0 any) *gomock.Call

Before indicates an expected call of Before.

func (*MockEngineMockRecorder) BufferSize added in v1.0.9

func (mr *MockEngineMockRecorder) BufferSize(size any) *gomock.Call

BufferSize indicates an expected call of BufferSize.

func (*MockEngineMockRecorder) Charset added in v1.0.9

func (mr *MockEngineMockRecorder) Charset(charset any) *gomock.Call

Charset indicates an expected call of Charset.

func (*MockEngineMockRecorder) ClearCache added in v1.0.9

func (mr *MockEngineMockRecorder) ClearCache(arg0 ...any) *gomock.Call

ClearCache indicates an expected call of ClearCache.

func (*MockEngineMockRecorder) Cols added in v1.0.9

func (mr *MockEngineMockRecorder) Cols(columns ...any) *gomock.Call

Cols indicates an expected call of Cols.

func (*MockEngineMockRecorder) Context added in v1.0.9

func (mr *MockEngineMockRecorder) Context(arg0 any) *gomock.Call

Context indicates an expected call of Context.

func (*MockEngineMockRecorder) Count added in v1.0.9

func (mr *MockEngineMockRecorder) Count(arg0 ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockEngineMockRecorder) CreateIndexes added in v1.0.9

func (mr *MockEngineMockRecorder) CreateIndexes(bean any) *gomock.Call

CreateIndexes indicates an expected call of CreateIndexes.

func (*MockEngineMockRecorder) CreateTables added in v1.0.9

func (mr *MockEngineMockRecorder) CreateTables(arg0 ...any) *gomock.Call

CreateTables indicates an expected call of CreateTables.

func (*MockEngineMockRecorder) CreateUniques added in v1.0.9

func (mr *MockEngineMockRecorder) CreateUniques(bean any) *gomock.Call

CreateUniques indicates an expected call of CreateUniques.

func (*MockEngineMockRecorder) DBMetas added in v1.0.9

func (mr *MockEngineMockRecorder) DBMetas() *gomock.Call

DBMetas indicates an expected call of DBMetas.

func (*MockEngineMockRecorder) DBVersion added in v1.0.9

func (mr *MockEngineMockRecorder) DBVersion() *gomock.Call

DBVersion indicates an expected call of DBVersion.

func (*MockEngineMockRecorder) Decr added in v1.0.9

func (mr *MockEngineMockRecorder) Decr(column any, arg ...any) *gomock.Call

Decr indicates an expected call of Decr.

func (*MockEngineMockRecorder) Delete added in v1.0.9

func (mr *MockEngineMockRecorder) Delete(arg0 ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockEngineMockRecorder) Desc added in v1.0.9

func (mr *MockEngineMockRecorder) Desc(arg0 ...any) *gomock.Call

Desc indicates an expected call of Desc.

func (*MockEngineMockRecorder) Dialect added in v1.0.9

func (mr *MockEngineMockRecorder) Dialect() *gomock.Call

Dialect indicates an expected call of Dialect.

func (*MockEngineMockRecorder) Distinct added in v1.0.9

func (mr *MockEngineMockRecorder) Distinct(columns ...any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockEngineMockRecorder) DriverName added in v1.0.9

func (mr *MockEngineMockRecorder) DriverName() *gomock.Call

DriverName indicates an expected call of DriverName.

func (*MockEngineMockRecorder) DropIndexes added in v1.0.9

func (mr *MockEngineMockRecorder) DropIndexes(bean any) *gomock.Call

DropIndexes indicates an expected call of DropIndexes.

func (*MockEngineMockRecorder) DropTables added in v1.0.9

func (mr *MockEngineMockRecorder) DropTables(arg0 ...any) *gomock.Call

DropTables indicates an expected call of DropTables.

func (*MockEngineMockRecorder) DumpAllToFile added in v1.0.9

func (mr *MockEngineMockRecorder) DumpAllToFile(fp any, tp ...any) *gomock.Call

DumpAllToFile indicates an expected call of DumpAllToFile.

func (*MockEngineMockRecorder) EnableSessionID added in v1.0.9

func (mr *MockEngineMockRecorder) EnableSessionID(arg0 any) *gomock.Call

EnableSessionID indicates an expected call of EnableSessionID.

func (*MockEngineMockRecorder) Exec added in v1.0.9

func (mr *MockEngineMockRecorder) Exec(sqlOrArgs ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockEngineMockRecorder) Exist added in v1.0.9

func (mr *MockEngineMockRecorder) Exist(bean ...any) *gomock.Call

Exist indicates an expected call of Exist.

func (*MockEngineMockRecorder) Find added in v1.0.9

func (mr *MockEngineMockRecorder) Find(arg0 any, arg1 ...any) *gomock.Call

Find indicates an expected call of Find.

func (*MockEngineMockRecorder) FindAndCount added in v1.0.9

func (mr *MockEngineMockRecorder) FindAndCount(arg0 any, arg1 ...any) *gomock.Call

FindAndCount indicates an expected call of FindAndCount.

func (*MockEngineMockRecorder) Get added in v1.0.9

func (mr *MockEngineMockRecorder) Get(arg0 ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockEngineMockRecorder) GetCacher added in v1.0.9

func (mr *MockEngineMockRecorder) GetCacher(arg0 any) *gomock.Call

GetCacher indicates an expected call of GetCacher.

func (*MockEngineMockRecorder) GetColumnMapper added in v1.0.9

func (mr *MockEngineMockRecorder) GetColumnMapper() *gomock.Call

GetColumnMapper indicates an expected call of GetColumnMapper.

func (*MockEngineMockRecorder) GetDefaultCacher added in v1.0.9

func (mr *MockEngineMockRecorder) GetDefaultCacher() *gomock.Call

GetDefaultCacher indicates an expected call of GetDefaultCacher.

func (*MockEngineMockRecorder) GetOriginEngine added in v1.0.9

func (mr *MockEngineMockRecorder) GetOriginEngine() *gomock.Call

GetOriginEngine indicates an expected call of GetOriginEngine.

func (*MockEngineMockRecorder) GetTZDatabase added in v1.0.9

func (mr *MockEngineMockRecorder) GetTZDatabase() *gomock.Call

GetTZDatabase indicates an expected call of GetTZDatabase.

func (*MockEngineMockRecorder) GetTZLocation added in v1.0.9

func (mr *MockEngineMockRecorder) GetTZLocation() *gomock.Call

GetTZLocation indicates an expected call of GetTZLocation.

func (*MockEngineMockRecorder) GetTableMapper added in v1.0.9

func (mr *MockEngineMockRecorder) GetTableMapper() *gomock.Call

GetTableMapper indicates an expected call of GetTableMapper.

func (*MockEngineMockRecorder) GroupBy added in v1.0.9

func (mr *MockEngineMockRecorder) GroupBy(keys any) *gomock.Call

GroupBy indicates an expected call of GroupBy.

func (*MockEngineMockRecorder) ID added in v1.0.9

func (mr *MockEngineMockRecorder) ID(arg0 any) *gomock.Call

ID indicates an expected call of ID.

func (*MockEngineMockRecorder) ImportFile added in v1.0.9

func (mr *MockEngineMockRecorder) ImportFile(fp any) *gomock.Call

ImportFile indicates an expected call of ImportFile.

func (*MockEngineMockRecorder) In added in v1.0.9

func (mr *MockEngineMockRecorder) In(arg0 any, arg1 ...any) *gomock.Call

In indicates an expected call of In.

func (*MockEngineMockRecorder) Incr added in v1.0.9

func (mr *MockEngineMockRecorder) Incr(column any, arg ...any) *gomock.Call

Incr indicates an expected call of Incr.

func (*MockEngineMockRecorder) Insert added in v1.0.9

func (mr *MockEngineMockRecorder) Insert(arg0 ...any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockEngineMockRecorder) InsertOne added in v1.0.9

func (mr *MockEngineMockRecorder) InsertOne(arg0 any) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockEngineMockRecorder) IsTableEmpty added in v1.0.9

func (mr *MockEngineMockRecorder) IsTableEmpty(bean any) *gomock.Call

IsTableEmpty indicates an expected call of IsTableEmpty.

func (*MockEngineMockRecorder) IsTableExist added in v1.0.9

func (mr *MockEngineMockRecorder) IsTableExist(beanOrTableName any) *gomock.Call

IsTableExist indicates an expected call of IsTableExist.

func (*MockEngineMockRecorder) Iterate added in v1.0.9

func (mr *MockEngineMockRecorder) Iterate(arg0, arg1 any) *gomock.Call

Iterate indicates an expected call of Iterate.

func (*MockEngineMockRecorder) Join added in v1.0.9

func (mr *MockEngineMockRecorder) Join(joinOperator, tablename, condition any, args ...any) *gomock.Call

Join indicates an expected call of Join.

func (*MockEngineMockRecorder) Limit added in v1.0.9

func (mr *MockEngineMockRecorder) Limit(arg0 any, arg1 ...any) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockEngineMockRecorder) MapCacher added in v1.0.9

func (mr *MockEngineMockRecorder) MapCacher(arg0, arg1 any) *gomock.Call

MapCacher indicates an expected call of MapCacher.

func (*MockEngineMockRecorder) MustCols added in v1.0.9

func (mr *MockEngineMockRecorder) MustCols(columns ...any) *gomock.Call

MustCols indicates an expected call of MustCols.

func (*MockEngineMockRecorder) NewSession added in v1.0.9

func (mr *MockEngineMockRecorder) NewSession() *gomock.Call

NewSession indicates an expected call of NewSession.

func (*MockEngineMockRecorder) NoAutoCondition added in v1.0.9

func (mr *MockEngineMockRecorder) NoAutoCondition(arg0 ...any) *gomock.Call

NoAutoCondition indicates an expected call of NoAutoCondition.

func (*MockEngineMockRecorder) NoAutoTime added in v1.0.9

func (mr *MockEngineMockRecorder) NoAutoTime() *gomock.Call

NoAutoTime indicates an expected call of NoAutoTime.

func (*MockEngineMockRecorder) NotIn added in v1.0.9

func (mr *MockEngineMockRecorder) NotIn(arg0 any, arg1 ...any) *gomock.Call

NotIn indicates an expected call of NotIn.

func (*MockEngineMockRecorder) Nullable added in v1.0.9

func (mr *MockEngineMockRecorder) Nullable(arg0 ...any) *gomock.Call

Nullable indicates an expected call of Nullable.

func (*MockEngineMockRecorder) Omit added in v1.0.9

func (mr *MockEngineMockRecorder) Omit(columns ...any) *gomock.Call

Omit indicates an expected call of Omit.

func (*MockEngineMockRecorder) OrderBy added in v1.0.9

func (mr *MockEngineMockRecorder) OrderBy(order any, args ...any) *gomock.Call

OrderBy indicates an expected call of OrderBy.

func (*MockEngineMockRecorder) Ping added in v1.0.9

func (mr *MockEngineMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockEngineMockRecorder) Prepare added in v1.0.9

func (mr *MockEngineMockRecorder) Prepare() *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockEngineMockRecorder) Query added in v1.0.9

func (mr *MockEngineMockRecorder) Query(sqlOrArgs ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockEngineMockRecorder) QueryInterface added in v1.0.9

func (mr *MockEngineMockRecorder) QueryInterface(sqlOrArgs ...any) *gomock.Call

QueryInterface indicates an expected call of QueryInterface.

func (*MockEngineMockRecorder) QueryString added in v1.0.9

func (mr *MockEngineMockRecorder) QueryString(sqlOrArgs ...any) *gomock.Call

QueryString indicates an expected call of QueryString.

func (*MockEngineMockRecorder) Quote added in v1.0.9

func (mr *MockEngineMockRecorder) Quote(arg0 any) *gomock.Call

Quote indicates an expected call of Quote.

func (*MockEngineMockRecorder) Rows added in v1.0.9

func (mr *MockEngineMockRecorder) Rows(bean any) *gomock.Call

Rows indicates an expected call of Rows.

func (*MockEngineMockRecorder) SQL added in v1.0.9

func (mr *MockEngineMockRecorder) SQL(arg0 any, arg1 ...any) *gomock.Call

SQL indicates an expected call of SQL.

func (*MockEngineMockRecorder) Select added in v1.0.9

func (mr *MockEngineMockRecorder) Select(arg0 any) *gomock.Call

Select indicates an expected call of Select.

func (*MockEngineMockRecorder) SetCacher added in v1.0.9

func (mr *MockEngineMockRecorder) SetCacher(arg0, arg1 any) *gomock.Call

SetCacher indicates an expected call of SetCacher.

func (*MockEngineMockRecorder) SetColumnMapper added in v1.0.9

func (mr *MockEngineMockRecorder) SetColumnMapper(arg0 any) *gomock.Call

SetColumnMapper indicates an expected call of SetColumnMapper.

func (*MockEngineMockRecorder) SetConnMaxLifetime added in v1.0.9

func (mr *MockEngineMockRecorder) SetConnMaxLifetime(arg0 any) *gomock.Call

SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.

func (*MockEngineMockRecorder) SetDefaultCacher added in v1.0.9

func (mr *MockEngineMockRecorder) SetDefaultCacher(arg0 any) *gomock.Call

SetDefaultCacher indicates an expected call of SetDefaultCacher.

func (*MockEngineMockRecorder) SetExpr added in v1.0.9

func (mr *MockEngineMockRecorder) SetExpr(arg0, arg1 any) *gomock.Call

SetExpr indicates an expected call of SetExpr.

func (*MockEngineMockRecorder) SetLogLevel added in v1.0.9

func (mr *MockEngineMockRecorder) SetLogLevel(arg0 any) *gomock.Call

SetLogLevel indicates an expected call of SetLogLevel.

func (*MockEngineMockRecorder) SetLogger added in v1.0.9

func (mr *MockEngineMockRecorder) SetLogger(logger any) *gomock.Call

SetLogger indicates an expected call of SetLogger.

func (*MockEngineMockRecorder) SetMapper added in v1.0.9

func (mr *MockEngineMockRecorder) SetMapper(arg0 any) *gomock.Call

SetMapper indicates an expected call of SetMapper.

func (*MockEngineMockRecorder) SetMaxIdleConns added in v1.0.9

func (mr *MockEngineMockRecorder) SetMaxIdleConns(arg0 any) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockEngineMockRecorder) SetMaxOpenConns added in v1.0.9

func (mr *MockEngineMockRecorder) SetMaxOpenConns(arg0 any) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

func (*MockEngineMockRecorder) SetPolicy added in v1.0.9

func (mr *MockEngineMockRecorder) SetPolicy(policy any) *gomock.Call

SetPolicy indicates an expected call of SetPolicy.

func (*MockEngineMockRecorder) SetQuotePolicy added in v1.0.9

func (mr *MockEngineMockRecorder) SetQuotePolicy(arg0 any) *gomock.Call

SetQuotePolicy indicates an expected call of SetQuotePolicy.

func (*MockEngineMockRecorder) SetSchema added in v1.0.9

func (mr *MockEngineMockRecorder) SetSchema(arg0 any) *gomock.Call

SetSchema indicates an expected call of SetSchema.

func (*MockEngineMockRecorder) SetTZDatabase added in v1.0.9

func (mr *MockEngineMockRecorder) SetTZDatabase(tz any) *gomock.Call

SetTZDatabase indicates an expected call of SetTZDatabase.

func (*MockEngineMockRecorder) SetTZLocation added in v1.0.9

func (mr *MockEngineMockRecorder) SetTZLocation(tz any) *gomock.Call

SetTZLocation indicates an expected call of SetTZLocation.

func (*MockEngineMockRecorder) SetTableMapper added in v1.0.9

func (mr *MockEngineMockRecorder) SetTableMapper(arg0 any) *gomock.Call

SetTableMapper indicates an expected call of SetTableMapper.

func (*MockEngineMockRecorder) SetTagIdentifier added in v1.0.9

func (mr *MockEngineMockRecorder) SetTagIdentifier(arg0 any) *gomock.Call

SetTagIdentifier indicates an expected call of SetTagIdentifier.

func (*MockEngineMockRecorder) ShowSQL added in v1.0.9

func (mr *MockEngineMockRecorder) ShowSQL(show ...any) *gomock.Call

ShowSQL indicates an expected call of ShowSQL.

func (*MockEngineMockRecorder) Sqlx added in v1.0.9

func (mr *MockEngineMockRecorder) Sqlx(arg0 any, args ...any) *gomock.Call

Sqlx indicates an expected call of Sqlx.

func (*MockEngineMockRecorder) StoreEngine added in v1.0.9

func (mr *MockEngineMockRecorder) StoreEngine(storeEngine any) *gomock.Call

StoreEngine indicates an expected call of StoreEngine.

func (*MockEngineMockRecorder) Sum added in v1.0.9

func (mr *MockEngineMockRecorder) Sum(bean, colName any) *gomock.Call

Sum indicates an expected call of Sum.

func (*MockEngineMockRecorder) SumInt added in v1.0.9

func (mr *MockEngineMockRecorder) SumInt(bean, colName any) *gomock.Call

SumInt indicates an expected call of SumInt.

func (*MockEngineMockRecorder) Sums added in v1.0.9

func (mr *MockEngineMockRecorder) Sums(bean any, colNames ...any) *gomock.Call

Sums indicates an expected call of Sums.

func (*MockEngineMockRecorder) SumsInt added in v1.0.9

func (mr *MockEngineMockRecorder) SumsInt(bean any, colNames ...any) *gomock.Call

SumsInt indicates an expected call of SumsInt.

func (*MockEngineMockRecorder) Sync added in v1.0.9

func (mr *MockEngineMockRecorder) Sync(arg0 ...any) *gomock.Call

Sync indicates an expected call of Sync.

func (*MockEngineMockRecorder) Sync2 added in v1.0.9

func (mr *MockEngineMockRecorder) Sync2(arg0 ...any) *gomock.Call

Sync2 indicates an expected call of Sync2.

func (*MockEngineMockRecorder) SyncWithOptions added in v1.0.9

func (mr *MockEngineMockRecorder) SyncWithOptions(arg0 any, arg1 ...any) *gomock.Call

SyncWithOptions indicates an expected call of SyncWithOptions.

func (*MockEngineMockRecorder) Table added in v1.0.9

func (mr *MockEngineMockRecorder) Table(tableNameOrBean any) *gomock.Call

Table indicates an expected call of Table.

func (*MockEngineMockRecorder) TableInfo added in v1.0.9

func (mr *MockEngineMockRecorder) TableInfo(bean any) *gomock.Call

TableInfo indicates an expected call of TableInfo.

func (*MockEngineMockRecorder) TableName added in v1.0.9

func (mr *MockEngineMockRecorder) TableName(arg0 any, arg1 ...any) *gomock.Call

TableName indicates an expected call of TableName.

func (*MockEngineMockRecorder) Transaction added in v1.0.9

func (mr *MockEngineMockRecorder) Transaction(fn any) *gomock.Call

Transaction indicates an expected call of Transaction.

func (*MockEngineMockRecorder) Truncate added in v1.0.9

func (mr *MockEngineMockRecorder) Truncate(arg0 ...any) *gomock.Call

Truncate indicates an expected call of Truncate.

func (*MockEngineMockRecorder) UnMapType added in v1.0.9

func (mr *MockEngineMockRecorder) UnMapType(arg0 any) *gomock.Call

UnMapType indicates an expected call of UnMapType.

func (*MockEngineMockRecorder) Unscoped added in v1.0.9

func (mr *MockEngineMockRecorder) Unscoped() *gomock.Call

Unscoped indicates an expected call of Unscoped.

func (*MockEngineMockRecorder) Update added in v1.0.9

func (mr *MockEngineMockRecorder) Update(bean any, condiBeans ...any) *gomock.Call

Update indicates an expected call of Update.

func (*MockEngineMockRecorder) UseBool added in v1.0.9

func (mr *MockEngineMockRecorder) UseBool(arg0 ...any) *gomock.Call

UseBool indicates an expected call of UseBool.

func (*MockEngineMockRecorder) Where added in v1.0.9

func (mr *MockEngineMockRecorder) Where(arg0 any, arg1 ...any) *gomock.Call

Where indicates an expected call of Where.

type MockSession added in v1.0.9

type MockSession struct {
	// contains filtered or unexported fields
}

MockSession is a mock of Session interface.

func NewMockSession added in v1.0.9

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) Alias added in v1.0.9

func (m *MockSession) Alias(alias string) *xorm.Session

Alias mocks base method.

func (*MockSession) AllCols added in v1.0.9

func (m *MockSession) AllCols() *xorm.Session

AllCols mocks base method.

func (*MockSession) Asc added in v1.0.9

func (m *MockSession) Asc(colNames ...string) *xorm.Session

Asc mocks base method.

func (*MockSession) Begin added in v1.0.9

func (m *MockSession) Begin() error

Begin mocks base method.

func (*MockSession) BufferSize added in v1.0.9

func (m *MockSession) BufferSize(size int) *xorm.Session

BufferSize mocks base method.

func (*MockSession) Close added in v1.0.9

func (m *MockSession) Close() error

Close mocks base method.

func (*MockSession) Cols added in v1.0.9

func (m *MockSession) Cols(columns ...string) *xorm.Session

Cols mocks base method.

func (*MockSession) Commit added in v1.0.9

func (m *MockSession) Commit() error

Commit mocks base method.

func (*MockSession) Count added in v1.0.9

func (m *MockSession) Count(arg0 ...any) (int64, error)

Count mocks base method.

func (*MockSession) CreateIndexes added in v1.0.9

func (m *MockSession) CreateIndexes(bean any) error

CreateIndexes mocks base method.

func (*MockSession) CreateUniques added in v1.0.9

func (m *MockSession) CreateUniques(bean any) error

CreateUniques mocks base method.

func (*MockSession) Decr added in v1.0.9

func (m *MockSession) Decr(column string, arg ...any) *xorm.Session

Decr mocks base method.

func (*MockSession) Delete added in v1.0.9

func (m *MockSession) Delete(arg0 ...any) (int64, error)

Delete mocks base method.

func (*MockSession) Desc added in v1.0.9

func (m *MockSession) Desc(arg0 ...string) *xorm.Session

Desc mocks base method.

func (*MockSession) Distinct added in v1.0.9

func (m *MockSession) Distinct(columns ...string) *xorm.Session

Distinct mocks base method.

func (*MockSession) DropIndexes added in v1.0.9

func (m *MockSession) DropIndexes(bean any) error

DropIndexes mocks base method.

func (*MockSession) EXPECT added in v1.0.9

func (m *MockSession) EXPECT() *MockSessionMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSession) Exec added in v1.0.9

func (m *MockSession) Exec(sqlOrArgs ...any) (sql.Result, error)

Exec mocks base method.

func (*MockSession) Exist added in v1.0.9

func (m *MockSession) Exist(bean ...any) (bool, error)

Exist mocks base method.

func (*MockSession) Find added in v1.0.9

func (m *MockSession) Find(arg0 any, arg1 ...any) error

Find mocks base method.

func (*MockSession) FindAndCount added in v1.0.9

func (m *MockSession) FindAndCount(arg0 any, arg1 ...any) (int64, error)

FindAndCount mocks base method.

func (*MockSession) Get added in v1.0.9

func (m *MockSession) Get(arg0 ...any) (bool, error)

Get mocks base method.

func (*MockSession) GroupBy added in v1.0.9

func (m *MockSession) GroupBy(keys string) *xorm.Session

GroupBy mocks base method.

func (*MockSession) ID added in v1.0.9

func (m *MockSession) ID(arg0 any) *xorm.Session

ID mocks base method.

func (*MockSession) In added in v1.0.9

func (m *MockSession) In(arg0 string, arg1 ...any) *xorm.Session

In mocks base method.

func (*MockSession) Incr added in v1.0.9

func (m *MockSession) Incr(column string, arg ...any) *xorm.Session

Incr mocks base method.

func (*MockSession) Insert added in v1.0.9

func (m *MockSession) Insert(arg0 ...any) (int64, error)

Insert mocks base method.

func (*MockSession) InsertOne added in v1.0.9

func (m *MockSession) InsertOne(arg0 any) (int64, error)

InsertOne mocks base method.

func (*MockSession) IsTableEmpty added in v1.0.9

func (m *MockSession) IsTableEmpty(bean any) (bool, error)

IsTableEmpty mocks base method.

func (*MockSession) IsTableExist added in v1.0.9

func (m *MockSession) IsTableExist(beanOrTableName any) (bool, error)

IsTableExist mocks base method.

func (*MockSession) Iterate added in v1.0.9

func (m *MockSession) Iterate(arg0 any, arg1 xorm.IterFunc) error

Iterate mocks base method.

func (*MockSession) Join added in v1.0.9

func (m *MockSession) Join(joinOperator string, tablename, condition any, args ...any) *xorm.Session

Join mocks base method.

func (*MockSession) Limit added in v1.0.9

func (m *MockSession) Limit(arg0 int, arg1 ...int) *xorm.Session

Limit mocks base method.

func (*MockSession) MustCols added in v1.0.9

func (m *MockSession) MustCols(columns ...string) *xorm.Session

MustCols mocks base method.

func (*MockSession) NoAutoCondition added in v1.0.9

func (m *MockSession) NoAutoCondition(arg0 ...bool) *xorm.Session

NoAutoCondition mocks base method.

func (*MockSession) NotIn added in v1.0.9

func (m *MockSession) NotIn(arg0 string, arg1 ...any) *xorm.Session

NotIn mocks base method.

func (*MockSession) Nullable added in v1.0.9

func (m *MockSession) Nullable(arg0 ...string) *xorm.Session

Nullable mocks base method.

func (*MockSession) Omit added in v1.0.9

func (m *MockSession) Omit(columns ...string) *xorm.Session

Omit mocks base method.

func (*MockSession) OrderBy added in v1.0.9

func (m *MockSession) OrderBy(order any, args ...any) *xorm.Session

OrderBy mocks base method.

func (*MockSession) Ping added in v1.0.9

func (m *MockSession) Ping() error

Ping mocks base method.

func (*MockSession) Query added in v1.0.9

func (m *MockSession) Query(sqlOrArgs ...any) ([]map[string][]byte, error)

Query mocks base method.

func (*MockSession) QueryInterface added in v1.0.9

func (m *MockSession) QueryInterface(sqlOrArgs ...any) ([]map[string]any, error)

QueryInterface mocks base method.

func (*MockSession) QueryString added in v1.0.9

func (m *MockSession) QueryString(sqlOrArgs ...any) ([]map[string]string, error)

QueryString mocks base method.

func (*MockSession) Rollback added in v1.0.9

func (m *MockSession) Rollback() error

Rollback mocks base method.

func (*MockSession) Rows added in v1.0.9

func (m *MockSession) Rows(bean any) (*xorm.Rows, error)

Rows mocks base method.

func (*MockSession) SQL added in v1.0.9

func (m *MockSession) SQL(arg0 any, arg1 ...any) *xorm.Session

SQL mocks base method.

func (*MockSession) Select added in v1.0.9

func (m *MockSession) Select(arg0 string) *xorm.Session

Select mocks base method.

func (*MockSession) SetExpr added in v1.0.9

func (m *MockSession) SetExpr(arg0 string, arg1 any) *xorm.Session

SetExpr mocks base method.

func (*MockSession) Sum added in v1.0.9

func (m *MockSession) Sum(bean any, colName string) (float64, error)

Sum mocks base method.

func (*MockSession) SumInt added in v1.0.9

func (m *MockSession) SumInt(bean any, colName string) (int64, error)

SumInt mocks base method.

func (*MockSession) Sums added in v1.0.9

func (m *MockSession) Sums(bean any, colNames ...string) ([]float64, error)

Sums mocks base method.

func (*MockSession) SumsInt added in v1.0.9

func (m *MockSession) SumsInt(bean any, colNames ...string) ([]int64, error)

SumsInt mocks base method.

func (*MockSession) Table added in v1.0.9

func (m *MockSession) Table(tableNameOrBean any) *xorm.Session

Table mocks base method.

func (*MockSession) Truncate added in v1.0.9

func (m *MockSession) Truncate(arg0 ...any) (int64, error)

Truncate mocks base method.

func (*MockSession) Unscoped added in v1.0.9

func (m *MockSession) Unscoped() *xorm.Session

Unscoped mocks base method.

func (*MockSession) Update added in v1.0.9

func (m *MockSession) Update(bean any, condiBeans ...any) (int64, error)

Update mocks base method.

func (*MockSession) UseBool added in v1.0.9

func (m *MockSession) UseBool(arg0 ...string) *xorm.Session

UseBool mocks base method.

func (*MockSession) Where added in v1.0.9

func (m *MockSession) Where(arg0 any, arg1 ...any) *xorm.Session

Where mocks base method.

type MockSessionMockRecorder added in v1.0.9

type MockSessionMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) Alias added in v1.0.9

func (mr *MockSessionMockRecorder) Alias(alias any) *gomock.Call

Alias indicates an expected call of Alias.

func (*MockSessionMockRecorder) AllCols added in v1.0.9

func (mr *MockSessionMockRecorder) AllCols() *gomock.Call

AllCols indicates an expected call of AllCols.

func (*MockSessionMockRecorder) Asc added in v1.0.9

func (mr *MockSessionMockRecorder) Asc(colNames ...any) *gomock.Call

Asc indicates an expected call of Asc.

func (*MockSessionMockRecorder) Begin added in v1.0.9

func (mr *MockSessionMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockSessionMockRecorder) BufferSize added in v1.0.9

func (mr *MockSessionMockRecorder) BufferSize(size any) *gomock.Call

BufferSize indicates an expected call of BufferSize.

func (*MockSessionMockRecorder) Close added in v1.0.9

func (mr *MockSessionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockSessionMockRecorder) Cols added in v1.0.9

func (mr *MockSessionMockRecorder) Cols(columns ...any) *gomock.Call

Cols indicates an expected call of Cols.

func (*MockSessionMockRecorder) Commit added in v1.0.9

func (mr *MockSessionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockSessionMockRecorder) Count added in v1.0.9

func (mr *MockSessionMockRecorder) Count(arg0 ...any) *gomock.Call

Count indicates an expected call of Count.

func (*MockSessionMockRecorder) CreateIndexes added in v1.0.9

func (mr *MockSessionMockRecorder) CreateIndexes(bean any) *gomock.Call

CreateIndexes indicates an expected call of CreateIndexes.

func (*MockSessionMockRecorder) CreateUniques added in v1.0.9

func (mr *MockSessionMockRecorder) CreateUniques(bean any) *gomock.Call

CreateUniques indicates an expected call of CreateUniques.

func (*MockSessionMockRecorder) Decr added in v1.0.9

func (mr *MockSessionMockRecorder) Decr(column any, arg ...any) *gomock.Call

Decr indicates an expected call of Decr.

func (*MockSessionMockRecorder) Delete added in v1.0.9

func (mr *MockSessionMockRecorder) Delete(arg0 ...any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSessionMockRecorder) Desc added in v1.0.9

func (mr *MockSessionMockRecorder) Desc(arg0 ...any) *gomock.Call

Desc indicates an expected call of Desc.

func (*MockSessionMockRecorder) Distinct added in v1.0.9

func (mr *MockSessionMockRecorder) Distinct(columns ...any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockSessionMockRecorder) DropIndexes added in v1.0.9

func (mr *MockSessionMockRecorder) DropIndexes(bean any) *gomock.Call

DropIndexes indicates an expected call of DropIndexes.

func (*MockSessionMockRecorder) Exec added in v1.0.9

func (mr *MockSessionMockRecorder) Exec(sqlOrArgs ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockSessionMockRecorder) Exist added in v1.0.9

func (mr *MockSessionMockRecorder) Exist(bean ...any) *gomock.Call

Exist indicates an expected call of Exist.

func (*MockSessionMockRecorder) Find added in v1.0.9

func (mr *MockSessionMockRecorder) Find(arg0 any, arg1 ...any) *gomock.Call

Find indicates an expected call of Find.

func (*MockSessionMockRecorder) FindAndCount added in v1.0.9

func (mr *MockSessionMockRecorder) FindAndCount(arg0 any, arg1 ...any) *gomock.Call

FindAndCount indicates an expected call of FindAndCount.

func (*MockSessionMockRecorder) Get added in v1.0.9

func (mr *MockSessionMockRecorder) Get(arg0 ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockSessionMockRecorder) GroupBy added in v1.0.9

func (mr *MockSessionMockRecorder) GroupBy(keys any) *gomock.Call

GroupBy indicates an expected call of GroupBy.

func (*MockSessionMockRecorder) ID added in v1.0.9

func (mr *MockSessionMockRecorder) ID(arg0 any) *gomock.Call

ID indicates an expected call of ID.

func (*MockSessionMockRecorder) In added in v1.0.9

func (mr *MockSessionMockRecorder) In(arg0 any, arg1 ...any) *gomock.Call

In indicates an expected call of In.

func (*MockSessionMockRecorder) Incr added in v1.0.9

func (mr *MockSessionMockRecorder) Incr(column any, arg ...any) *gomock.Call

Incr indicates an expected call of Incr.

func (*MockSessionMockRecorder) Insert added in v1.0.9

func (mr *MockSessionMockRecorder) Insert(arg0 ...any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockSessionMockRecorder) InsertOne added in v1.0.9

func (mr *MockSessionMockRecorder) InsertOne(arg0 any) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockSessionMockRecorder) IsTableEmpty added in v1.0.9

func (mr *MockSessionMockRecorder) IsTableEmpty(bean any) *gomock.Call

IsTableEmpty indicates an expected call of IsTableEmpty.

func (*MockSessionMockRecorder) IsTableExist added in v1.0.9

func (mr *MockSessionMockRecorder) IsTableExist(beanOrTableName any) *gomock.Call

IsTableExist indicates an expected call of IsTableExist.

func (*MockSessionMockRecorder) Iterate added in v1.0.9

func (mr *MockSessionMockRecorder) Iterate(arg0, arg1 any) *gomock.Call

Iterate indicates an expected call of Iterate.

func (*MockSessionMockRecorder) Join added in v1.0.9

func (mr *MockSessionMockRecorder) Join(joinOperator, tablename, condition any, args ...any) *gomock.Call

Join indicates an expected call of Join.

func (*MockSessionMockRecorder) Limit added in v1.0.9

func (mr *MockSessionMockRecorder) Limit(arg0 any, arg1 ...any) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockSessionMockRecorder) MustCols added in v1.0.9

func (mr *MockSessionMockRecorder) MustCols(columns ...any) *gomock.Call

MustCols indicates an expected call of MustCols.

func (*MockSessionMockRecorder) NoAutoCondition added in v1.0.9

func (mr *MockSessionMockRecorder) NoAutoCondition(arg0 ...any) *gomock.Call

NoAutoCondition indicates an expected call of NoAutoCondition.

func (*MockSessionMockRecorder) NotIn added in v1.0.9

func (mr *MockSessionMockRecorder) NotIn(arg0 any, arg1 ...any) *gomock.Call

NotIn indicates an expected call of NotIn.

func (*MockSessionMockRecorder) Nullable added in v1.0.9

func (mr *MockSessionMockRecorder) Nullable(arg0 ...any) *gomock.Call

Nullable indicates an expected call of Nullable.

func (*MockSessionMockRecorder) Omit added in v1.0.9

func (mr *MockSessionMockRecorder) Omit(columns ...any) *gomock.Call

Omit indicates an expected call of Omit.

func (*MockSessionMockRecorder) OrderBy added in v1.0.9

func (mr *MockSessionMockRecorder) OrderBy(order any, args ...any) *gomock.Call

OrderBy indicates an expected call of OrderBy.

func (*MockSessionMockRecorder) Ping added in v1.0.9

func (mr *MockSessionMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockSessionMockRecorder) Query added in v1.0.9

func (mr *MockSessionMockRecorder) Query(sqlOrArgs ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockSessionMockRecorder) QueryInterface added in v1.0.9

func (mr *MockSessionMockRecorder) QueryInterface(sqlOrArgs ...any) *gomock.Call

QueryInterface indicates an expected call of QueryInterface.

func (*MockSessionMockRecorder) QueryString added in v1.0.9

func (mr *MockSessionMockRecorder) QueryString(sqlOrArgs ...any) *gomock.Call

QueryString indicates an expected call of QueryString.

func (*MockSessionMockRecorder) Rollback added in v1.0.9

func (mr *MockSessionMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockSessionMockRecorder) Rows added in v1.0.9

func (mr *MockSessionMockRecorder) Rows(bean any) *gomock.Call

Rows indicates an expected call of Rows.

func (*MockSessionMockRecorder) SQL added in v1.0.9

func (mr *MockSessionMockRecorder) SQL(arg0 any, arg1 ...any) *gomock.Call

SQL indicates an expected call of SQL.

func (*MockSessionMockRecorder) Select added in v1.0.9

func (mr *MockSessionMockRecorder) Select(arg0 any) *gomock.Call

Select indicates an expected call of Select.

func (*MockSessionMockRecorder) SetExpr added in v1.0.9

func (mr *MockSessionMockRecorder) SetExpr(arg0, arg1 any) *gomock.Call

SetExpr indicates an expected call of SetExpr.

func (*MockSessionMockRecorder) Sum added in v1.0.9

func (mr *MockSessionMockRecorder) Sum(bean, colName any) *gomock.Call

Sum indicates an expected call of Sum.

func (*MockSessionMockRecorder) SumInt added in v1.0.9

func (mr *MockSessionMockRecorder) SumInt(bean, colName any) *gomock.Call

SumInt indicates an expected call of SumInt.

func (*MockSessionMockRecorder) Sums added in v1.0.9

func (mr *MockSessionMockRecorder) Sums(bean any, colNames ...any) *gomock.Call

Sums indicates an expected call of Sums.

func (*MockSessionMockRecorder) SumsInt added in v1.0.9

func (mr *MockSessionMockRecorder) SumsInt(bean any, colNames ...any) *gomock.Call

SumsInt indicates an expected call of SumsInt.

func (*MockSessionMockRecorder) Table added in v1.0.9

func (mr *MockSessionMockRecorder) Table(tableNameOrBean any) *gomock.Call

Table indicates an expected call of Table.

func (*MockSessionMockRecorder) Truncate added in v1.0.9

func (mr *MockSessionMockRecorder) Truncate(arg0 ...any) *gomock.Call

Truncate indicates an expected call of Truncate.

func (*MockSessionMockRecorder) Unscoped added in v1.0.9

func (mr *MockSessionMockRecorder) Unscoped() *gomock.Call

Unscoped indicates an expected call of Unscoped.

func (*MockSessionMockRecorder) Update added in v1.0.9

func (mr *MockSessionMockRecorder) Update(bean any, condiBeans ...any) *gomock.Call

Update indicates an expected call of Update.

func (*MockSessionMockRecorder) UseBool added in v1.0.9

func (mr *MockSessionMockRecorder) UseBool(arg0 ...any) *gomock.Call

UseBool indicates an expected call of UseBool.

func (*MockSessionMockRecorder) Where added in v1.0.9

func (mr *MockSessionMockRecorder) Where(arg0 any, arg1 ...any) *gomock.Call

Where indicates an expected call of Where.

type NameMap

type NameMap map[string]any

type Session added in v1.0.9

type Session interface {
	xorm.Interface
	driver.Tx
	io.Closer
	Begin() error
}

type XInterface

type XInterface = Session

type XormEngine

type XormEngine = Engine

XormEngine @Deprecated use Engine

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL