File: //usr/local/rvm/gems/ruby-2.6.8/doc/sqlite3-1.4.2/ri/SQLite3/Database/cdesc-Database.ri
U:RDoc::NormalClass[iI"
Database:ETI"SQLite3::Database;TI"Object;To:RDoc::Markup::Document:@parts[o;;[ :
@fileI"ext/sqlite3/database.c;T:0@omit_headings_from_table_of_contents_below0o;;[
o:RDoc::Markup::Paragraph;[I"PThe Database class encapsulates a single connection to a SQLite3 database. ;TI"'Its usage is very straightforward:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"require 'sqlite3'
;TI"
;TI"0SQLite3::Database.new( "data.db" ) do |db|
;TI"4 db.execute( "select * from table" ) do |row|
;TI" p row
;TI" end
;TI" end
;T:@format0o;;[I"KIt wraps the lower-level methods provides by the selected driver, and ;TI"Jincludes the Pragmas module for access to various pragma convenience ;TI"
methods.;T@o;;[
I"MThe Database class provides type translation services as well, by which ;TI"Jthe SQLite3 data types (which are all represented as strings) may be ;TI"Iconverted into their corresponding types (as defined in the schemas ;TI"Mfor their tables). This translation only occurs when querying data from ;TI"Athe database--insertions and updates are all still typeless.;T@o;;[ I"MFurthermore, the Database class has been designed to work well with the ;TI"HArrayFields module from Ara Howard. If you require the ArrayFields ;TI"Nmodule before performing a query, and if you have not enabled results as ;TI"Bhashes, then the results will all be indexible by field name.;T; I"lib/sqlite3/database.rb;T;
0; 0;
0[[
I"collations;TI"R;T:publicFI"lib/sqlite3/database.rb;T[
I"results_as_hash;TI"RW;T;F@6[U:RDoc::Constant[i I"NULL_TRANSLATOR;TI"'SQLite3::Database::NULL_TRANSLATOR;T;0o;;[ ; @1;
0@1@cRDoc::NormalClass0[[I"Pragmas;To;;[ ; @1;
0@6[[I"
class;T[[;[[I"
arity;T@6[I"
finalize;T@6[I" name;T@6[I"new;T@6[I"
quote;T@6[I" step;T@6[I"
template;T@6[:protected[ [:private[ [I"
instance;T[[;[1[I"authorizer;T@6[I"authorizer=;TI"ext/sqlite3/database.c;T[I"busy_handler;T@h[I"busy_timeout;T@6[I"busy_timeout=;T@h[I"changes;T@h[I"
close;T@h[I"closed?;T@h[I"collation;T@h[I"commit;T@6[I"complete?;T@h[I"create_aggregate;T@6[I"create_aggregate_handler;T@6[I"create_function;T@6[I"define_aggregator;T@6[I"define_function;T@h[I"define_function_with_flags;T@h[I"enable_load_extension;T@h[I"
encoding;T@h[I"errcode;T@h[I"errmsg;T@h[I"execute;T@6[I"
execute2;T@6[I"execute_batch;T@6[I"execute_batch2;T@6[I"extended_result_codes=;T@h[I"
filename;T@6[I"
finalize;T@6[I"get_first_row;T@6[I"get_first_value;T@6[I"interrupt;T@h[I"last_insert_row_id;T@h[I"load_extension;T@h[I"prepare;T@6[I"
query;T@6[I"readonly?;T@6[I"
rollback;T@6[I" step;T@6[I"total_changes;T@h[I"
trace;T@h[I"transaction;T@6[I"transaction_active?;T@h[I"translate_from_db;T@6[I"translator;T@6[;[ [;[
[I"db_filename;T@h[I"exec_batch;T@h[I"make_type_translator;T@6[I"open16;T@h[I"open_v2;T@h[ [U:RDoc::Context::Section[i 0o;;[ ; 0;
0[I"ext/sqlite3/backup.c;T@1I"SQLite3;TcRDoc::NormalModule