Documentation ¶
Index ¶
- func Create(table *builder.Table, data QueryArg) (builder.TDBTableRow, error)
- func Delete(table *builder.Table, row builder.TDBTableRow)
- func Find(table *builder.Table, where QueryArg, allow_empty_where bool) ([]builder.TDBTableRow, error)
- func FindUnique(table *builder.Table, where QueryArg) (builder.TDBTableRow, error)
- func FindWithArgs(table *builder.Table, args FindArgs, allow_empty_where bool) ([]builder.TDBTableRow, error)
- func Update(table *builder.Table, row builder.TDBTableRow, data QueryArg) (builder.TDBTableRow, error)
- type FindArgs
- type OrderBy
- type QueryArg
- type QueryError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUnique ¶
Note: returns a nil value when no row is found(does not throw errow). Always make sure to account for this case
func FindWithArgs ¶
func Update ¶
func Update(table *builder.Table, row builder.TDBTableRow, data QueryArg) (builder.TDBTableRow, error)
Types ¶
type QueryError ¶
type QueryError struct {
// contains filtered or unexported fields
}
func NewQueryError ¶
func NewQueryError(status int, msg string) *QueryError
func (QueryError) Error ¶
func (e QueryError) Error() string
func (QueryError) Status ¶
func (e QueryError) Status() int
Click to show internal directories.
Click to hide internal directories.