Documentation
¶
Index ¶
- Constants
- func GetTable(m interface{}) string
- func PostgrestRequest(ctx raiden.Context, method string, url string, payload []byte, ...) ([]byte, *fasthttp.Response, error)
- func SliceToStringSlice(slice interface{}) []string
- type CountOptions
- type ModelBase
- type Query
- func (q *Query) Count(opts ...CountOptions) (int, error)
- func (q *Query) Delete() ([]byte, error)
- func (q *Query) Eq(column string, value any) *Query
- func (q *Query) Error() error
- func (q Query) Get() ([]byte, error)
- func (q Query) GetUrl() string
- func (q *Query) Gt(column string, value int) *Query
- func (q *Query) Gte(column string, value any) *Query
- func (q *Query) Ilike(column string, value string) *Query
- func (q *Query) In(column string, value any) *Query
- func (q *Query) Insert(payload interface{}) ([]byte, error)
- func (q *Query) Like(column string, value string) *Query
- func (q *Query) Limit(value int) *Query
- func (q *Query) Lt(column string, value any) *Query
- func (q *Query) Lte(column string, value any) *Query
- func (q *Query) Model(m interface{}, relations []interface{}) *Query
- func (q *Query) Neq(column string, value any) *Query
- func (q *Query) Offset(value int) *Query
- func (q *Query) Or(column string, value any) *Query
- func (q *Query) OrderAsc(column string) *Query
- func (q *Query) OrderDesc(column string) *Query
- func (q Query) Select(c ...string) (model *Query)
- func (q Query) Single() ([]byte, error)
- func (q *Query) Update(p interface{}) ([]byte, error)
- func (q *Query) Upsert(payload []interface{}, opt UpsertOptions) ([]byte, error)
- type UpsertOptions
- type Where
Constants ¶
View Source
const ( MergeDuplicates = "merge-duplicates" IgnoreDuplicates = "ignore-duplicates" )
Variables ¶
This section is empty.
Functions ¶
func PostgrestRequest ¶
func SliceToStringSlice ¶
func SliceToStringSlice(slice interface{}) []string
Types ¶
type CountOptions ¶
type CountOptions struct {
Count string
}
type Query ¶
type Query struct {
Context raiden.Context
UseWhere int
Columns []string
EqList *[]string
NeqList *[]string
OrList *[]string
InList *[]string
LtList *[]string
LteList *[]string
GtList *[]string
GteList *[]string
LikeList *[]string
IlikeList *[]string
OrderList *[]string
LimitValue int
OffsetValue int
Err error
// contains filtered or unexported fields
}
type UpsertOptions ¶
type UpsertOptions = struct {
OnConflict string
}
Click to show internal directories.
Click to hide internal directories.