dbi

package
v0.0.0-...-f2e9bb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "standard"

Variables

This section is empty.

Functions

func New

func New(params map[string]interface{}) (db gae.DbInt, err error)

func NewEx

func NewEx(params map[string]interface{}) (db gae.DbExInt, err error)

required params:

context.Context
logger LogInt
appid string
name string

Types

type Blob

type Blob struct {
	Bb []byte `datastore:",noindex"`
}

type BlobWithDate

type BlobWithDate struct {
	Bb      []byte    `datastore:",noindex"`
	Updated time.Time `datastore:""`
}

type DbAppengine

type DbAppengine struct {
	// contains filtered or unexported fields
}

func (DbAppengine) Context

func (this DbAppengine) Context() context.Context

func (DbAppengine) CreateKey

func (this DbAppengine) CreateKey(stringID string, intID int64, parentK *gae.DbiKey) (k gae.DbiKey)

func (*DbAppengine) Delete

func (this *DbAppengine) Delete(key string) (err error)

func (*DbAppengine) DeleteAll

func (this *DbAppengine) DeleteAll(ks gae.DbiKeyArr) error

func (DbAppengine) Get

func (this DbAppengine) Get(k string) (bb []byte, err error)

func (*DbAppengine) GetAll

func (this *DbAppengine) GetAll(q gae.DbiQuery, dst interface{}) (arr gae.DbiKeyArr, err error)

func (*DbAppengine) GetKeysBeginsWith

func (this *DbAppengine) GetKeysBeginsWith(begink string) (ks gae.DbiKeyArr, err error)

func (DbAppengine) GetObject

func (this DbAppengine) GetObject(k string, o interface{}) (err error)

func (*DbAppengine) GetRangeKeys

func (this *DbAppengine) GetRangeKeys(begin, end string) (ks gae.DbiKeyArr, err error)

func (*DbAppengine) IsCloud

func (this *DbAppengine) IsCloud() bool

func (DbAppengine) IsDone

func (this DbAppengine) IsDone(err error) bool

func (DbAppengine) Kind

func (this DbAppengine) Kind() string

func (*DbAppengine) NewContext

func (this *DbAppengine) NewContext(c context.Context) gae.DbInt

func (DbAppengine) NewQuery

func (this DbAppengine) NewQuery() (q gae.DbiQuery)

func (*DbAppengine) Put

func (this *DbAppengine) Put(k string, bb []byte) (err error)

func (*DbAppengine) PutAll

func (this *DbAppengine) PutAll(ks gae.DbiKeyArr, src interface{}) (err error)

func (*DbAppengine) PutObject

func (this *DbAppengine) PutObject(k string, o interface{}) (err error)

func (*DbAppengine) Run

func (this *DbAppengine) Run(q gae.DbiQuery) (iter gae.DbiIterator)

func (*DbAppengine) RunInTransaction

func (this *DbAppengine) RunInTransaction(fn gae.DbiTransaction, opts gae.DbiTrxOpts) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL