Documentation ¶
Overview ¶
Package spannerio provides an API for reading and writing resouces to Google Spanner datastores.
Index ¶
- func Query(s beam.Scope, database string, q string, t reflect.Type, ...) beam.PCollection
- func Read(s beam.Scope, database string, table string, t reflect.Type) beam.PCollection
- func UseBatchSize(batchSize int) func(qo *writeOptions) error
- func Write(s beam.Scope, database string, table string, col beam.PCollection, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
func Query(s beam.Scope, database string, q string, t reflect.Type, options ...func(*queryOptions) error) beam.PCollection
Query executes a query. The output must have a schema compatible with the given type, t. It returns a PCollection<t>. Note: Query will be executed on a single worker. Consider performance of query and if downstream splitting is required add beam.Reshuffle.
func Read ¶
Read reads all rows from the given table. The table must have a schema compatible with the given type, t, and Read returns a PCollection<t>. If the table has more rows than t, then Read is implicitly a projection.
func UseBatchSize ¶
UseBatchSize explicitly sets the batch size per transaction for writes
Types ¶
This section is empty.