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

Side by Side 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, 2 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 unified diff | Download patch
« service/datastore/index.go ('K') | « service/datastore/index_test.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 // TestingSnapshot is an opaque implementation-defined snapshot type. 7 // TestingSnapshot is an opaque implementation-defined snapshot type.
8 type TestingSnapshot interface { 8 type TestingSnapshot interface {
9 ImATestingSnapshot() 9 ImATestingSnapshot()
10 } 10 }
(...skipping 30 matching lines...) Expand all
41 // transaction body pretending transaction conflicts happens. 0 (default ) 41 // transaction body pretending transaction conflicts happens. 0 (default )
42 // means commit succeeds on the first attempt (no retries). 42 // means commit succeeds on the first attempt (no retries).
43 SetTransactionRetryCount(int) 43 SetTransactionRetryCount(int)
44 44
45 // Consistent controls the eventual consistency behavior of the testing 45 // Consistent controls the eventual consistency behavior of the testing
46 // implementation. If it is called with true, then this datastore 46 // implementation. If it is called with true, then this datastore
47 // implementation will be always-consistent, instead of eventually-consi stent. 47 // implementation will be always-consistent, instead of eventually-consi stent.
48 // 48 //
49 // By default the datastore is eventually consistent. 49 // By default the datastore is eventually consistent.
50 Consistent(always bool) 50 Consistent(always bool)
51
52 // 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(
53 // any time the datastore encounters a missing index, it will silently c reate
54 // one and allow the query to succeed. If it's false, then the query wil l
55 // return an error describing the index which could be added with AddInd exes.
56 //
57 // By default this is false.
58 AutoIndex(bool)
51 } 59 }
OLDNEW
« 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