Module: DBI::DBD::SQLite3

### Home Classes Methods

### In Files

- lib/dbd/SQLite3.rb

### Namespace

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

### Methods

- ::driver_name
- ::parse_type

### 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

DBD::SQLite3 - Database Driver for SQLite versions 3.x

Requires DBI and the 'sqlite3-ruby' gem to work.

Only things that extend DBI's results are documented.

### Constants

DESCRIPTION
VERSION

### Public Class Methods

driver_name() click to toggle source

returns 'SQLite3'

See DBI::TypeUtil#convert for more information.

    # File lib/dbd/SQLite3.rb, line 61
    def self.driver_name
        "SQLite3"
    end

parse_type(type_name) click to toggle source

Validates that the SQL has no literal NUL characters. (ASCII 0)

SQLite apparently really hates it when you do that.

It will raise DBI::DatabaseError should it find any.

    # File lib/dbd/SQLite3.rb, line 72
    def self.parse_type(type_name)
        # FIXME plucked from SQLite driver, this needs to be in DBI proper
        return ['varchar'] unless type_name
        type_name.match(/^([^\(\s]+)\s*(\(\s*(\d+)\s*(,\s*(\d+))?\s*\))?$/)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.