dialect

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 12 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 []string, err error)

func (*Dialect) DeleteByConditions

func (dialect *Dialect) DeleteByConditions(ctx specifications.Context, spec *specifications.Specification, cond specifications.Condition) (method specifications.Method, query []byte, audits []string, 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 string) string

func (*Dialect) Insert

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

func (*Dialect) InsertOrUpdate

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

func (*Dialect) InsertWhenExist

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

func (*Dialect) InsertWhenNotExist

func (dialect *Dialect) InsertWhenNotExist(ctx specifications.Context, spec *specifications.Specification, src specifications.QueryExpr) (method specifications.Method, query []byte, fields []string, arguments []any, returning []string, 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, offset int, length int) (method specifications.Method, query []byte, arguments []any, fields []string, 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 []string, 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)

func (*Dialect) View added in v1.2.1

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

type Generic

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) Current added in v1.2.1

func (ph *Placeholder) Current() (v string)

func (*Placeholder) Next

func (ph *Placeholder) Next() (v string)

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