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

Unified Diff: service/datastore/testable.go

Issue 1364333002: Add AutoIndex (Closed) Base URL: https://github.com/luci/gae.git@add_full_consistency
Patch Set: Created 5 years, 3 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
« service/datastore/index.go ('K') | « service/datastore/index_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/testable.go
diff --git a/service/datastore/testable.go b/service/datastore/testable.go
index 0ba6c4a2c0a0e73e1a1490b529ef8d068898fb64..4bff2400b7c0f4ccb8cab0671c33807e392486c7 100644
--- a/service/datastore/testable.go
+++ b/service/datastore/testable.go
@@ -48,4 +48,12 @@ type Testable interface {
//
// By default the datastore is eventually consistent.
Consistent(always bool)
+
+ // AutoIndex controls the index creation behavior. If it is set to true, then
Vadim Sh. 2015/09/24 19:17:29 It probably doesn't make sense without Consistent(
+ // any time the datastore encounters a missing index, it will silently create
+ // one and allow the query to succeed. If it's false, then the query will
+ // return an error describing the index which could be added with AddIndexes.
+ //
+ // By default this is false.
+ AutoIndex(bool)
}
« service/datastore/index.go ('K') | « service/datastore/index_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698