Skip to content

Commit 360ab6c

Browse files
committed
Added the Durability argument to RunOpts/ExecOpts
1 parent 808a30b commit 360ab6c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ r.Connect(
2323
- Added the `ReadOne` and `ReadAll` helper functions for quickly executing a query and scanning the result into a variable. For examples see the godocs.
2424
- Added the `Peek` and `Skip` functions to the `Cursor`.
2525
- Added support for referential arrays in structs
26+
- Added the `Durability` argument to `RunOpts`/`ExecOpts`
2627

2728
### Deprecated
2829
- Deprecated the root `Wait` term, `r.Table(...).Wait()` should now be used instead.

query.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ type RunOpts struct {
206206
DB interface{} `gorethink:"db,omitempty"`
207207
Db interface{} `gorethink:"db,omitempty"` // Deprecated
208208
Profile interface{} `gorethink:"profile,omitempty"`
209+
Durability interface{} `gorethink:"durability,omitempty"`
209210
UseOutdated interface{} `gorethink:"use_outdated,omitempty"` // Deprecated
210211
ArrayLimit interface{} `gorethink:"array_limit,omitempty"`
211212
TimeFormat interface{} `gorethink:"time_format,omitempty"`
@@ -310,6 +311,7 @@ type ExecOpts struct {
310311
DB interface{} `gorethink:"db,omitempty"`
311312
Db interface{} `gorethink:"db,omitempty"` // Deprecated
312313
Profile interface{} `gorethink:"profile,omitempty"`
314+
Durability interface{} `gorethink:"durability,omitempty"`
313315
UseOutdated interface{} `gorethink:"use_outdated,omitempty"` // Deprecated
314316
ArrayLimit interface{} `gorethink:"array_limit,omitempty"`
315317
TimeFormat interface{} `gorethink:"time_format,omitempty"`

0 commit comments

Comments
 (0)