Documentation ¶
Index ¶
- func KeysetBasedPagination(skipTotalCount bool, cursorMiddlewares ...relay.CursorMiddleware[any]) presets.RelayPagination
- func OffsetBasedPagination(skipTotalCount bool, cursorMiddlewares ...relay.CursorMiddleware[any]) presets.RelayPagination
- type CtxKeyDB
- type DataOperatorBuilder
- func (op *DataOperatorBuilder) Delete(obj interface{}, id string, ctx *web.EventContext) (err error)
- func (op *DataOperatorBuilder) Fetch(obj interface{}, id string, ctx *web.EventContext) (r interface{}, err error)
- func (op *DataOperatorBuilder) Save(obj interface{}, id string, ctx *web.EventContext) (err error)
- func (op *DataOperatorBuilder) Search(evCtx *web.EventContext, params *presets.SearchParams) (result *presets.SearchResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeysetBasedPagination ¶ added in v3.0.6
func KeysetBasedPagination(skipTotalCount bool, cursorMiddlewares ...relay.CursorMiddleware[any]) presets.RelayPagination
func OffsetBasedPagination ¶ added in v3.0.6
func OffsetBasedPagination(skipTotalCount bool, cursorMiddlewares ...relay.CursorMiddleware[any]) presets.RelayPagination
Types ¶
type DataOperatorBuilder ¶
type DataOperatorBuilder struct {
// contains filtered or unexported fields
}
func DataOperator ¶
func DataOperator(db *gorm.DB) (r *DataOperatorBuilder)
func (*DataOperatorBuilder) Delete ¶
func (op *DataOperatorBuilder) Delete(obj interface{}, id string, ctx *web.EventContext) (err error)
func (*DataOperatorBuilder) Fetch ¶
func (op *DataOperatorBuilder) Fetch(obj interface{}, id string, ctx *web.EventContext) (r interface{}, err error)
func (*DataOperatorBuilder) Save ¶
func (op *DataOperatorBuilder) Save(obj interface{}, id string, ctx *web.EventContext) (err error)
func (*DataOperatorBuilder) Search ¶
func (op *DataOperatorBuilder) Search(evCtx *web.EventContext, params *presets.SearchParams) (result *presets.SearchResult, err error)
Click to show internal directories.
Click to hide internal directories.