Documentation
¶
Index ¶
- type Batis
- func (b *Batis) Choose(dialect Dialect) *Batis
- func (b *Batis) DBConfig(dbConfig *DBConfig) *Batis
- func (b *Batis) Init() *Batis
- func (b *Batis) LogFatal(message string, args ...interface{})
- func (b *Batis) LogInfo(message string, args ...interface{})
- func (b *Batis) LogWarn(message string, args ...interface{})
- func (b *Batis) Mapper(binding string) *mapper
- func (b *Batis) MapperPaths(mapperPaths ...string) *Batis
- func (b *Batis) RegisterDS(name, dsn string) *Batis
- func (b *Batis) RegisterDSWithConfig(name, dsn string, dbConfig *DBConfig) *Batis
- func (b *Batis) ShowSql(showSql bool) *Batis
- func (b *Batis) TxMapper(binding string) *txMapper
- type DB
- type DBConfig
- type Dialect
- type NamedParam
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batis ¶
type Batis struct {
// contains filtered or unexported fields
}
Define batis struct
func (*Batis) MapperPaths ¶
Set mapper path
func (*Batis) RegisterDSWithConfig ¶
Register datasource with config
type Dialect ¶
type Dialect string
const ( MySQL Dialect = "mysql" //see https://github.com/go-sql-driver/mysql SQLite Dialect = "sqlite3" //see https://github.com/mattn/go-sqlite3 SQLite3 Dialect = "sqlite3" //see https://github.com/mattn/go-sqlite3 MSSQL Dialect = "sqlserver" //see https://github.com/denisenkom/go-mssqldb )
type NamedParam ¶
type NamedParam struct {
// contains filtered or unexported fields
}
Define namedParam struct
Click to show internal directories.
Click to hide internal directories.