Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: impl/dummy/dummy.go

Issue 1259593005: Add 'user friendly' datastore API. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: more docs Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « filter/featureBreaker/rds.go ('k') | impl/dummy/dummy_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/dummy/dummy.go
diff --git a/impl/dummy/dummy.go b/impl/dummy/dummy.go
index 1ec1ca7da9423370a802d8cd484749b914e2aa82..ff4d85ee1c92a14d9fbd7e40520b55ad365fe1e4 100644
--- a/impl/dummy/dummy.go
+++ b/impl/dummy/dummy.go
@@ -68,13 +68,13 @@ func (ds) NewKey(kind string, sid string, iid int64, par datastore.Key) datastor
return datastore.NewKey("dummy~appid", "", kind, sid, iid, par)
}
func (ds) DecodeKey(string) (datastore.Key, error) { panic(ni()) }
-func (ds) PutMulti([]datastore.Key, []datastore.PropertyLoadSaver, datastore.PutMultiCB) error {
+func (ds) PutMulti([]datastore.Key, []datastore.PropertyMap, datastore.PutMultiCB) error {
panic(ni())
}
func (ds) GetMulti([]datastore.Key, datastore.GetMultiCB) error { panic(ni()) }
func (ds) DeleteMulti([]datastore.Key, datastore.DeleteMultiCB) error { panic(ni()) }
func (ds) NewQuery(string) datastore.Query { panic(ni()) }
-func (ds) Run(datastore.Query, datastore.RunCB) error { panic(ni()) }
+func (ds) Run(datastore.Query, datastore.RawRunCB) error { panic(ni()) }
func (ds) RunInTransaction(func(context.Context) error, *datastore.TransactionOptions) error {
panic(ni())
}
@@ -84,7 +84,7 @@ var dummyDSInst = ds{}
// Datastore returns a dummy datastore.Interface implementation suitable
// for embedding. Every method panics with a message containing the name of the
// method which was unimplemented.
-func Datastore() datastore.Interface { return dummyDSInst }
+func Datastore() datastore.RawInterface { return dummyDSInst }
/////////////////////////////////// mc ////////////////////////////////////
« no previous file with comments | « filter/featureBreaker/rds.go ('k') | impl/dummy/dummy_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698