execution

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFetching

type DataFetching[T sqb.Statement[T]] struct {
	// contains filtered or unexported fields
}

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 (d *DataFetching[T]) MustRowsByGroup(key string, removeKeyFromRow bool) map[any][]map[string]any

func (*DataFetching[T]) MustRowsByKey added in v0.0.9

func (d *DataFetching[T]) MustRowsByKey(key string, removeKeyFromRow bool) map[any]map[string]any

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]) Row

func (d *DataFetching[T]) Row() (map[string]any, error)

func (*DataFetching[T]) Rows

func (d *DataFetching[T]) Rows() ([]map[string]any, error)

func (*DataFetching[T]) RowsByGroup

func (d *DataFetching[T]) RowsByGroup(key string, removeKeyFromRow bool) (map[any][]map[string]any, error)

func (*DataFetching[T]) RowsByKey

func (d *DataFetching[T]) RowsByKey(key string, removeKeyFromRow bool) (map[any]map[string]any, error)

type StatementExecution

type StatementExecution[T sqb.Statement[T]] struct {
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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