Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionFactory ¶
type ConnectionFactory struct {
// contains filtered or unexported fields
}
func (*ConnectionFactory) AsyncInsert ¶
func (c *ConnectionFactory) AsyncInsert(table string, data interface{}) error
func (*ConnectionFactory) Conn ¶
func (c *ConnectionFactory) Conn() driver.Conn
func (*ConnectionFactory) DB ¶
func (c *ConnectionFactory) DB() *gorm.DB
func (*ConnectionFactory) DataBase ¶
func (c *ConnectionFactory) DataBase() string
type Option ¶
type Option struct {
Hosts []string
Username string
Password string
DataBase string
MaxIdleConn int
MaxOpenConn int
BlockBufferSize int
MaxCompressionBuffer int
IsDebug bool
LogMode string
}
func (*Option) Connect ¶
func (m *Option) Connect() *ConnectionFactory
func (*Option) WithBlockBufferSize ¶
func (*Option) WithIsDebug ¶
func (*Option) WithMaxCompressionBuffer ¶
func (*Option) WithMaxIdleConn ¶
func (*Option) WithMaxOpenConn ¶
Click to show internal directories.
Click to hide internal directories.