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
/// Runs a READ ONLY query on the configured database using a connection from the connection pool,
198
+
/// It doesn't return any [`DetachedRowStream`] as the `run` abstraction discards any stream.
199
+
///
200
+
/// This operation retires the query on certain failures.
201
+
/// All errors with the `Transient` error class as well as a few other error classes are considered retryable.
202
+
/// This includes errors during a leader election or when the transaction resources on the server (memory, handles, ...) are exhausted.
203
+
/// Retries happen with an exponential backoff until a retry delay exceeds 60s, at which point the query fails with the last error as it would without any retry.
204
+
///
205
+
/// Use [`Graph::run`] for cases where you just want a write operation
206
+
///
207
+
/// use [`Graph::execute`] when you are interested in the result stream
/// Executes a query on the configured database and returns a [`DetachedRowStream`]
270
+
/// Executes a READ/WRITE query on the configured database and returns a [`DetachedRowStream`]
209
271
///
210
272
/// This operation retires the query on certain failures.
211
273
/// All errors with the `Transient` error class as well as a few other error classes are considered retryable.
@@ -216,17 +278,48 @@ impl Graph {
216
278
.await
217
279
}
218
280
219
-
/// Executes a query on the provided database and returns a [`DetachedRowStream`]
281
+
/// Executes a query READ on the configured database and returns a [`DetachedRowStream`]
220
282
///
221
283
/// This operation retires the query on certain failures.
222
284
/// All errors with the `Transient` error class as well as a few other error classes are considered retryable.
223
285
/// This includes errors during a leader election or when the transaction resources on the server (memory, handles, ...) are exhausted.
224
286
/// Retries happen with an exponential backoff until a retry delay exceeds 60s, at which point the query fails with the last error as it would without any retry.
/// Executes a query on the provided database and returns a [`DetachedRowStream`]
293
+
///
294
+
/// This operation retires the query on certain failures.
295
+
/// All errors with the `Transient` error class as well as a few other error classes are considered retryable.
296
+
/// This includes errors during a leader election or when the transaction resources on the server (memory, handles, ...) are exhausted.
297
+
/// Retries happen with an exponential backoff until a retry delay exceeds 60s, at which point the query fails with the last error as it would without any retry.
0 commit comments