builder

package
v1.3.171 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	BuildCreateTable(vModel model.Model) (Result, *cd.Result)
	BuildDropTable(vModel model.Model) (Result, *cd.Result)
	BuildInsert(vModel model.Model) (Result, *cd.Result)
	BuildUpdate(vModel model.Model) (Result, *cd.Result)
	BuildDelete(vModel model.Model) (Result, *cd.Result)
	BuildQuery(vModel model.Model, vFilter model.Filter) (Result, *cd.Result)
	BuildQueryPlaceHolder(vModel model.Model) ([]any, *cd.Result)
	BuildCount(vModel model.Model, vFilter model.Filter) (Result, *cd.Result)

	BuildCreateRelationTable(vModel model.Model, vField model.Field, rModel model.Model) (Result, *cd.Result)
	BuildDropRelationTable(vModel model.Model, vField model.Field, rModel model.Model) (Result, *cd.Result)
	BuildInsertRelation(vModel model.Model, vField model.Field, rModel model.Model) (Result, *cd.Result)
	BuildDeleteRelation(vModel model.Model, vField model.Field, rModel model.Model) (Result, Result, *cd.Result)
	BuildQueryRelation(vModel model.Model, vField model.Field, rModel model.Model) (Result, *cd.Result)
	BuildQueryRelationPlaceHolder(vModel model.Model, vField model.Field, rModel model.Model) (any, *cd.Result)
}

Builder orm builder

func NewBuilder

func NewBuilder(provider provider.Provider, codec codec.Codec) Builder

NewBuilder new builder

type Result added in v1.3.147

type Result interface {
	SQL() string
	Args() []any
}

Jump to

Keyboard shortcuts

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