Documentation ¶
Index ¶
- type ArPostgres
- func (ar *ArPostgres) All(models interface{}, opts map[string]interface{}) (err error)
- func (ar *ArPostgres) Client() gorm.DB
- func (ar *ArPostgres) DbDelete() (err error)
- func (ar *ArPostgres) DbSave() error
- func (ar *ArPostgres) DbSearch(models interface{}) (err error)
- func (ar *ArPostgres) Find(id interface{}, out interface{}) error
- func (ar *ArPostgres) SetKey(key string)
- func (ar *ArPostgres) SpExecResultSet(spName string, params map[string]interface{}, models interface{}) (err error)
- func (ar *ArPostgres) Truncate() (numRowsDeleted int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArPostgres ¶
type ArPostgres struct { ActiveRecord ID int `gorm:"primary_key" json:"id,omitempty"` //ID string `sql:"type:varchar(36)" gorm:"primary_key" json:"id,omitempty"` Timestamps }
func (*ArPostgres) All ¶
func (ar *ArPostgres) All(models interface{}, opts map[string]interface{}) (err error)
func (*ArPostgres) Client ¶
func (ar *ArPostgres) Client() gorm.DB
func (*ArPostgres) DbDelete ¶
func (ar *ArPostgres) DbDelete() (err error)
func (*ArPostgres) DbSave ¶
func (ar *ArPostgres) DbSave() error
func (*ArPostgres) DbSearch ¶
func (ar *ArPostgres) DbSearch(models interface{}) (err error)
func (*ArPostgres) Find ¶
func (ar *ArPostgres) Find(id interface{}, out interface{}) error
func (*ArPostgres) SetKey ¶
func (ar *ArPostgres) SetKey(key string)
func (*ArPostgres) SpExecResultSet ¶
func (ar *ArPostgres) SpExecResultSet(spName string, params map[string]interface{}, models interface{}) (err error)
func (*ArPostgres) Truncate ¶
func (ar *ArPostgres) Truncate() (numRowsDeleted int, err error)
Click to show internal directories.
Click to hide internal directories.