Documentation ¶
Index ¶
- Constants
- type Dialect
- func (dialect *Dialect) Count(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, arguments []any, err error)
- func (dialect *Dialect) Delete(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []string, err error)
- func (dialect *Dialect) DeleteByConditions(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, audits []string, arguments []any, ...)
- func (dialect *Dialect) Exist(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, arguments []any, err error)
- func (dialect *Dialect) FormatIdent(ident string) string
- func (dialect *Dialect) Insert(ctx specifications.Context, spec *specifications.Specification, values int) (method specifications.Method, query []byte, fields []string, ...)
- func (dialect *Dialect) InsertOrUpdate(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []string, ...)
- func (dialect *Dialect) InsertWhenExist(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, fields []string, arguments []any, ...)
- func (dialect *Dialect) InsertWhenNotExist(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, fields []string, arguments []any, ...)
- func (dialect *Dialect) Name() string
- func (dialect *Dialect) Query(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, arguments []any, fields []string, ...)
- func (dialect *Dialect) QueryPlaceholder() specifications.QueryPlaceholder
- func (dialect *Dialect) Update(ctx specifications.Context, spec *specifications.Specification) (method specifications.Method, query []byte, fields []string, err error)
- func (dialect *Dialect) UpdateFields(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, arguments []any, err error)
- func (dialect *Dialect) View(ctx specifications.Context, spec *specifications.Specification, ...) (method specifications.Method, query []byte, arguments []any, fields []string, ...)
- type Generic
- type Generics
- type Placeholder
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) 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) 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 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 View *views.ViewGeneric }
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)
Click to show internal directories.
Click to hide internal directories.