Documentation ¶
Index ¶
- type DataFetching
- func (d *DataFetching[T]) Column() ([]any, error)
- func (d *DataFetching[T]) MustColumn() []any
- func (d *DataFetching[T]) MustOne() any
- func (d *DataFetching[T]) MustPairs(keyKey, valueKey string) map[any]any
- func (d *DataFetching[T]) MustRow() map[string]any
- func (d *DataFetching[T]) MustRows() []map[string]any
- func (d *DataFetching[T]) MustRowsByGroup(key string, removeKeyFromRow bool) map[any][]map[string]any
- func (d *DataFetching[T]) MustRowsByKey(key string, removeKeyFromRow bool) map[any]map[string]any
- func (d *DataFetching[T]) One() (any, error)
- func (d *DataFetching[T]) Pairs(keyKey, valueKey string) (map[any]any, error)
- func (d *DataFetching[T]) Row() (map[string]any, error)
- func (d *DataFetching[T]) Rows() ([]map[string]any, error)
- func (d *DataFetching[T]) RowsByGroup(key string, removeKeyFromRow bool) (map[any][]map[string]any, error)
- func (d *DataFetching[T]) RowsByKey(key string, removeKeyFromRow bool) (map[any]map[string]any, error)
- type StatementExecution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataFetching ¶
func NewDataFetching ¶
func NewDataFetching[T sqb.Statement[T]](self T) *DataFetching[T]
func (*DataFetching[T]) Column ¶
func (d *DataFetching[T]) Column() ([]any, error)
func (*DataFetching[T]) MustColumn ¶ added in v0.0.9
func (d *DataFetching[T]) MustColumn() []any
func (*DataFetching[T]) MustOne ¶ added in v0.0.9
func (d *DataFetching[T]) MustOne() any
func (*DataFetching[T]) MustPairs ¶ added in v0.0.9
func (d *DataFetching[T]) MustPairs(keyKey, valueKey string) map[any]any
func (*DataFetching[T]) MustRow ¶ added in v0.0.9
func (d *DataFetching[T]) MustRow() map[string]any
func (*DataFetching[T]) MustRows ¶ added in v0.0.9
func (d *DataFetching[T]) MustRows() []map[string]any
func (*DataFetching[T]) MustRowsByGroup ¶ added in v0.0.9
func (*DataFetching[T]) MustRowsByKey ¶ added in v0.0.9
func (*DataFetching[T]) One ¶
func (d *DataFetching[T]) One() (any, error)
func (*DataFetching[T]) Pairs ¶
func (d *DataFetching[T]) Pairs(keyKey, valueKey string) (map[any]any, error)
func (*DataFetching[T]) RowsByGroup ¶
type StatementExecution ¶
func NewStatementExecution ¶
func NewStatementExecution[T sqb.Statement[T]](self T) *StatementExecution[T]
func (*StatementExecution[T]) Exec ¶
func (s *StatementExecution[T]) Exec() (int64, error)
func (*StatementExecution[T]) MustExec ¶ added in v0.0.9
func (s *StatementExecution[T]) MustExec() int64
Click to show internal directories.
Click to hide internal directories.