Versions in this module Expand all Collapse all v0 v0.8.1 Nov 7, 2019 Changes in this version + var ErrNoIDField = errors.New("gonm: At least one ID or id tag") + type Transaction struct + Context context.Context + Transaction *datastore.Transaction + func (gmtx *Transaction) Commit() (cm *datastore.Commit, err error) + func (gmtx *Transaction) Delete(dst interface{}) error + func (gmtx *Transaction) DeleteMulti(dst interface{}) error + func (gmtx *Transaction) Get(dst interface{}) error + func (gmtx *Transaction) GetMulti(dst interface{}) error + func (gmtx *Transaction) Mutate(gmuts ...*Mutation) (ret []*datastore.Key, err error) + func (gmtx *Transaction) Put(src interface{}) (*datastore.PendingKey, error) + func (gmtx *Transaction) PutMulti(src interface{}) ([]*datastore.PendingKey, error) + func (gmtx *Transaction) Rollback() (err error) v0.8.0 Oct 28, 2019 Changes in this version + var ErrInTransaction = errors.New("gonm: transaction gonm is not available this method") + var ErrNoIdFiled = errors.New("gonm: At least one ID or id tag") + func Key(src interface{}) (*datastore.Key, error) + func Kind(src interface{}) string + func KindWithTag(src interface{}) (string, error) + type Gonm struct + Client *datastore.Client + Context context.Context + Errors datastore.MultiError + Transaction *datastore.Transaction + func FromContext(ctx context.Context, dsClient *datastore.Client) *Gonm + func (gm *Gonm) AllocateID(dst interface{}) (*datastore.Key, error) + func (gm *Gonm) AllocateIDs(dst interface{}) ([]*datastore.Key, error) + func (gm *Gonm) CacheClear() + func (gm *Gonm) Close() error + func (gm *Gonm) Delete(dst interface{}) error + func (gm *Gonm) DeleteMulti(dst interface{}) error + func (gm *Gonm) Get(dst interface{}) error + func (gm *Gonm) GetAll(q *datastore.Query, dst interface{}) (keys []*datastore.Key, err error) + func (gm *Gonm) GetByKey(key *datastore.Key, dst interface{}) error + func (gm *Gonm) GetConsistency(dst interface{}) error + func (gm *Gonm) GetKeysOnly(q *datastore.Query) (keys []*datastore.Key, cursor datastore.Cursor, err error) + func (gm *Gonm) GetMulti(dst interface{}) error + func (gm *Gonm) GetMultiByKeys(keys []*datastore.Key, dst interface{}) error + func (gm *Gonm) GetMultiConsistency(dst interface{}) error + func (gm *Gonm) Mutate(gmuts ...*Mutation) (ret []*datastore.Key, err error) + func (gm *Gonm) NewTransaction(otps ...datastore.TransactionOption) (gmtx *GonmTx, err error) + func (gm *Gonm) Put(src interface{}) (*datastore.Key, error) + func (gm *Gonm) PutMulti(src interface{}) ([]*datastore.Key, error) + func (gm *Gonm) Run(q *datastore.Query) (*datastore.Iterator, error) + func (gm *Gonm) RunInTransaction(f func(gm *Gonm) error, otps ...datastore.TransactionOption) (cmt *datastore.Commit, err error) + type GonmTx struct + Context context.Context + Transaction *datastore.Transaction + func (gmtx *GonmTx) Commit() (cm *datastore.Commit, err error) + func (gmtx *GonmTx) Delete(dst interface{}) error + func (gmtx *GonmTx) DeleteMulti(dst interface{}) error + func (gmtx *GonmTx) Get(dst interface{}) error + func (gmtx *GonmTx) GetMulti(dst interface{}) error + func (gmtx *GonmTx) Mutate(gmuts ...*Mutation) (ret []*datastore.Key, err error) + func (gmtx *GonmTx) Put(src interface{}) (*datastore.PendingKey, error) + func (gmtx *GonmTx) PutMulti(src interface{}) ([]*datastore.PendingKey, error) + func (gmtx *GonmTx) Rollback() (err error) + type Mutation struct + func NewDelete(dst interface{}) (gmut *Mutation) + func NewInsert(dst interface{}) (gmut *Mutation) + func NewUpdate(dst interface{}) (gmut *Mutation) + func NewUpsert(dst interface{}) (gmut *Mutation)