Documentation ¶
Index ¶
- type GormConnection
- func (s *GormConnection) Conn() *gorm.DB
- func (s *GormConnection) Create(value interface{}) *gorm.DB
- func (s *GormConnection) Exec(sql string, values ...interface{}) *gorm.DB
- func (s *GormConnection) Instance(conn string) *gorm.DB
- func (s *GormConnection) Save(value interface{}) *gorm.DB
- func (s *GormConnection) SetRead(host string, port string, user string, password string, database string)
- func (s *GormConnection) SetWrite(host string, port string, user string, password string, database string)
- func (s *GormConnection) Where(query interface{}, args ...interface{}) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormConnection ¶
func Init ¶
func Init(driver string) *GormConnection
func (*GormConnection) Conn ¶
func (s *GormConnection) Conn() *gorm.DB
func (*GormConnection) Create ¶
func (s *GormConnection) Create(value interface{}) *gorm.DB
func (*GormConnection) Exec ¶
func (s *GormConnection) Exec(sql string, values ...interface{}) *gorm.DB
func (*GormConnection) Save ¶
func (s *GormConnection) Save(value interface{}) *gorm.DB
func (*GormConnection) Where ¶
func (s *GormConnection) Where(query interface{}, args ...interface{}) *gorm.DB
Click to show internal directories.
Click to hide internal directories.