Documentation
¶
Index ¶
- type DeleteStmt
- type InsertStmt
- type MergeStmt
- type SelectStmt
- func (s *SelectStmt) Batches(size, page int) func() ([]map[string]any, error)
- func (s *SelectStmt) Build() *SelectStmt
- func (s *SelectStmt) Clean() *SelectStmt
- func (s *SelectStmt) Column(args ...string) ([]any, error)
- func (s *SelectStmt) Copy() *SelectStmt
- func (s *SelectStmt) Count(column string) (int64, error)
- func (s *SelectStmt) CountWithNonConditionalClauses(column string) (int64, error)
- func (s *SelectStmt) ItIsQuery()
- func (s *SelectStmt) MustColumn(args ...string) []any
- func (s *SelectStmt) MustCount(column string) int64
- func (s *SelectStmt) MustCountWithNonConditionalClauses(column string) int64
- func (s *SelectStmt) MustOne(args ...string) any
- func (s *SelectStmt) One(args ...string) (any, error)
- func (s *SelectStmt) Pages(size, page int) func() (map[string]any, error)
- func (s *SelectStmt) Paginate(page, size int) *SelectStmt
- type UpdateStmt
- type ValuesStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteStmt ¶
type DeleteStmt struct {
*execution.DataFetching[*DeleteStmt]
*execution.StatementExecution[*DeleteStmt]
*sql.BaseStatement[*DeleteStmt]
*cls.WithClause[*DeleteStmt]
*postgresql.DeleteClause[*DeleteStmt]
*cls.UsingClause[*DeleteStmt]
*cls.WhereClause[*DeleteStmt]
*cls.ReturningClause[*DeleteStmt]
}
func NewDeleteStmt ¶
func NewDeleteStmt(db sqb.StatementExecutor) *DeleteStmt
func (*DeleteStmt) Build ¶
func (s *DeleteStmt) Build() *DeleteStmt
func (*DeleteStmt) Clean ¶
func (s *DeleteStmt) Clean() *DeleteStmt
func (*DeleteStmt) Copy ¶
func (s *DeleteStmt) Copy() *DeleteStmt
func (*DeleteStmt) ItIsCommand ¶
func (s *DeleteStmt) ItIsCommand()
type InsertStmt ¶
type InsertStmt struct {
*execution.DataFetching[*InsertStmt]
*sql.BaseStatement[*InsertStmt]
*cls.WithClause[*InsertStmt]
*postgresql.InsertClause[*InsertStmt]
*cls.ColumnsClause[*InsertStmt]
*postgresql.ValueListClause[*InsertStmt, *SelectStmt]
*postgresql.ConflictClause[*InsertStmt]
*cls.ReturningClause[*InsertStmt]
}
func NewInsertStmt ¶
func NewInsertStmt(db sqb.StatementExecutor) *InsertStmt
func (*InsertStmt) Build ¶
func (s *InsertStmt) Build() *InsertStmt
func (*InsertStmt) Clean ¶
func (s *InsertStmt) Clean() *InsertStmt
func (*InsertStmt) Copy ¶
func (s *InsertStmt) Copy() *InsertStmt
func (*InsertStmt) ItIsCommand ¶
func (s *InsertStmt) ItIsCommand()
func (*InsertStmt) MustExec ¶ added in v0.0.9
func (s *InsertStmt) MustExec(sequence string) any
type MergeStmt ¶ added in v0.0.13
type MergeStmt struct {
*execution.DataFetching[*MergeStmt]
*execution.StatementExecution[*MergeStmt]
*sql.BaseStatement[*MergeStmt]
*cls.WithClause[*MergeStmt]
*postgresql.MergeClause[*MergeStmt]
*cls.UsingClause[*MergeStmt]
*postgresql.OnClause[*MergeStmt]
*postgresql.MatchClause[*MergeStmt, *InsertStmt, *UpdateStmt]
*cls.ReturningClause[*MergeStmt]
}
func NewMergeStmt ¶ added in v0.0.13
func NewMergeStmt(db sqb.StatementExecutor) *MergeStmt
type SelectStmt ¶
type SelectStmt struct {
*execution.DataFetching[*SelectStmt]
*sql.BaseStatement[*SelectStmt]
*postgresql.UnionClause[*SelectStmt]
*cls.WithClause[*SelectStmt]
*cls.FromClause[*SelectStmt]
*cls.SelectClause[*SelectStmt]
*postgresql.JoinClause[*SelectStmt]
*cls.WhereClause[*SelectStmt]
*cls.GroupClause[*SelectStmt]
*cls.HavingClause[*SelectStmt]
*cls.OrderClause[*SelectStmt]
*cls.LimitClause[*SelectStmt]
*cls.OffsetClause[*SelectStmt]
*postgresql.LockingClause[*SelectStmt]
}
func NewSelectStmt ¶
func NewSelectStmt(db sqb.StatementExecutor) *SelectStmt
func (*SelectStmt) Batches ¶
func (s *SelectStmt) Batches(size, page int) func() ([]map[string]any, error)
func (*SelectStmt) Build ¶
func (s *SelectStmt) Build() *SelectStmt
func (*SelectStmt) Clean ¶
func (s *SelectStmt) Clean() *SelectStmt
func (*SelectStmt) Copy ¶
func (s *SelectStmt) Copy() *SelectStmt
func (*SelectStmt) CountWithNonConditionalClauses ¶
func (s *SelectStmt) CountWithNonConditionalClauses(column string) (int64, error)
func (*SelectStmt) ItIsQuery ¶
func (s *SelectStmt) ItIsQuery()
func (*SelectStmt) MustColumn ¶ added in v0.0.10
func (s *SelectStmt) MustColumn(args ...string) []any
func (*SelectStmt) MustCount ¶ added in v0.0.10
func (s *SelectStmt) MustCount(column string) int64
func (*SelectStmt) MustCountWithNonConditionalClauses ¶ added in v0.0.10
func (s *SelectStmt) MustCountWithNonConditionalClauses(column string) int64
func (*SelectStmt) MustOne ¶ added in v0.0.10
func (s *SelectStmt) MustOne(args ...string) any
func (*SelectStmt) Pages ¶
func (s *SelectStmt) Pages(size, page int) func() (map[string]any, error)
func (*SelectStmt) Paginate ¶
func (s *SelectStmt) Paginate(page, size int) *SelectStmt
type UpdateStmt ¶
type UpdateStmt struct {
*execution.DataFetching[*UpdateStmt]
*execution.StatementExecution[*UpdateStmt]
*sql.BaseStatement[*UpdateStmt]
*cls.WithClause[*UpdateStmt]
*postgresql.UpdateClause[*UpdateStmt]
*cls.AssignmentClause[*UpdateStmt]
*cls.FromClause[*UpdateStmt]
*cls.WhereClause[*UpdateStmt]
*cls.ReturningClause[*UpdateStmt]
}
func NewUpdateStmt ¶
func NewUpdateStmt(db sqb.StatementExecutor) *UpdateStmt
func (*UpdateStmt) Build ¶
func (s *UpdateStmt) Build() *UpdateStmt
func (*UpdateStmt) Clean ¶
func (s *UpdateStmt) Clean() *UpdateStmt
func (*UpdateStmt) Copy ¶
func (s *UpdateStmt) Copy() *UpdateStmt
func (*UpdateStmt) ItIsCommand ¶
func (s *UpdateStmt) ItIsCommand()
type ValuesStmt ¶
type ValuesStmt struct {
*execution.DataFetching[*ValuesStmt]
*sql.BaseStatement[*ValuesStmt]
*postgresql.UnionClause[*ValuesStmt]
*cls.ValuesClause[*ValuesStmt]
*cls.OrderClause[*ValuesStmt]
*cls.LimitClause[*ValuesStmt]
*cls.OffsetClause[*ValuesStmt]
}
func NewValuesStmt ¶
func NewValuesStmt(db sqb.StatementExecutor) *ValuesStmt
func (*ValuesStmt) Build ¶
func (s *ValuesStmt) Build() *ValuesStmt
func (*ValuesStmt) Clean ¶
func (s *ValuesStmt) Clean() *ValuesStmt
func (*ValuesStmt) Copy ¶
func (s *ValuesStmt) Copy() *ValuesStmt
func (*ValuesStmt) ItIsQuery ¶
func (s *ValuesStmt) ItIsQuery()
func (*ValuesStmt) Paginate ¶
func (s *ValuesStmt) Paginate(page, size int) *ValuesStmt
Source Files
¶
Click to show internal directories.
Click to hide internal directories.