Unverified Commit c834824a authored by bigs's avatar bigs Committed by GitHub

Merge pull request #105 from bigs/doc/batch

Describe behavior of Batching datastores
parents 0938ba7c 3958f5fd
......@@ -75,6 +75,12 @@ type Datastore interface {
Query(q query.Query) (query.Results, error)
}
// Batching datastores support deferred, grouped updates to the database.
// `Batch`es do NOT have transactional semantics: updates to the underlying
// datastore are not guaranteed to occur in the same iota of time. Similarly,
// batched updates will not be flushed to the underlying datastore until
// `Commit` has been called. `Txn`s from a `TxnDatastore` have all the
// capabilities of a `Batch`, but the reverse is NOT true.
type Batching interface {
Datastore
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment