You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rethinkdb/connection.ex
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,8 @@ defmodule RethinkDB.Connection do
96
96
* `durability` - possible values are 'hard' and 'soft'. In soft durability mode RethinkDB will acknowledge the write immediately after receiving it, but before the write has been committed to disk.
97
97
* `noreply` - set to true to not receive the result object or cursor and return immediately.
98
98
* `profile` - whether or not to return a profile of the query’s execution (default: false).
99
+
* `time_format` - what format to return times in (default: :native). Set this to :raw if you want times returned as JSON objects for exporting.
100
+
* `binary_format` - what format to return binary data in (default: :native). Set this to :raw if you want the raw pseudotype.
99
101
"""
100
102
defrun(query,conn,opts\\[])do
101
103
timeout=Dict.get(opts,:timeout,5000)
@@ -110,7 +112,7 @@ defmodule RethinkDB.Connection do
`noreply_wait` ensures that previous queries with the noreply flag have been processed by the server. Note that this guarantee only applies to queries run on the given connection.
Copy file name to clipboardExpand all lines: lib/rethinkdb/query.ex
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,13 @@ defmodule RethinkDB.Query do
188
188
@doc"""
189
189
Encapsulate binary data within a query.
190
190
191
+
The type of data binary accepts depends on the client language. In
192
+
Elixir, it expects a Binary. Using a Buffer object within a query implies the use of binary and the ReQL driver will automatically perform the coercion.
193
+
194
+
Binary objects returned to the client in JavaScript will also be Node.js
195
+
Buffer objects. This can be changed with the binaryFormat option provided
196
+
to run to return “raw” objects.
197
+
191
198
Only a limited subset of ReQL commands may be chained after binary:
192
199
193
200
* coerce_to can coerce binary objects to string types
@@ -198,9 +205,9 @@ defmodule RethinkDB.Query do
198
205
* info will return information on a binary object.
0 commit comments