class DBI::DBD::SQLite3::Driver

See DBI::BaseDriver.

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/dbd/SQLite3.rb, line 82
def initialize
    @dbs = []
    super "0.4.0"
end

Public Instance Methods

connect(dbname, user, auth, attr) click to toggle source
# File lib/dbd/SQLite3.rb, line 87
def connect(dbname, user, auth, attr)
    raise DBI::InterfaceError, "dbname must be a string" unless dbname.kind_of? String
    raise DBI::InterfaceError, "dbname must have some length" unless dbname.length > 0
    raise DBI::InterfaceError, "attrs must be a hash" unless attr.kind_of? Hash
    db = DBI::DBD::SQLite3::Database.new(dbname, attr)
    @dbs.push(db)
    db
end
disconnect_all() click to toggle source
# File lib/dbd/SQLite3.rb, line 96
def disconnect_all()
    @dbs.each{|db| db.disconnect()}
end