Documentation ¶
Index ¶
- func CheckBCHTable(engine *xorm.Engine) error
- func CheckBSVTable(engine *xorm.Engine) error
- func CheckBTCTable(engine *xorm.Engine) error
- func CheckDOGETable(engine *xorm.Engine) error
- func CheckEOSTable(engine *xorm.Engine) error
- func CheckETCTable(engine *xorm.Engine) error
- func CheckETHTable(engine *xorm.Engine) error
- func CheckLTCTable(engine *xorm.Engine) error
- func CheckTRONTable(engine *xorm.Engine) error
- func CheckXLMTable(engine *xorm.Engine) error
- func CheckXRPTable(engine *xorm.Engine) error
- func GetTable(tableName string) interface{}
- func GetTableInfo(engine *xorm.Engine, tableName string) *xorm.Table
- func InitDB(cfg *DatabaseConfig) error
- func NewEngine(cfg *DatabaseConfig) (*xorm.Engine, error)
- type BatchRange
- type Database
- type DatabaseConfig
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBCHTable ¶
func CheckBSVTable ¶
func CheckBTCTable ¶
func CheckDOGETable ¶
func CheckEOSTable ¶
func CheckETCTable ¶
func CheckETHTable ¶
func CheckLTCTable ¶
func CheckTRONTable ¶
func CheckXLMTable ¶
func CheckXRPTable ¶
func InitDB ¶
func InitDB(cfg *DatabaseConfig) error
Types ¶
type BatchRange ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Type string Host string Port string Database string User string Password string MaxOpenConns int MaxIdleConns int SQLLogFile string Debug bool }
func (*DatabaseConfig) Valid ¶
func (c *DatabaseConfig) Valid() bool
type Transaction ¶
func NewTransaction ¶
func NewTransaction(e ...*xorm.Engine) *Transaction
func (*Transaction) BatchInsert ¶
func (t *Transaction) BatchInsert(data interface{}) (int64, error)
Click to show internal directories.
Click to hide internal directories.