builder

package
v1.3.38 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 3 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() (string, error)
	BuildDropTable() (string, error)
	BuildInsert() (string, error)
	BuildUpdate() (string, error)
	BuildDelete() (string, error)
	BuildQuery(filter model.Filter) (string, error)
	BuildCount(filter model.Filter) (string, error)

	BuildCreateRelationTable(field model.Field, rModel model.Model) (string, error)
	BuildDropRelationTable(field model.Field, rModel model.Model) (string, error)
	BuildInsertRelation(field model.Field, rModel model.Model) (string, error)
	BuildDeleteRelation(field model.Field, rModel model.Model) (string, string, error)
	BuildQueryRelation(field model.Field, rModel model.Model) (string, error)

	GetFieldScanDest(field model.Field) (interface{}, error)
}

Builder orm builder

func NewBuilder

func NewBuilder(vModel model.Model, modelProvider provider.Provider, prefix string) Builder

NewBuilder new builder

Jump to

Keyboard shortcuts

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