module 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