@@ -85,15 +85,15 @@ defmodule Sqlitex.Statement do
8585
8686 Also accepts the following keyword options:
8787
88- * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :esqlite3_timeout value in Application env.
88+ * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :db_timeout value in Application env.
8989
9090 ## Returns
9191
9292 * `{:ok, statement}` on success
9393 * See `:esqlite3.prepare` for errors.
9494 """
9595 def prepare ( db , sql , opts \\ [ ] ) do
96- timeout = Keyword . get ( opts , :db_timeout , Config . esqlite3_timeout )
96+ timeout = Keyword . get ( opts , :db_timeout , Config . db_timeout ( ) )
9797
9898 with { :ok , stmt } <- do_prepare ( db , sql , timeout ) ,
9999 { :ok , stmt } <- get_column_names ( stmt , timeout ) ,
@@ -124,7 +124,7 @@ defmodule Sqlitex.Statement do
124124
125125 Also accepts the following keyword options:
126126
127- * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :esqlite3_timeout value in Application env.
127+ * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :db_timeout value in Application env.
128128
129129 ## Returns
130130
@@ -142,7 +142,7 @@ defmodule Sqlitex.Statement do
142142 * `%Decimal` - Converted into a number.
143143 """
144144 def bind_values ( statement , values , opts \\ [ ] ) do
145- timeout = Keyword . get ( opts , :db_timeout , Config . esqlite3_timeout )
145+ timeout = Keyword . get ( opts , :db_timeout , Config . db_timeout ( ) )
146146
147147 case :esqlite3 . bind ( statement . statement , translate_bindings ( values ) , timeout ) do
148148 { :error , _ } = error -> error
@@ -215,15 +215,15 @@ defmodule Sqlitex.Statement do
215215
216216 Also accepts the following keyword options:
217217
218- * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :esqlite3_timeout value in Application env.
218+ * `db_timeout` - The time in ms allowed for the statement to run. Defaults to 5000, or the :db_timeout value in Application env.
219219
220220 ## Returns
221221
222222 * `:ok`
223223 * `{:error, error}`
224224 """
225225 def exec ( statement , opts \\ [ ] ) do
226- timeout = Keyword . get ( opts , :db_timeout , Config . esqlite3_timeout )
226+ timeout = Keyword . get ( opts , :db_timeout , Config . db_timeout ( ) )
227227
228228 case :esqlite3 . step ( statement . statement , timeout ) do
229229 # esqlite3.step returns some odd values, so lets translate them:
0 commit comments