Documentation ¶
Overview ¶
Package nds provides Google Cloud Datastore utility clients
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFieldMismatch = errors.New("field mismatch")
View Source
var ErrInvalidID = errors.New("invalid id")
View Source
var ErrInvalidKey = errors.New("invalid key")
View Source
var ErrNotFound = errors.New("not found")
View Source
var IncompleteKey = datastore.IncompleteKey
View Source
var IteratorDone = iterator.Done
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { NewQuery(kind string) Query Get(ctx context.Context, key *Key, dst interface{}) (err error) Put(ctx context.Context, key *Key, src interface{}) (*Key, error) Run(ctx context.Context, q Query) Iterator }
Driver implementation. This implements the global functions of the `cloud.google.com/go/datastore` package.
type Iterator ¶
type Iterator interface { Cursor() (c Cursor, err error) Next(dst interface{}) (k *Key, err error) }
Abstract interfaces for datastore types
Click to show internal directories.
Click to hide internal directories.