@@ -19,11 +19,11 @@ defmodule Esqlite3 do
19
19
@ typedoc "SQL binary or charlist."
20
20
@ type sql :: iodata
21
21
22
- @ doc "Opens a sqlite3 database mentioned in Filename ."
22
+ @ doc "Opens a sqlite3 database mentioned in filename ."
23
23
@ spec open ( filename ) :: { :ok , connection } | error_tup2
24
24
def open ( filename ) , do: open ( filename , @ default_timeout )
25
25
26
- @ doc "Opens a sqlite3 database mentioned in Filename ."
26
+ @ doc "Opens a sqlite3 database mentioned in filename ."
27
27
@ spec open ( filename , timeout ) :: { :ok , connection } | error_tup2
28
28
def open ( filename , timeout ) do
29
29
filename = to_charlist ( filename )
@@ -38,11 +38,11 @@ defmodule Esqlite3 do
38
38
end
39
39
end
40
40
41
- @ doc "Execute Sql statement, returns the number of affected rows."
41
+ @ doc "Execute sql statement, returns the number of affected rows."
42
42
@ spec exec ( sql , connection ) :: :ok | error_tup2
43
43
def exec ( sql , connection ) , do: exec ( sql , connection , @ default_timeout )
44
44
45
- @ doc "Execute Sql statement, returns the number of affected rows."
45
+ @ doc "Execute sql statement, returns the number of affected rows."
46
46
@ spec exec ( sql , connection , timeout ) :: :ok | error_tup2
47
47
def exec ( sql , connection , timeout )
48
48
@@ -184,11 +184,11 @@ defmodule Esqlite3 do
184
184
receive_answer ( ref , timeout )
185
185
end
186
186
187
- @ doc "Close the database"
187
+ @ doc "Close the database connection. "
188
188
@ spec close ( connection ) :: :ok | error_tup2
189
189
def close ( connection ) , do: close ( connection , @ default_timeout )
190
190
191
- @ doc "Close the database"
191
+ @ doc "Close the database connection. "
192
192
@ spec close ( connection , timeout ) :: :ok | error_tup2
193
193
def close ( connection , timeout )
194
194
@@ -220,7 +220,9 @@ defmodule Esqlite3 do
220
220
end
221
221
end
222
222
223
- @ doc "Enumerate results with a function `f`."
223
+ @ doc """
224
+ Enumerate `sql` applying `f` to each result.
225
+ """
224
226
def map ( f , sql , connection ) do
225
227
case prepare ( sql , connection ) do
226
228
{ :ok , statement } -> map_s ( f , statement )
0 commit comments