Versions in this module Expand all Collapse all v0 v0.0.1 Jan 15, 2022 Changes in this version + var ErrBadConn = errors.New("scansqlx: bad connection") + var ErrNoRows = errors.New("scansqlx: no rows") + func SetTxContext(ctx context.Context, arg interface{}) context.Context + type DB struct + func NewDb(ctx context.Context, db *spanner.Client) *DB + func Open(ctx context.Context, opts ...Option) (*DB, error) + func (d *DB) Close() error + func (d *DB) Exec(ctx context.Context, sql string, args ...interface{}) error + func (d *DB) ExecX(ctx context.Context, stmt spanner.Statement) error + func (d *DB) Get(ctx context.Context, dest interface{}, sql string, args ...interface{}) error + func (d *DB) GetX(ctx context.Context, dest interface{}, stmt spanner.Statement) error + func (d *DB) NamedExec(ctx context.Context, sql string, arg interface{}) error + func (d *DB) Ping(ctx context.Context) error + func (d *DB) Query(ctx context.Context, sql string, args ...interface{}) ([]*spanner.Row, error) + func (d *DB) QueryX(ctx context.Context, stmt spanner.Statement) ([]*spanner.Row, error) + func (d *DB) Select(ctx context.Context, dest interface{}, sql string, args ...interface{}) error + func (d *DB) SelectX(ctx context.Context, dest interface{}, stmt spanner.Statement) error + func (d *DB) TxPipeline(ctx context.Context, callback func(ctx context.Context) error) error + type Option func(*Options) error + func WithClientConfig(s *spanner.ClientConfig) Option + func WithClientOptions(opts ...option.ClientOption) Option + func WithDatabase(s string) Option + type Options struct