Documentation ¶
Overview ¶
Package mbigtable implements connecting to Google's Bigtable service and simplifying a number of interactions with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bigtable ¶
Bigtable is a wrapper around a bigtable client providing more functionality.
func WithBigTable ¶
func WithBigTable(parent context.Context, gce *mdb.GCE, defaultInstance string) (context.Context, *Bigtable)
WithBigTable returns a Bigtable instance which will be initialized and configured when the start event is triggered on the returned Context (see mrun.Start). The Bigtable instance will have Close called on it when the stop event is triggered on the returned Context (see mrun.Stop).
gce is optional and can be passed in if there's an existing gce object which should be used, otherwise a new one will be created with mdb.MGCE.
defaultInstance can be given as the instance name to use as the default parameter value. If empty the parameter will be required to be set.
func (*Bigtable) EnsureTable ¶
EnsureTable ensures that the given table exists and has (at least) the given column families.
This method requires admin privileges on the bigtable instance.