Class: Amalgalite::MemoryDatabase
- Defined in:
- lib/amalgalite/memory_database.rb
Overview
The encapsulation of a connection to an SQLite3 in-memory database.
Open an in-memory database:
db = Amalgalite::MemoryDatabase.new
Constant Summary
Constants inherited from Database
Instance Attribute Summary
Attributes inherited from Database
#aggregates, #api, #functions, #profile_tap, #trace_tap, #type_map
Instance Method Summary collapse
-
#initialize ⇒ MemoryDatabase
constructor
A new instance of MemoryDatabase.
Methods inherited from Database
#autocommit?, #clear_taps!, #close, #commit, #define_aggregate, #define_busy_handler, #define_function, #define_progress_handler, #encoding, #escape, #exclusive_transaction, #execute, #execute_batch, #first_row_from, #first_value_from, #immediate_transaction, #import, #import_csv_to_table, #in_transaction?, #interrupt!, #last_insert_rowid, #open?, #pragma, #prepare, #quote, #release, #reload_schema!, #remove_aggregate, #remove_busy_handler, #remove_function, #remove_progress_handler, #replicate_to, #rollback, #rollback_to, #row_changes, #savepoint, #schema, #total_changes, #transaction, #utf16?
Constructor Details
#initialize ⇒ MemoryDatabase
Returns a new instance of MemoryDatabase.
11 12 13 |
# File 'lib/amalgalite/memory_database.rb', line 11 def initialize super( ":memory:" ) end |