Documentation ¶
Index ¶
- func ArgsToParams(args []interface{}) map[string]interface{}
- func Delete[T tables.Table, K Key](db BufferWriter, keys ...K) error
- func DeleteByBuilder(ctx context.Context, db Updater, b squirrel.DeleteBuilder) (int64, error)
- func GetByKey[M any, T tables.Table, K Key](ctx context.Context, db RowReader, k K) (m M, err error)
- func GetByKeys[M any, T tables.Table, K Key](ctx context.Context, db Reader, ids ...K) ([]M, error)
- func GetPtrResults[M any](iter *spanner.RowIterator) (out []*M, err error)
- func GetResult[M any](iter *spanner.RowIterator) (out M, err error)
- func GetResultByBuilder[M any](ctx context.Context, db Queryer, b squirrel.SelectBuilder) (m M, err error)
- func GetResults[M any](iter *spanner.RowIterator) (out []M, err error)
- func GetResultsByBuilder[M any](ctx context.Context, db Queryer, b squirrel.SelectBuilder) ([]M, error)
- func UpdateByBuilder(ctx context.Context, db Updater, b squirrel.UpdateBuilder) (int64, error)
- type BufferWriter
- type DBWriter
- type IndexReader
- type Key
- type Queryer
- type Reader
- type RowReader
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsToParams ¶
func ArgsToParams(args []interface{}) map[string]interface{}
func DeleteByBuilder ¶
func GetPtrResults ¶
func GetPtrResults[M any](iter *spanner.RowIterator) (out []*M, err error)
GetPtrResults returns the results from the iterator. Calls Stop after the iterator is finished.
func GetResult ¶
func GetResult[M any](iter *spanner.RowIterator) (out M, err error)
GetResult returns the result from the iterator. Calls Stop after the iterator is finished.
func GetResultByBuilder ¶
func GetResults ¶
func GetResults[M any](iter *spanner.RowIterator) (out []M, err error)
GetResults returns the results from the iterator. Calls Stop after the iterator is finished.
func GetResultsByBuilder ¶
func UpdateByBuilder ¶
Types ¶
type BufferWriter ¶
type DBWriter ¶
type DBWriter interface { Updater BufferWriter }
type IndexReader ¶
Click to show internal directories.
Click to hide internal directories.