Home
last modified time | relevance | path

Searched refs:isMemDb (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_meta_executor.cpp22 bool isMemDb, std::set<std::string> &outKeys) in GetMetaKeysByKeyPrefix() argument
55 errCode = GetAllKeys(statement, isMemDb, keys); in GetMetaKeysByKeyPrefix()
67 int SqliteMetaExecutor::GetAllKeys(sqlite3_stmt *statement, bool isMemDb, std::vector<Key> &keys) in GetAllKeys() argument
74 errCode = SQLiteUtils::StepWithRetry(statement, isMemDb); in GetAllKeys()
95 bool isMemDb, std::set<std::string> &devices) in GetExistsDevicesFromMeta() argument
97 …de = GetMetaKeysByKeyPrefix(DBConstant::DEVICEID_PREFIX_KEY, dbHandle, metaMode, isMemDb, devices); in GetExistsDevicesFromMeta()
102 …errCode = GetMetaKeysByKeyPrefix(DBConstant::QUERY_SYNC_PREFIX_KEY, dbHandle, metaMode, isMemDb, d… in GetExistsDevicesFromMeta()
107 …= GetMetaKeysByKeyPrefix(DBConstant::DELETE_SYNC_PREFIX_KEY, dbHandle, metaMode, isMemDb, devices); in GetExistsDevicesFromMeta()
H A Dsqlite_storage_engine.cpp54 …cutor *SQLiteStorageEngine::NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) in NewSQLiteStorageExecutor() argument
56 return new (std::nothrow) SQLiteStorageExecutor(dbHandle, isWrite, isMemDb); in NewSQLiteStorageExecutor()
79 bool isMemDb = option_.isMemDb; in CreateNewExecutor() local
91 handle = NewSQLiteStorageExecutor(dbHandle, isWrite, isMemDb); in CreateNewExecutor()
132 bool isMemDb = kvDBProp.GetBoolProp(KvDBProperties::MEMORY_MODE, false); in CheckEngineOption() local
134 if (isMemDb == false && in CheckEngineOption()
H A Dsqlite_meta_executor.h29 …tMetaKeysByKeyPrefix(const std::string &keyPre, sqlite3 *dbHandle, MetaMode metaMode, bool isMemDb,
32 static int GetAllKeys(sqlite3_stmt *statement, bool isMemDb, std::vector<Key> &keys);
35 bool isMemDb, std::set<std::string> &devices);
H A Dsqlite_single_ver_result_set.cpp51 int SQLiteSingleVerResultSet::Open(bool isMemDb) in Open() argument
60 return OpenForCacheFullEntryMode(isMemDb); in Open()
66 int SQLiteSingleVerResultSet::OpenForCacheFullEntryMode(bool isMemDb) in OpenForCacheFullEntryMode() argument
85 int64_t windowSize = isMemDb ? MEM_WINDOW_SIZE : (option_.cacheMaxSize * WINDOW_SIZE_MB_UNIT); in OpenForCacheFullEntryMode()
86 double scale = isMemDb ? MEM_WINDOW_SCALE : DEFAULT_WINDOW_SCALE; in OpenForCacheFullEntryMode()
99 option_.cacheMaxSize, count_, isMemDb); in OpenForCacheFullEntryMode()
H A Dsqlite_local_storage_engine.cpp26 … *SQLiteLocalStorageEngine::NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) in NewSQLiteStorageExecutor() argument
28 return new (std::nothrow) SQLiteLocalStorageExecutor(dbHandle, isWrite, isMemDb); in NewSQLiteStorageExecutor()
H A Dsqlite_storage_executor.cpp23 SQLiteStorageExecutor::SQLiteStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb) in SQLiteStorageExecutor() argument
26 isMemDb_(isMemDb) in SQLiteStorageExecutor()
H A Dsqlite_single_ver_result_set.h50 int Open(bool isMemDb) override;
83 int OpenForCacheFullEntryMode(bool isMemDb);
H A Dsqlite_single_ver_storage_engine.cpp552 …LiteSingleVerStorageEngine::NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) in NewSQLiteStorageExecutor() argument
554 …auto executor = new (std::nothrow) SQLiteSingleVerStorageExecutor(dbHandle, isWrite, isMemDb, exec… in NewSQLiteStorageExecutor()
570 if (!option_.isMemDb) { in TryToOpenMainDatabase()
728 if (option_.isMemDb) { in PreCreateExecutor()
772 if (option_.isMemDb || !isWrite) { in EndCreateExecutor()
811 if ((!option_.isMemDb) && (isOpenSESECE || (isNeedUpdateSecOpt_ && isCurrentSESECE))) { in TryAttachMetaDb()
861 handle = NewSQLiteStorageExecutor(dbHandle, isWrite, option_.isMemDb); in CreateNewExecutor()
886 …ader = std::make_unique<SQLiteSingleVerDatabaseUpgrader>(db, option_.securityOpt, option_.isMemDb); in Upgrade()
895 option_.securityOpt, option_.isMemDb); in Upgrade()
H A Dsqlite_local_storage_engine.h32 … StorageExecutor *NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) override;
H A Dsqlite_storage_executor.h26 SQLiteStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb);
H A Dsqlite_local_storage_executor.cpp40 …iteLocalStorageExecutor::SQLiteLocalStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb) in SQLiteLocalStorageExecutor() argument
41 : SQLiteStorageExecutor(dbHandle, writable, isMemDb) in SQLiteLocalStorageExecutor()
H A Dsqlite_storage_engine.h45 …virtual StorageExecutor *NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) =…
H A Dsqlite_local_storage_executor.h27 SQLiteLocalStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb);
H A Dsqlite_single_ver_database_upgrader.h26 … explicit SQLiteSingleVerDatabaseUpgrader(sqlite3 *db, const SecurityOption &secopt, bool isMemDb);
H A Dsqlite_utils.h78 static int StepWithRetry(sqlite3_stmt *statement, bool isMemDb = false);
204 static int StepNext(sqlite3_stmt *stmt, bool isMemDb = false);
H A Dsqlite_single_ver_storage_engine.h66 …virtual StorageExecutor *NewSQLiteStorageExecutor(sqlite3 *dbHandle, bool isWrite, bool isMemDb) o…
H A Dsqlite_single_ver_database_upgrader.cpp82 const SecurityOption &secopt, bool isMemDb) in SQLiteSingleVerDatabaseUpgrader() argument
85 isMemDB_(isMemDb), in SQLiteSingleVerDatabaseUpgrader()
H A Dsqlite_single_ver_storage_executor.h29 SQLiteSingleVerStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb);
30 …SQLiteSingleVerStorageExecutor(sqlite3 *dbHandle, bool writable, bool isMemDb, ExecutorState execu…
H A Dsqlite_utils.cpp219 if (!properties.isMemDb) { in OpenDatabase()
352 int SQLiteUtils::StepWithRetry(sqlite3_stmt *statement, bool isMemDb) in StepWithRetry() argument
362 if ((errCode == SQLITE_LOCKED) && isMemDb) { in StepWithRetry()
1021 if (!properties.isMemDb) { // LCOV_EXCL_BR_LINE in GetVersion()
2135 if (!properties.isMemDb) { in SetDataBaseProperty()
2435 int SQLiteUtils::StepNext(sqlite3_stmt *stmt, bool isMemDb) in StepNext() argument
2440 int errCode = SQLiteUtils::StepWithRetry(stmt, isMemDb); in StepNext()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Dikvdb_result_set.h39 virtual int Open(bool isMemDb) = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dkvdb_windowed_result_set.h30 int Open(bool isMemDb) override;
H A Dkvdb_windowed_result_set.cpp30 int KvDBWindowedResultSet::Open(bool isMemDb) in Open() argument
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_result_set.h32 int Open(bool isMemDb) override;
H A Drd_single_ver_result_set.cpp42 int RdSingleVerResultSet::Open(bool isMemDb) in Open() argument
44 (void)isMemDb; in Open()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dsingle_ver_utils.h36 bool isMemDb = false; member

12