Documentation ¶
Index ¶
- type InsertStmt
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InsertStmt ¶
type InsertStmt struct { *execution.DataFetching[*InsertStmt] *sql.BaseStatement[*InsertStmt] *clickhouse.InsertClause[*InsertStmt] *clickhouse.ValueListClause[*InsertStmt, *SelectStmt] *cls.ColumnsClause[*InsertStmt] *clickhouse.SettingsClause[*InsertStmt] *clickhouse.FromClause[*InsertStmt] *clickhouse.FormatClause[*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 ¶
func (s *InsertStmt) MustExec(sequence string) any
type SelectStmt ¶
type SelectStmt struct { *execution.DataFetching[*SelectStmt] *sql.BaseStatement[*SelectStmt] *clickhouse.UnionClause[*SelectStmt] *cls.WithClause[*SelectStmt] *cls.FromClause[*SelectStmt] *cls.SelectClause[*SelectStmt] *clickhouse.JoinClause[*SelectStmt] *cls.WhereClause[*SelectStmt] *cls.GroupClause[*SelectStmt] *cls.HavingClause[*SelectStmt] *cls.OrderClause[*SelectStmt] *cls.LimitClause[*SelectStmt] *cls.OffsetClause[*SelectStmt] *clickhouse.ApplyClause[*SelectStmt] *clickhouse.ExceptClause[*SelectStmt] *clickhouse.SettingsClause[*SelectStmt] *clickhouse.PrewhereClause[*SelectStmt] *clickhouse.IntersectClause[*SelectStmt] *clickhouse.SampleClause[*SelectStmt] *clickhouse.ReplaceClause[*SelectStmt] *clickhouse.QualifyClause[*SelectStmt] *clickhouse.IntoOutfileClause[*SelectStmt] *clickhouse.FormatClause[*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 ¶
func (s *SelectStmt) MustColumn(args ...string) []any
func (*SelectStmt) MustCount ¶
func (s *SelectStmt) MustCount(column string) int64
func (*SelectStmt) MustCountWithNonConditionalClauses ¶
func (s *SelectStmt) MustCountWithNonConditionalClauses(column string) int64
func (*SelectStmt) MustOne ¶
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
Click to show internal directories.
Click to hide internal directories.