SQLite3::Database class of PicoRuby
Type aliases
sqlite3_row_t
Hash[String, String] | Array[String]
Singleton methods
new
SQLite3::Database.new(String filename, ?results_as_hash: bool) ?{ (SQLite3::Database) -> void } -> SQLite3::Database
open
SQLite3::Database.open(String filename) ?{ (SQLite3::Database) -> void } -> SQLite3::Database
Instance methods
close
instance.close() -> void
closed?
instance.closed?() -> bool
execute
instance.execute(String sql, ?Array[sqlite3_var_t] bind_vars) -> Array[Array[sqlite3_var_t] | Hash[String, sqlite3_var_t]]
instance.execute(String sql, ?Array[sqlite3_var_t] bind_vars) { (Array[sqlite3_var_t]) -> Array[sqlite3_var_t] } -> nil
instance.execute(String sql, ?Array[sqlite3_var_t] bind_vars) { (Hash[String, sqlite3_var_t]) -> Hash[String, sqlite3_var_t] } -> nil
instance.execute(String sql, ?Array[sqlite3_var_t] bind_vars) { (untyped) -> untyped } -> nil
prepare
instance.prepare(String sql) { (SQLite3::Statement) -> untyped } -> nil
instance.prepare(String sql) -> SQLite3::Statement
Attr accessors
results_as_hash (accessor)
instance.results_as_hash -> bool