gorm2op

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 13 Imported by: 4

Documentation

Index

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 CtxKeyDB added in v3.1.1

type CtxKeyDB struct{}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL