| OLD | NEW |
| 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 memory | 5 package memory |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "errors" | 8 "errors" |
| 9 | 9 |
| 10 "golang.org/x/net/context" | 10 "golang.org/x/net/context" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 panic("NOT IMPLEMENTED") | 119 panic("NOT IMPLEMENTED") |
| 120 } | 120 } |
| 121 | 121 |
| 122 func (*txnDsImpl) RunInTransaction(func(c context.Context) error, *ds.Transactio
nOptions) error { | 122 func (*txnDsImpl) RunInTransaction(func(c context.Context) error, *ds.Transactio
nOptions) error { |
| 123 return errors.New("datastore: nested transactions are not supported") | 123 return errors.New("datastore: nested transactions are not supported") |
| 124 } | 124 } |
| 125 | 125 |
| 126 func (d *txnDsImpl) NewQuery(kind string) ds.Query { | 126 func (d *txnDsImpl) NewQuery(kind string) ds.Query { |
| 127 return &queryImpl{ns: d.ns, kind: kind} | 127 return &queryImpl{ns: d.ns, kind: kind} |
| 128 } | 128 } |
| OLD | NEW |