crudmgr

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OP_C = "C"
	OP_R = "R"
	OP_U = "U"
	OP_D = "D"
)

Variables

This section is empty.

Functions

func Create

func Create(opts *CrudOpts) (interface{}, error)

func Delete

func Delete(opts *CrudOpts) (interface{}, error)

func Handle

func Handle(name string, a model.VO)

func Retrieve

func Retrieve(tp reflect.Type, opts *CrudOpts) (interface{}, error)

func Update

func Update(opts *CrudOpts) (interface{}, error)

Types

type CrudOpts

type CrudOpts struct {
	Op           string
	Db           string
	Tb           string
	Where        []interface{}
	ID           interface{}
	Data         string
	Cols         []interface{}
	Associations []string
	Limit        int
	Offset       int
	// contains filtered or unexported fields
}

func (*CrudOpts) SetData

func (co *CrudOpts) SetData(i model.VO)

Jump to

Keyboard shortcuts

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