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) |
} |