Module: SQLite3::Constants::Open

Defined in:
ext/sqlite3/sqlite3.c

Constant Summary collapse

READONLY =

length).max - 9 symbols.each { |s| printf %Q{ rb_define_const(mSqlite3Open, %-#pads INT2FIX(#s));n}, ‘“’ + s + ‘”,’ }

symbols = IO.readlines('sqlite3.h').map { |n| /\A#define\s+(SQLITE_OPEN_\w+)\s/ =~ n && $1 }.compact
pad = symbols.map(&
READWRITE =
INT2FIX(SQLITE_OPEN_READWRITE)
CREATE =
INT2FIX(SQLITE_OPEN_CREATE)
DELETEONCLOSE =
INT2FIX(SQLITE_OPEN_DELETEONCLOSE)
EXCLUSIVE =
INT2FIX(SQLITE_OPEN_EXCLUSIVE)
MAIN_DB =
INT2FIX(SQLITE_OPEN_MAIN_DB)
TEMP_DB =
INT2FIX(SQLITE_OPEN_TEMP_DB)
TRANSIENT_DB =
INT2FIX(SQLITE_OPEN_TRANSIENT_DB)
MAIN_JOURNAL =
INT2FIX(SQLITE_OPEN_MAIN_JOURNAL)
TEMP_JOURNAL =
INT2FIX(SQLITE_OPEN_TEMP_JOURNAL)
SUBJOURNAL =
INT2FIX(SQLITE_OPEN_SUBJOURNAL)
MASTER_JOURNAL =
INT2FIX(SQLITE_OPEN_MASTER_JOURNAL)
NOMUTEX =
INT2FIX(SQLITE_OPEN_NOMUTEX)
FULLMUTEX =
INT2FIX(SQLITE_OPEN_FULLMUTEX)
AUTOPROXY =

SQLITE_VERSION_NUMBER>=3007002

INT2FIX(SQLITE_OPEN_AUTOPROXY)
SHAREDCACHE =
INT2FIX(SQLITE_OPEN_SHAREDCACHE)
PRIVATECACHE =
INT2FIX(SQLITE_OPEN_PRIVATECACHE)
WAL =
INT2FIX(SQLITE_OPEN_WAL)
URI =

SQLITE_VERSION_NUMBER>=3007007

INT2FIX(SQLITE_OPEN_URI)
MEMORY =

SQLITE_VERSION_NUMBER>=3007013

INT2FIX(SQLITE_OPEN_MEMORY)