Versions in this module Expand all Collapse all v1 v1.0.0 Sep 29, 2016 Changes in this version + var Done = errors.New("datastore: query has no more results") + var ErrConcurrentTransaction = errors.New("datastore: concurrent transaction") + var ErrInvalidEntityType = errors.New("datastore: invalid entity type") + var ErrInvalidKey = errors.New("datastore: invalid key") + var ErrNoSuchEntity = errors.New("datastore: no such entity") + func AllocateIDs(c context.Context, kind string, parent *Key, n int) (low, high int64, err error) + func Delete(c context.Context, key *Key) error + func DeleteMulti(c context.Context, key []*Key) error + func Get(c context.Context, key *Key, dst interface{}) error + func GetMulti(c context.Context, key []*Key, dst interface{}) error + func KindProperties(ctx context.Context, kind string) (map[string][]string, error) + func Kinds(ctx context.Context) ([]string, error) + func LoadStruct(dst interface{}, p []Property) error + func Namespaces(ctx context.Context) ([]string, error) + func RunInTransaction(c context.Context, f func(tc context.Context) error, opts *TransactionOptions) error + type ByteString []byte + type Cursor struct + func DecodeCursor(s string) (Cursor, error) + func (c Cursor) String() string + type ErrFieldMismatch struct + FieldName string + Reason string + StructType reflect.Type + func (e *ErrFieldMismatch) Error() string + type Iterator struct + func (t *Iterator) Cursor() (Cursor, error) + func (t *Iterator) Next(dst interface{}) (*Key, error) + type Key struct + func DecodeKey(encoded string) (*Key, error) + func NewIncompleteKey(c context.Context, kind string, parent *Key) *Key + func NewKey(c context.Context, kind, stringID string, intID int64, parent *Key) *Key + func Put(c context.Context, key *Key, src interface{}) (*Key, error) + func PutMulti(c context.Context, key []*Key, src interface{}) ([]*Key, error) + func (k *Key) AppID() string + func (k *Key) Encode() string + func (k *Key) Equal(o *Key) bool + func (k *Key) GobDecode(buf []byte) error + func (k *Key) GobEncode() ([]byte, error) + func (k *Key) Incomplete() bool + func (k *Key) IntID() int64 + func (k *Key) Kind() string + func (k *Key) MarshalJSON() ([]byte, error) + func (k *Key) Namespace() string + func (k *Key) Parent() *Key + func (k *Key) String() string + func (k *Key) StringID() string + func (k *Key) UnmarshalJSON(buf []byte) error + type Property struct + Multiple bool + Name string + NoIndex bool + Value interface{} + func SaveStruct(src interface{}) ([]Property, error) + type PropertyList []Property + func (l *PropertyList) Load(p []Property) error + func (l *PropertyList) Save() ([]Property, error) + type PropertyLoadSaver interface + Load func([]Property) error + Save func() ([]Property, error) + type Query struct + func NewQuery(kind string) *Query + func (q *Query) Ancestor(ancestor *Key) *Query + func (q *Query) Count(c context.Context) (int, error) + func (q *Query) Distinct() *Query + func (q *Query) End(c Cursor) *Query + func (q *Query) EventualConsistency() *Query + func (q *Query) Filter(filterStr string, value interface{}) *Query + func (q *Query) GetAll(c context.Context, dst interface{}) ([]*Key, error) + func (q *Query) KeysOnly() *Query + func (q *Query) Limit(limit int) *Query + func (q *Query) Offset(offset int) *Query + func (q *Query) Order(fieldName string) *Query + func (q *Query) Project(fieldNames ...string) *Query + func (q *Query) Run(c context.Context) *Iterator + func (q *Query) Start(c Cursor) *Query + type TransactionOptions struct + Attempts int + XG bool