We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:timeout
1 parent e35f3b8 commit 151780dCopy full SHA for 151780d
1 file changed
lib/ecto/adapters/sql.ex
@@ -234,6 +234,8 @@ defmodule Ecto.Adapters.SQL do
234
end
235
236
237
+ @timeout 15_000
238
+
239
@doc """
240
Converts the given query to SQL according to its kind and the
241
adapter in the given repository.
@@ -451,6 +453,7 @@ defmodule Ecto.Adapters.SQL do
451
453
## Options
452
454
455
* `:log` - When false, does not log the query
456
+ * `:timeout` - Execute request timeout, accepts: `:infinity` (default: `#{@timeout}`);
457
458
## Examples
459
@@ -508,6 +511,7 @@ defmodule Ecto.Adapters.SQL do
508
511
509
512
510
513
514
515
516
517
0 commit comments