dialect

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect struct {
	// contains filtered or unexported fields
}

func NewDialect

func NewDialect() *Dialect

func (*Dialect) Count

func (dialect *Dialect) Count(ctx specifications.Context, spec *specifications.Specification, cond specifications.Condition) (method specifications.Method, query []byte, arguments []any, err error)

func (*Dialect) Delete

func (dialect *Dialect) Delete(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []int, err error)

func (*Dialect) DeleteByConditions

func (dialect *Dialect) DeleteByConditions(ctx specifications.Context, spec *specifications.Specification, cond specifications.Condition) (method specifications.Method, query []byte, audits []int, arguments []any, err error)

func (*Dialect) Exist

func (dialect *Dialect) Exist(ctx specifications.Context, spec *specifications.Specification, cond specifications.Condition) (method specifications.Method, query []byte, arguments []any, err error)

func (*Dialect) FormatIdent

func (dialect *Dialect) FormatIdent(ident []byte) []byte

func (*Dialect) Insert

func (dialect *Dialect) Insert(ctx specifications.Context, spec *specifications.Specification, values int) (method specifications.Method, query []byte, fields []int, returning []int, err error)

func (*Dialect) InsertOrUpdate

func (dialect *Dialect) InsertOrUpdate(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []int, returning []int, err error)

func (*Dialect) InsertWhenExist

func (dialect *Dialect) InsertWhenExist(ctx specifications.Context, spec *specifications.Specification, src specifications.QueryExpr) (method specifications.Method, query []byte, fields []int, arguments []any, returning []int, err error)

func (*Dialect) InsertWhenNotExist

func (dialect *Dialect) InsertWhenNotExist(ctx specifications.Context, spec *specifications.Specification, src specifications.QueryExpr) (method specifications.Method, query []byte, fields []int, arguments []any, returning []int, err error)

func (*Dialect) Name

func (dialect *Dialect) Name() string

func (*Dialect) Query

func (dialect *Dialect) Query(ctx specifications.Context, spec *specifications.Specification, cond specifications.Condition, orders specifications.Orders, groupBy specifications.GroupBy, having specifications.Having, offset int, length int) (method specifications.Method, query []byte, arguments []any, columns []int, err error)

func (*Dialect) QueryPlaceholder

func (dialect *Dialect) QueryPlaceholder() specifications.QueryPlaceholder

func (*Dialect) Update

func (dialect *Dialect) Update(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []int, err error)

func (*Dialect) UpdateFields

func (dialect *Dialect) UpdateFields(ctx specifications.Context, spec *specifications.Specification, fields []specifications.FieldValue, cond specifications.Condition) (method specifications.Method, query []byte, arguments []any, err error)

type Generic

type Generic struct {
	Insert             *inserts.InsertGeneric
	InsertOrUpdate     *inserts.InsertOrUpdateGeneric
	InsertWhenExist    *inserts.InsertWhenExistsGeneric
	InsertWhenNotExist *inserts.InsertWhenNotExistsGeneric
	Update             *updates.UpdateGeneric
	UpdateFields       *updates.UpdateFieldsGeneric
	Delete             *deletes.DeleteGeneric
	DeleteByConditions *deletes.DeleteByConditionsGeneric
	Count              *selects.CountGeneric
	Exist              *selects.ExistGeneric
	Query              *selects.QueryGeneric
}

type Generics

type Generics struct {
	// contains filtered or unexported fields
}

func (*Generics) Get

func (generics *Generics) Get(ctx specifications.Context, spec *specifications.Specification) (generic *Generic, has bool, err error)

type Placeholder

type Placeholder struct {
	// contains filtered or unexported fields
}

func (*Placeholder) Next

func (ph *Placeholder) Next() (v []byte)

func (*Placeholder) SkipCursor

func (ph *Placeholder) SkipCursor(n int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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