module Amalgalite::SQLite3::Version

Encapsulation of the SQLite C library version

Constants

MAJOR

major version number of the SQLite C library

MINOR

minor version number of the SQLite C library

RELEASE

release version number of the SQLite C library

Public Class Methods

compiled_matches_runtime?() click to toggle source
# File lib/amalgalite/sqlite3/version.rb, line 31
def self.compiled_matches_runtime?
  self.compiled_version == self.runtime_version
end
Amalgalite::SQLite::Version.compiled_version → String click to toggle source

Return the compiletime version number as a string.

VALUE am_sqlite3_compiled_version(VALUE self)
{
    return rb_str_new2( SQLITE_VERSION );
}
compiled_version_number() click to toggle source

call-seql:

Amalgalite::SQLite::Version.compiled_version_number -> Fixnum

Return the compiletime library version from the embedded version of sqlite3.

VALUE am_sqlite3_compiled_version_number( VALUE self )
{
    return INT2FIX( SQLITE_VERSION_NUMBER );
}
Amalgalite::SQLite3::Version.to_s → String click to toggle source

Return the SQLite C library version number as a string

VALUE am_sqlite3_runtime_version(VALUE self)
{
    return rb_str_new2(sqlite3_libversion());
}
Amalgalite::SQLite3.Version.to_i → Fixnum click to toggle source

Return the SQLite C library version number as an integer

VALUE am_sqlite3_runtime_version_number(VALUE self)
{
    return INT2FIX(sqlite3_libversion_number());
}
Amalgalite::SQLite3::Version.to_a → [ MAJOR, MINOR, RELEASE ] click to toggle source

Return the SQLite C library version number as an array of MAJOR, MINOR, RELEASE

# File lib/amalgalite/sqlite3/version.rb, line 27
def self.to_a
  [ MAJOR, MINOR, RELEASE ]
end
Amalgalite::SQLite3.Version.to_i → Fixnum click to toggle source

Return the SQLite C library version number as an integer

VALUE am_sqlite3_runtime_version_number(VALUE self)
{
    return INT2FIX(sqlite3_libversion_number());
}
Amalgalite::SQLite3::Version.to_s → String click to toggle source

Return the SQLite C library version number as a string

VALUE am_sqlite3_runtime_version(VALUE self)
{
    return rb_str_new2(sqlite3_libversion());
}