builder

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboveOpr

func AboveOpr(name string, val interface{}) string

AboveOpr Above Opr >

func BelowOpr

func BelowOpr(name string, val interface{}) string

BelowOpr Below Opr <

func EqualOpr

func EqualOpr(name string, val interface{}) string

EqualOpr Equal Opr =

func InOpr

func InOpr(name string, val interface{}) string

InOpr In Opr in

func LikeOpr

func LikeOpr(name string, val interface{}) string

LikeOpr Like Opr like

func NotEqualOpr

func NotEqualOpr(name string, val interface{}) string

NotEqualOpr NotEqual Opr !=

func NotInOpr

func NotInOpr(name string, val interface{}) string

NotInOpr NotIn Opr not in

Types

type Builder

type Builder interface {
	BuildCreateSchema() (string, error)
	BuildDropSchema() (string, error)
	BuildInsert() (string, error)
	BuildUpdate() (string, error)
	BuildDelete() (string, error)
	BuildQuery(filter model.Filter) (string, error)
	BuildCount(filter model.Filter) (string, error)

	BuildCreateRelationSchema(relationSchema string) (string, error)
	BuildDropRelationSchema(relationSchema string) (string, error)
	BuildInsertRelation(field model.Field, relationInfo model.Model) (string, error)
	BuildDeleteRelation(field model.Field, relationInfo model.Model) (string, string, error)
	BuildQueryRelation(field model.Field, relationInfo model.Model) (string, error)

	GetTableName() string
	GetHostTableName(vModel model.Model) string
	GetRelationTableName(field model.Field, relationInfo model.Model) string
	GetInitializeValue(field model.Field) (interface{}, error)
}

Builder orm builder

func NewBuilder

func NewBuilder(modelInfo model.Model, modelProvider provider.Provider) Builder

NewBuilder new builder

Jump to

Keyboard shortcuts

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