module SQLite3

sqlite3_open_v2 flags for SQLite3::Database.new

Constants

SQLITE_VERSION
SQLITE_VERSION_NUMBER
VERSION

Public Class Methods

const_missing(name) click to toggle source
# File lib/sqlite3/version.rb, line 18
  def self.const_missing(name)
    return super unless name == :Version
    warn("#{caller[0]}: SQLite::Version will be removed in sqlite3-ruby version 2.0.0
") if $VERBOSE
    VersionProxy
  end
libversion() click to toggle source
static VALUE libversion(VALUE UNUSED(klass))
{
  return INT2NUM(sqlite3_libversion_number());
}
threadsafe() click to toggle source

Returns the compile time setting of the SQLITE_THREADSAFE flag. See: www.sqlite.org/c3ref/threadsafe.html

static VALUE threadsafe_p(VALUE UNUSED(klass))
{
  return INT2NUM(sqlite3_threadsafe());
}
threadsafe?() click to toggle source

Was sqlite3 compiled with thread safety on?

# File lib/sqlite3.rb, line 14
def self.threadsafe?; threadsafe > 0; end