Documentation ¶
Index ¶
- type ConnectionConfig
- type Connector
- func (c *Connector) AppendChild(p interface{}, typeName string, child interface{}, tx *gorm.DB) error
- func (c *Connector) ClearChild(p interface{}, typeName string, tx *gorm.DB) error
- func (c *Connector) CountChild(p interface{}, typeName string, tx *gorm.DB) int64
- func (c *Connector) FetchAll(dest interface{}, condition interface{}, tx *gorm.DB, with ...string) error
- func (c *Connector) FetchOne(dest interface{}, tx *gorm.DB, with ...string) error
- func (c *Connector) FetchOneWithID(dest interface{}, id int, tx *gorm.DB, with ...string) error
- func (c *Connector) IsExist(p interface{}, tx *gorm.DB) (bool, error)
- func (c *Connector) NewTransaction() *gorm.DB
- func (c *Connector) Remove(p interface{}, tx *gorm.DB) error
- func (c *Connector) ReplaceChild(p interface{}, typeName string, child interface{}, tx *gorm.DB) error
- func (c *Connector) Save(p interface{}, tx *gorm.DB) error
- func (c *Connector) Update(p interface{}, update interface{}, tx *gorm.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type Connector ¶
func NewConnectorWithDB ¶
func (*Connector) AppendChild ¶
func (*Connector) ClearChild ¶
func (*Connector) CountChild ¶
func (*Connector) FetchOneWithID ¶
func (*Connector) NewTransaction ¶
func (*Connector) ReplaceChild ¶
Click to show internal directories.
Click to hide internal directories.