Documentation ¶
Index ¶
- func Exec(ctx context.Context, o sqb.Querier, objs ...any) error
- func MakeAnyColumns(names ...string) []sqb.Column
- func MakeQuery(ctx context.Context, mode sqb.QueryMode, ad sqb.Adapter, objs ...any) (sqb.Query, error)
- func MaybeFirst(ctx context.Context, o sqb.Querier, objs ...any) (bt.Optional[Row], error)
- func MaybeOne(ctx context.Context, o sqb.Querier, objs ...any) (bt.Optional[Row], error)
- func Query(ctx context.Context, o sqb.Querier, objs ...any) (sqb.Rows, error)
- func Scalar(ctx context.Context, o sqb.Querier, objs ...any) (any, error)
- func ScanMap(cs []sqb.Column, scan RowScanner) (map[string]any, error)
- type Adapter
- type Column
- type Columns
- type Conn
- type Db
- type MultipleFoundError
- type NotEnoughValuesError
- type NotFoundError
- type Querier
- type Row
- func (r Row) Clone() Row
- func (r Row) Columns() *sqb.Columns
- func (r Row) Contains(k string) bool
- func (r Row) ForEach(fn func(kv bt.Kv[string, any]) bool) bool
- func (r Row) Format(f fmt.State, c rune)
- func (r Row) Get(k string) any
- func (r Row) Iterate() bt.Iterator[bt.Kv[string, any]]
- func (r Row) Len() int
- func (r Row) MarshalJSON() ([]byte, error)
- func (r Row) TryGet(k string) (any, bool)
- func (r Row) Value(i int) any
- func (r Row) Values() []any
- type RowReader
- type RowScanner
- type Rows
- type RowsIterator
- type TooManyValuesError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAnyColumns ¶
func MaybeFirst ¶
Types ¶
type MultipleFoundError ¶
type MultipleFoundError struct{}
func (MultipleFoundError) Error ¶
func (e MultipleFoundError) Error() string
type NotEnoughValuesError ¶
type NotEnoughValuesError struct{}
func (NotEnoughValuesError) Error ¶
func (e NotEnoughValuesError) Error() string
type NotFoundError ¶
type NotFoundError struct{}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type RowScanner ¶
type RowsIterator ¶
type RowsIterator struct {
// contains filtered or unexported fields
}
func IterRows ¶
func IterRows(br sqb.Rows) *RowsIterator
func (*RowsIterator) Close ¶
func (ri *RowsIterator) Close() error
func (*RowsIterator) HasNext ¶
func (ri *RowsIterator) HasNext() bool
type TooManyValuesError ¶
type TooManyValuesError struct{}
func (TooManyValuesError) Error ¶
func (e TooManyValuesError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.