Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Commit 5fed361

Browse files
Connor RigbyConnorRigby
authored andcommitted
More docs.
1 parent 3220355 commit 5fed361

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/esqlite3/esqlite3.ex

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ defmodule Esqlite3 do
1919
@typedoc "SQL binary or charlist."
2020
@type sql :: iodata
2121

22-
@doc "Opens a sqlite3 database mentioned in Filename."
22+
@doc "Opens a sqlite3 database mentioned in filename."
2323
@spec open(filename) :: {:ok, connection} | error_tup2
2424
def open(filename), do: open(filename, @default_timeout)
2525

26-
@doc "Opens a sqlite3 database mentioned in Filename."
26+
@doc "Opens a sqlite3 database mentioned in filename."
2727
@spec open(filename, timeout) :: {:ok, connection} | error_tup2
2828
def open(filename, timeout) do
2929
filename = to_charlist(filename)
@@ -38,11 +38,11 @@ defmodule Esqlite3 do
3838
end
3939
end
4040

41-
@doc "Execute Sql statement, returns the number of affected rows."
41+
@doc "Execute sql statement, returns the number of affected rows."
4242
@spec exec(sql, connection) :: :ok | error_tup2
4343
def exec(sql, connection), do: exec(sql, connection, @default_timeout)
4444

45-
@doc "Execute Sql statement, returns the number of affected rows."
45+
@doc "Execute sql statement, returns the number of affected rows."
4646
@spec exec(sql, connection, timeout) :: :ok | error_tup2
4747
def exec(sql, connection, timeout)
4848

@@ -184,11 +184,11 @@ defmodule Esqlite3 do
184184
receive_answer(ref, timeout)
185185
end
186186

187-
@doc "Close the database"
187+
@doc "Close the database connection."
188188
@spec close(connection) :: :ok | error_tup2
189189
def close(connection), do: close(connection, @default_timeout)
190190

191-
@doc "Close the database"
191+
@doc "Close the database connection."
192192
@spec close(connection, timeout) :: :ok | error_tup2
193193
def close(connection, timeout)
194194

@@ -220,7 +220,9 @@ defmodule Esqlite3 do
220220
end
221221
end
222222

223-
@doc "Enumerate results with a function `f`."
223+
@doc """
224+
Enumerate `sql` applying `f` to each result.
225+
"""
224226
def map(f, sql, connection) do
225227
case prepare(sql, connection) do
226228
{:ok, statement} -> map_s(f, statement)

0 commit comments

Comments
 (0)