Skip to content

Commit

Permalink
Update lib/exqlite/sqlite3.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored Oct 14, 2024
1 parent 837664d commit f4262d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/exqlite/sqlite3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ defmodule Exqlite.Sqlite3 do
The `types` parameter is type of each column in the order they are specified
in the parameter `rows`. For example, `[["a", 1, 1.0]]` would have `types`
specified as `[:text, :integer, :float]`.
iex> {:ok, conn} = Sqlite3.open(":memory:", [:readonly])
iex> :ok = Sqlite3.execute(conn, "CREATE TABLE users (name TEXT)")
iex> {:ok, insert} = Sqlite3.prepare(conn, "INSERT INTO users (name) VALUES (?)")
Expand Down

0 comments on commit f4262d9

Please sign in to comment.