Documentation ¶
Index ¶
- type AbstractRecord
- func (e *AbstractRecord) All() error
- func (e *AbstractRecord) Count(values ...interface{}) (int, error)
- func (e *AbstractRecord) Delete() error
- func (e *AbstractRecord) Find(values ...interface{}) error
- func (e *AbstractRecord) Inner() *AbstractRecord
- func (e *AbstractRecord) Max(value interface{}) (int, error)
- func (e *AbstractRecord) New(values ...interface{}) error
- func (e *AbstractRecord) NewWithDefaults(values ...interface{}) error
- func (e *AbstractRecord) Paginate(pk string, offset, pageSize int) *AbstractRecord
- func (e *AbstractRecord) SQL(sqlQuery string, values ...interface{}) ([]map[string]interface{}, error)
- func (e *AbstractRecord) Save() error
- func (e *AbstractRecord) Update(values ...interface{}) error
- func (e *AbstractRecord) Where(values ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractRecord ¶
type AbstractRecord struct {
// contains filtered or unexported fields
}
func NewAbstractRecord ¶
func NewAbstractRecord(object interface{}, objectArray interface{}, db *sql.DB, extraOptions ...interface{}) *AbstractRecord
func (*AbstractRecord) All ¶
func (e *AbstractRecord) All() error
func (*AbstractRecord) Count ¶
func (e *AbstractRecord) Count(values ...interface{}) (int, error)
func (*AbstractRecord) Delete ¶
func (e *AbstractRecord) Delete() error
func (*AbstractRecord) Find ¶
func (e *AbstractRecord) Find(values ...interface{}) error
func (*AbstractRecord) Inner ¶
func (e *AbstractRecord) Inner() *AbstractRecord
func (*AbstractRecord) Max ¶
func (e *AbstractRecord) Max(value interface{}) (int, error)
func (*AbstractRecord) New ¶
func (e *AbstractRecord) New(values ...interface{}) error
func (*AbstractRecord) NewWithDefaults ¶
func (e *AbstractRecord) NewWithDefaults(values ...interface{}) error
func (*AbstractRecord) Paginate ¶
func (e *AbstractRecord) Paginate(pk string, offset, pageSize int) *AbstractRecord
func (*AbstractRecord) SQL ¶
func (e *AbstractRecord) SQL(sqlQuery string, values ...interface{}) ([]map[string]interface{}, error)
func (*AbstractRecord) Save ¶
func (e *AbstractRecord) Save() error
func (*AbstractRecord) Update ¶
func (e *AbstractRecord) Update(values ...interface{}) error
func (*AbstractRecord) Where ¶
func (e *AbstractRecord) Where(values ...interface{}) error
Click to show internal directories.
Click to hide internal directories.