Class: DBI::DBD::SQLite3::Driver

### Home Classes Methods

### In Files

- lib/dbd/SQLite3.rb

### Parent

DBI::BaseDriver

### Methods

- ::new
- #connect
- #disconnect_all

### Files

- ChangeLog
- LICENSE
- README

### Class/Module Index

Quicksearch

- DBI
- DBI::DBD
- DBI::DBD::SQLite3
- DBI::DBD::SQLite3::Database
- DBI::DBD::SQLite3::Driver
- DBI::DBD::SQLite3::Statement

No matching classes.

# DBI::DBD::SQLite3::Driver

See DBI::BaseDriver.

### Public Class Methods

new() click to toggle source

    # 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.