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

Unified Diff: service/datastore/reflect.go

Issue 1259593005: Add 'user friendly' datastore API. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: 100% coverage of new code Created 5 years, 5 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
Index: service/datastore/reflect.go
diff --git a/service/rawdatastore/reflect.go b/service/datastore/reflect.go
similarity index 91%
rename from service/rawdatastore/reflect.go
rename to service/datastore/reflect.go
index 93817570ef7223a6c0e4b30f2e221ecdb3b151f9..c35db230d32c862a755aa7a4127ebf9b8ac63b3f 100644
--- a/service/rawdatastore/reflect.go
+++ b/service/datastore/reflect.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package rawdatastore
+package datastore
import (
"reflect"
@@ -13,7 +13,6 @@ import (
var (
typeOfBool = reflect.TypeOf(false)
- typeOfToggle = reflect.TypeOf(Auto)
typeOfBSKey = reflect.TypeOf(blobstore.Key(""))
typeOfByteSlice = reflect.TypeOf([]byte(nil))
typeOfByteString = reflect.TypeOf(ByteString(nil))
@@ -22,7 +21,9 @@ var (
typeOfInt64 = reflect.TypeOf(int64(0))
typeOfKey = reflect.TypeOf((*Key)(nil)).Elem()
typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem()
+ typeOfPropertyLoadSaver = reflect.TypeOf((*PropertyLoadSaver)(nil)).Elem()
typeOfString = reflect.TypeOf("")
typeOfTime = reflect.TypeOf(time.Time{})
+ typeOfToggle = reflect.TypeOf(Auto)
valueOfnilDSKey = reflect.Zero(typeOfKey)
)

Powered by Google App Engine
This is Rietveld 408576698