sqlite3_open_v2 flags for SQLite3::Database.new
# 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
static VALUE libversion(VALUE UNUSED(klass))
{
return INT2NUM(sqlite3_libversion_number());
}
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());
}
Was sqlite3 compiled with thread safety on?
# File lib/sqlite3.rb, line 14 def self.threadsafe?; threadsafe > 0; end