Documentation ¶
Index ¶
- func GetGormSettingsFromGin(c *gin.Context, dbInput *gorm.DB) (*gorm.DB, error)
- type QueryOptions
- func (q *QueryOptions) AddCount(count bool)
- func (q *QueryOptions) AddFilter(filterString string) error
- func (q *QueryOptions) AddOrderBy(orderByString string) error
- func (q *QueryOptions) AddSelect(selects []string)
- func (q *QueryOptions) AddSkip(skip int64)
- func (q *QueryOptions) AddTop(top int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type QueryOptions ¶
type QueryOptions struct { Filter *filter.Filter Select *[]string OrderBy *orderby.OrderBy Top int64 Skip int64 Count bool }
func NewQueryOptions ¶
func NewQueryOptions() *QueryOptions
func (*QueryOptions) AddCount ¶
func (q *QueryOptions) AddCount(count bool)
func (*QueryOptions) AddFilter ¶
func (q *QueryOptions) AddFilter(filterString string) error
func (*QueryOptions) AddOrderBy ¶
func (q *QueryOptions) AddOrderBy(orderByString string) error
func (*QueryOptions) AddSelect ¶
func (q *QueryOptions) AddSelect(selects []string)
func (*QueryOptions) AddSkip ¶
func (q *QueryOptions) AddSkip(skip int64)
func (*QueryOptions) AddTop ¶
func (q *QueryOptions) AddTop(top int64)
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package middleware provides an HTTP middleware for parsing OData query options from the URL and adding them to the request context.
|
Package middleware provides an HTTP middleware for parsing OData query options from the URL and adding them to the request context. |
Click to show internal directories.
Click to hide internal directories.