st

package
v0.0.0-...-19bee3a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeOmit

func MakeOmit(c Context, columns ...string)

func MakeOrder

func MakeOrder(c Context, value interface{})

func MakePreload

func MakePreload(c Context, column string, conditions ...interface{})

func MakeSet

func MakeSet(c Context, name string, value interface{})

func MakeWhere

func MakeWhere(c Context, query interface{}, args ...interface{})

func Makefilter

func Makefilter(c Context, key, v string)

func StGorm

func StGorm(c echo.Context, obj interface{}, omit ...string) (data map[string]interface{}, err error)

StGorm

Types

type Context

type Context interface {
	// Get retrieves data from the context.
	Get(key string) interface{}

	// Set saves data in the context.
	Set(key string, val interface{})
}

type ExOmit

type ExOmit struct {
	Columns []string
}

type ExOrder

type ExOrder struct {
	Value interface{}
}

type ExPreload

type ExPreload struct {
	Column     string
	Conditions []interface{}
}

type ExRelated

type ExRelated struct {
	Value       interface{}
	ForeignKeys []string
}

type ExSet

type ExSet struct {
	Name  string
	Value interface{}
}

type ExWhere

type ExWhere struct {
	Query interface{}
	Args  []interface{}
}

Jump to

Keyboard shortcuts

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