Trying to shoe-horn in sqlite. This needs a lot of work. SQLiteConnect needs to initialize itself... reset tables on command and build new ones. Then start hacking at EntityFactory to get active records back.
This commit is contained in:
parent
8fa1664bcb
commit
5ea17719be
5 changed files with 104 additions and 35 deletions
14
sqlite_connect.rb
Normal file
14
sqlite_connect.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#require 'rubygems' # not necessary for Ruby 1.9
|
||||
require 'sqlite3'
|
||||
|
||||
class SQLiteConnect
|
||||
@db = nil
|
||||
|
||||
def initialize(dbname)
|
||||
@db = SQLite3::Database.open('dbname')
|
||||
end
|
||||
|
||||
def execute(query)
|
||||
return @db.execute(query)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue