module SQLite3
SQLite3 is a wrapper around the popular database sqlite.
For an example of usage, see SQLite3::Database.
Constants
- SQLITE_VERSION
- SQLITE_VERSION_NUMBER
- VERSION
Public Class Methods
const_missing(name)
click to toggle source
Calls superclass method
# 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()); }
sqlcipher?()
click to toggle source
static VALUE using_sqlcipher(VALUE UNUSED(klass)) { #ifdef USING_SQLCIPHER return Qtrue; #else return Qfalse; #endif }
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