postgresql

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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

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) Exec added in v0.0.2

func (s *InsertStmt) Exec(sequence string) (any, error)

func (*InsertStmt) ItIsCommand

func (s *InsertStmt) ItIsCommand()

func (*InsertStmt) MustExec added in v0.0.9

func (s *InsertStmt) MustExec(sequence string) any

type 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) Column

func (s *SelectStmt) Column(args ...string) ([]any, error)

func (*SelectStmt) Copy

func (s *SelectStmt) Copy() *SelectStmt

func (*SelectStmt) Count

func (s *SelectStmt) Count(column string) (int64, error)

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) One

func (s *SelectStmt) One(args ...string) (any, error)

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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