Skip to content

Commit f9e688a

Browse files
committed
Added new optional arguments to ChangesOpts and InsertOpts
1 parent 2c58fec commit f9e688a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
66

77
### Added
88
- Added `UnionWithOpts` term which allows `Union` to be called with optional arguments (such as `Interleave`)
9+
- Added `IncludeOffsets` and `IncludeTypes` optional arguments to `ChangesOpts`
10+
- Added `Conflict` optional argument to `InsertOpts`
911

1012
### Fixed
1113
- Fixed error when connecting to database as non-admin user

query_table.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ type ChangesOpts struct {
152152
Squash interface{} `gorethink:"squash,omitempty"`
153153
IncludeInitial interface{} `gorethink:"include_initial,omitempty"`
154154
IncludeStates interface{} `gorethink:"include_states,omitempty"`
155+
IncludeOffsets interface{} `gorethink:"include_offsets,omitempty"`
156+
IncludeTypes interface{} `gorethink:"include_types,omitempty"`
155157
ChangefeedQueueSize interface{} `gorethink:"changefeed_queue_size,omitempty"`
156158
}
157159

query_write.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type UpdateOpts struct {
3030
Durability interface{} `gorethink:"durability,omitempty"`
3131
ReturnChanges interface{} `gorethink:"return_changes,omitempty"`
3232
NotAtomic interface{} `gorethink:"non_atomic,omitempty"`
33+
Conflict interface{} `gorethink:"conflict,omitempty"`
3334
}
3435

3536
func (o *UpdateOpts) toMap() map[string]interface{} {

0 commit comments

Comments
 (0)