class Roma::Storage::SQLite3Storage
Public Class Methods
new()
click to toggle source
Calls superclass method
Roma::Storage::BasicStorage::new
# File lib/roma/storage/sqlite3_storage.rb 67 def initialize 68 super 69 @ext_name = 'sql3' 70 end
Private Instance Methods
close_db(hdb)
click to toggle source
# File lib/roma/storage/sqlite3_storage.rb 81 def close_db(hdb); hdb.close; end
open_db(fname)
click to toggle source
# File lib/roma/storage/sqlite3_storage.rb 74 def open_db(fname) 75 hdb = SQLite3::Database.new(fname) 76 hdb.extend(Roma::Storage::SQLite3_Ext) 77 hdb.create_table if hdb.tables.length == 0 78 hdb 79 end