Documentation
¶
Overview ¶
Package scan allows scanning data into Go structs and other composite types, when working with spanner library native interface.
Index ¶
- Variables
- func Get(ctx context.Context, db spxapi.Querier, dst any, statement spanner.Statement) error
- func Select(ctx context.Context, db spxapi.Querier, dst any, statement spanner.Statement) error
- func SelectSeq[T any](ctx context.Context, db spxapi.Querier, statement spanner.Statement) iter.Seq2[*T, error]
- func UpdateAndGet(ctx context.Context, client spxapi.TxnRunner, dst any, ...) error
- func UpdateAndSelect(ctx context.Context, client spxapi.TxnRunner, dst any, ...) error
- type Querier
- type TxnRunner
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = spxapi.ErrNotFound
ErrNotFound is a type alias for spxapi.ErrNotFound. Deprecated: use spxapi.ErrNotFound instead.
Functions ¶
func Get ¶
Get is a package-level helper function that uses the spxapi.Default object. See API.Get for details.
func Select ¶
Select is a package-level helper function that uses the spxapi.Default object. See API.Select for details.
func SelectSeq ¶ added in v0.0.4
func SelectSeq[T any](ctx context.Context, db spxapi.Querier, statement spanner.Statement) iter.Seq2[*T, error]
SelectSeq is a package-level helper function that uses the spxapi.Default object. See API.Select for details.
Types ¶
Click to show internal directories.
Click to hide internal directories.