В DELPHI, где определены константы:
const // DELPHI
SQLITE_OPEN_READONLY = 1;
SQLITE_OPEN_READWRITE = 2;
SQLITE_OPEN_CREATE = 4;
SQLITE_OPEN_DELETEONCLOSE = 8;
SQLITE_OPEN_EXCLUSIVE = 16;
SQLITE_OPEN_AUTOPROXY = 32;
SQLITE_OPEN_URI = 64;
SQLITE_OPEN_MEMORY = 128;
SQLITE_OPEN_MAIN_DB = 256;
SQLITE_OPEN_TEMP_DB = 512;
SQLITE_OPEN_TRANSIENT_DB = 1024;
SQLITE_OPEN_MAIN_JOURNAL = 2048;
SQLITE_OPEN_TEMP_JOURNAL = 4096;
SQLITE_OPEN_SUBJOURNAL = 8192;
SQLITE_OPEN_MASTER_JOURNAL = 16384;
SQLITE_OPEN_NOMUTEX = 32768;
SQLITE_OPEN_FULLMUTEX = 65536;
SQLITE_OPEN_SHAREDCACHE = 131072;
SQLITE_OPEN_PRIVATECACHE = 262144;
SQLITE_OPEN_WAL = 524288;
sqlite3_open_v2(PChar(CodePage1ToCodePage2(ReadString(_Data,_data_FileName, _prop_FileName), CP_ACP, CP_UTF8)), id,SQLITE_OPEN_READWRITE+SQLITE_OPEN_NOMUTEX,nil);