Home
last modified time | relevance | path

Searched refs:BindBlobToStatement (Results 1 – 25 of 41) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/
H A Dsqlite_store_executor_impl.cpp119 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in PutData()
120 RDSQLiteUtils::BindBlobToStatement(stmt, 2, value); in PutData()
148 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in InsertData()
149 RDSQLiteUtils::BindBlobToStatement(stmt, 2, value); in InsertData()
175 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in GetDataByKey()
202 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in GetDataById()
257 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in GetDataByFilter()
306 RDSQLiteUtils::BindBlobToStatement(stmt, 1, key); in DelData()
H A Drd_sqlite_utils.h39 …static int BindBlobToStatement(sqlite3_stmt *statement, int index, const std::vector<uint8_t> &val…
H A Drd_sqlite_utils.cpp152 int RDSQLiteUtils::BindBlobToStatement(sqlite3_stmt *statement, int index, const std::vector<uint8_… in BindBlobToStatement() function in DocumentDB::RDSQLiteUtils
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_local_storage_executor.cpp55 errCode = SQLiteUtils::BindBlobToStatement(statement, SELECT_BIND_KEY_INDEX, key, false); in Get()
199 errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_KEY_INDEX, key, false); in Put()
205 errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_VAL_INDEX, value, true); in Put()
232 errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_KEY_INDEX, key, false); in Delete()
H A Dsqlite_single_ver_storage_executor_extend.cpp54 errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, useVect, true); in CloudExcuteRemoveOrUpdate()
67 … errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, devVect, true); // only one arg. in CloudExcuteRemoveOrUpdate()
114 … errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, devVect, true); // only one arg. in CloudCheckDataExist()
293 errCode = SQLiteUtils::BindBlobToStatement(stmt, BIND_GET_ENTRIES_DEVICE_INDEX, blobDev); in GetEntries()
324 errCode = SQLiteUtils::BindBlobToStatement(stmt, BIND_HASH_KEY_INDEX, hashKey); in RemoveCloudUploadFlag()
H A Dsqlite_single_ver_storage_executor_cache.cpp178 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, dataItem.value, true); in MigrateRmDevData()
515 …errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_SYNC_KEY_INDEX, dataItem.key, fal… in BindSyncDataInCacheMode()
523 …errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_SYNC_VAL_INDEX, dataItem.value, t… in BindSyncDataInCacheMode()
548 …int errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_SYNC_HASH_KEY_INDEX, hashKey,… in BindPrimaryKeySyncDataInCacheMode()
581 …int errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_SYNC_DEV_INDEX, devVect, true… in BindDevSyncDataInCacheMode()
588 …errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_SYNC_ORI_DEV_INDEX, origDevVect, … in BindDevSyncDataInCacheMode()
711 int errCode = SQLiteUtils::BindBlobToStatement(statement, in BindLocalDataInCacheMode()
722 …errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_LOCAL_KEY_INDEX, dataItem.key, fa… in BindLocalDataInCacheMode()
730 …errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_CACHE_LOCAL_VAL_INDEX, dataItem.value, … in BindLocalDataInCacheMode()
950 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // first arg. in DeleteMetaData()
H A Dsqlite_cloud_kv_executor_utils.cpp317 errCode = SQLiteUtils::BindBlobToStatement(stmt, index++, key); in GetLogInfoInner()
523 errCode = SQLiteUtils::BindBlobToStatement(logStmt, ++index, dataItem.hashKey); in BindOnlyUpdateLogStmt()
650 errCode = SQLiteUtils::BindBlobToStatement(logStmt, index++, dataItem.hashKey); in BindUpdateLogStmt()
686 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, dataItem.hashKey); in BindDataStmt()
697 int errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, dataItem.key); in BindSyncDataStmt()
702 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, dataItem.value); in BindSyncDataStmt()
719 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, bytes); in BindSyncDataStmt()
725 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, bytes); in BindSyncDataStmt()
731 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, index++, dataItem.hashKey); in BindSyncDataStmt()
960 errCode = SQLiteUtils::BindBlobToStatement(dataStmt, currentBindIndex++, dataItem.hashKey); in BindUpdateTimestampStmt()
[all …]
H A Dsqlite_multi_ver_transaction.cpp917 …errCode = SQLiteUtils::BindBlobToStatement(statement, 2, hashKey, false); // 2nd argument is hashK… in GetOverwrittenNonClearTypeEntries()
966 …errCode = SQLiteUtils::BindBlobToStatement(statement, 2, hashKey, false); // 2nd argument is hashK… in DeleteEntriesByHashKey()
1207 … int errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // first argument is key in BindQueryEntryArgs()
1232 … int errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_INSERT_KEY_INDEX, emptyKey, true); in BindAddRecordKeysToStatement()
1237 … errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_INSERT_HASH_KEY_INDEX, key, false); in BindAddRecordKeysToStatement()
1243 int errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_INSERT_KEY_INDEX, key, false); in BindAddRecordKeysToStatement()
1253 … errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_INSERT_HASH_KEY_INDEX, hashKey, false); in BindAddRecordKeysToStatement()
1269 errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_INSERT_VAL_INDEX, value, true); in BindAddRecordArgs()
1332 errCode = SQLiteUtils::BindBlobToStatement(statements.hashFilterStatement, 1, hashKey, false); in GetOneEntry()
1385 … errCode = SQLiteUtils::BindBlobToStatement(statement, 1, hashKey, false); // key is the first arg in CheckIfNeedSaveRecord()
[all …]
H A Dsqlite_single_ver_storage_executor.cpp131 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // first arg. in GetKvData()
161 int errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_KV_KEY_INDEX, key, false); in BindPutKvData()
167 errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_KV_VAL_INDEX, value, true); in BindPutKvData()
180 … errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_LOCAL_HASH_KEY_INDEX, hashKey, false); in BindPutKvData()
1095 … errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_KV_KEY_INDEX, identifier->key, false); in GetDeviceIdentifier()
1475 int errCode = SQLiteUtils::BindBlobToStatement(statement, hashKeyIndex, hashKey, false); in BindSavedSyncData()
1493 … errCode = SQLiteUtils::BindBlobToStatement(statement, BIND_SYNC_VAL_INDEX, dataItem.value, true); in BindSavedSyncData()
1586 int errCode = SQLiteUtils::BindBlobToStatement(statement, 1, hashKey, false); // 1st arg. in GetSyncDataPreByHashKey()
1641 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); in DeleteLocalDataInner()
1687 errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, hashKey, false); in EraseSyncData()
[all …]
H A Dsqlite_meta_executor.cpp47 …errCode = SQLiteUtils::BindBlobToStatement(statement, 1, keyPrefix); // 1: bind index for prefix k… in GetMetaKeysByKeyPrefix()
H A Dsqlite_utils.cpp290 int SQLiteUtils::BindBlobToStatement(sqlite3_stmt *statement, int index, const std::vector<uint8_t>… in BindBlobToStatement() function in DistributedDB::SQLiteUtils
385 int errCode = BindBlobToStatement(statement, index, keyPrefix, true); in BindPrefixKey()
1225 errCode = BindBlobToStatement(statement, BIND_KEY_INDEX, schemaKey, false); in SaveSchema()
1233 errCode = BindBlobToStatement(statement, BIND_VAL_INDEX, schemaValue, false); in SaveSchema()
1272 errCode = BindBlobToStatement(statement, 1, schemakey, false); in GetSchema()
1623 errCode = BindBlobToStatement(statement, 1, schemakey, false); in GetRelationalSchema()
1664 errCode = BindBlobToStatement(statement, 1, logTableKey, false); in GetLogTableVersion()
1772 errCode = SQLiteUtils::BindBlobToStatement(stmt, BIND_KEY_INDEX, key, false); in UpdateMetaDataWithinTrigger()
2345 errCode = SQLiteUtils::BindBlobToStatement(statement, cid, blobData, true); in BindDataValueByType()
H A Dsqlite_utils.h71 …static int BindBlobToStatement(sqlite3_stmt *statement, int index, const std::vector<uint8_t> &val…
H A Dsqlite_single_ver_database_upgrader.cpp408 errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, key); // 1 is time offset in GetLocalTimeOffset()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_sqlite_utils_test.cpp90 (void)SQLiteUtils::BindBlobToStatement(stmt, 2, blob); // 2: bind index in __anona04736ca0202()
119 (void)SQLiteUtils::BindBlobToStatement(stmt, 2, blob); // 2: bind index in __anona04736ca0402()
147 (void)SQLiteUtils::BindBlobToStatement(stmt, 2, blob); // 2: bind index in __anona04736ca0602()
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp129 … if (SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false) != E_OK) { // 1 is asset index in CreateAndInitUserTable()
132 …if (SQLiteUtils::BindBlobToStatement(stmt, 2, assetsBlob, false) != E_OK) { // 2 is index of asser… in CreateAndInitUserTable()
171 EXPECT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, hashKey, false), E_OK); in InitLogData()
202 EXPECT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, hashKey, false), E_OK); in UpdateLogGidAndHashKey()
344 if (SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false) == E_OK) { in UpdateLocalAsset()
1265 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, result); // 1 means hashkey index
1321 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, result); // 1 means hashkey index
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_utils.cpp205 errCode = SQLiteUtils::BindBlobToStatement(statement, cid, value); in BindExtendStatementByType()
216 errCode = SQLiteUtils::BindBlobToStatement(statement, cid, val); in BindExtendStatementByType()
227 errCode = SQLiteUtils::BindBlobToStatement(statement, cid, val); in BindExtendStatementByType()
H A Dsqlite_single_ver_relational_storage_executor_extend.cpp217 errCode = SQLiteUtils::BindBlobToStatement(selectStmt, index, hashKey, true); in GetQueryLogStatement()
404 errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, key, false); // first arg. in GetCursor()
440 errCode = SQLiteUtils::BindBlobToStatement(stmt, index, key, false); in SetCursor()
758 int errCode = SQLiteUtils::BindBlobToStatement(insertLogStmt, 12, hashKey); // 12 is hash_key in BindStatusSubQueryHashKeyStatement()
764 errCode = SQLiteUtils::BindBlobToStatement(insertLogStmt, 13, hashKey); // 13 is hash_key in BindStatusSubQueryHashKeyStatement()
780 errCode = SQLiteUtils::BindBlobToStatement(insertLogStmt, 7, hashKey); // 7 is hash_key in BindHashKeyAndGidToInsertLogStatement()
1049 return SQLiteUtils::BindBlobToStatement(updateLogStmt, colNames.size() + 1, hashKey); in BindValueToUpdateLogStatement()
1160 errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, hashKey); // 1 is bind index of hashKey in UpdateRecordStatus()
H A Dsqlite_single_ver_relational_storage_executor.cpp676 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // first arg. in GetKvData()
705 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // 1 means key index in PutKvData()
711 errCode = SQLiteUtils::BindBlobToStatement(statement, 2, value, true); // 2 means value index in PutKvData()
736 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, key, false); // first arg. in DeleteMetaData()
793 …int errCode = SQLiteUtils::BindBlobToStatement(queryStmt, 1, dataItem.hashKey); // 1 means hashke… in GetLogInfoPre()
837 SQLiteUtils::BindBlobToStatement(statement, 2, originDev); // 2 means ori_dev index in SaveSyncLog()
841 SQLiteUtils::BindBlobToStatement(statement, 6, logInfoBind.hashKey); // 6 means hashKey index in SaveSyncLog()
860 …int errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, dataItem.hashKey); // 1 means hash_key ind… in DeleteSyncDataItem()
922 …int errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, dataItem.hashKey); // 1 means hashkey index in DeleteSyncLog()
H A Dsqlite_single_ver_relational_storage_extend_executor.cpp272 errCode = SQLiteUtils::BindBlobToStatement(stmt, 2, hashKey); // 2 means the second bind args in BindUpdateVersionStatement()
1241 errCode = SQLiteUtils::BindBlobToStatement(stmt, 1, assetsValue, false); in CleanAssetsIdOnUserTable()
1325 errCode = SQLiteUtils::BindBlobToStatement(stmt, index, hashKey); in InitGetAssetStmt()
1541 errCode = SQLiteUtils::BindBlobToStatement(stmt, index, blobValue, false); in BindAssetToBlobStatement()
1557 errCode = SQLiteUtils::BindBlobToStatement(stmt, index, blobValue, false); in BindAssetsToBlobStatement()
1835 errCode = SQLiteUtils::BindBlobToStatement(stmt, 3, logInfo.hashKey); // 3 is hash_key in UpdateRecordFlag()
1865 errCode = SQLiteUtils::BindBlobToStatement(stmt, index++, hashKey); in MarkFlagAsUploadFinished()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/cloudsync_fuzzer/
H A Dcloudsync_fuzzer.cpp142 errCode = SQLiteUtils::BindBlobToStatement(stmt, 2, photo); // 2 is index of photo in InitDbData()
182 errCode = SQLiteUtils::BindBlobToStatement(stmt, 2, photo); // 2 is index of photo in InitDbAsset()
188 errCode = SQLiteUtils::BindBlobToStatement(stmt, 3, assetBlob); // 3 is index of assert in InitDbAsset()
195 errCode = SQLiteUtils::BindBlobToStatement(stmt, 4, assetBlob); // 4 is index of asserts in InitDbAsset()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_assets_operation_sync_test.cpp227 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false), E_OK); in InsertUserTableRecord()
228 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, index2, assetsBlob, false), E_OK); in InsertUserTableRecord()
489 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false), E_OK); in InsertLocalAssetData()
490 … ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 2, assetsBlob, false), E_OK); // 2 is assetsBlob in InsertLocalAssetData()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_kv_test.cpp1752 errCode = SQLiteUtils::BindBlobToStatement(statement, 2, key, true); // 2nd arg. in SetFlag()
1781 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, keyVec, true); // 1st arg. in CheckFlag()
1833 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, keyVec, true); // only one arg. in CheckWaterMark()
1874 …errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, deviceIdVec, true); // only one a… in SetDeviceId()
1880 errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, key, true); // only one arg. in SetDeviceId()
1910 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, deviceIdVec, true); // only one arg. in CheckLogTable()
1959 …errCode = SQLiteUtils::BindBlobToStatement(statement, bindIndex, deviceIdVec, true); // only one a… in ChangeUserId()
2001 errCode = SQLiteUtils::BindBlobToStatement(statement, 1, deviceIdVec, true); // only one arg. in ChangeHashKey()
H A Ddistributeddb_cloud_syncer_lock_test.cpp251 … ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 3, assetBlob, false), E_OK); // 3 is asset in InsertLocalData()
255 … ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 4, assetsBlob, false), E_OK); // 4 is assets in InsertLocalData()
H A Ddistributeddb_cloud_syncer_download_assets_test.cpp185 … ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 4, assetBlob, false), E_OK); // 4 is asset in InsertLocalData()
189 … ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 5, assetsBlob, false), E_OK); // 5 is assets in InsertLocalData()
204 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false), E_OK); in UpdateLocalData()
218 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false), E_OK); in UpdateLocalData()
381 ASSERT_EQ(SQLiteUtils::BindBlobToStatement(stmt, 1, assetBlob, false), E_OK); in UpdateAssetsForLocal()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_store_sqlite_ext.cpp378 int BindBlobToStatement(sqlite3_stmt *stmt, int index, const std::vector<uint8_t> &value, bool perm…
512 errCode = BindBlobToStatement(stmt, 1, key); in GetLocalTimeOffsetFromMeta()
1108 int BindBlobToStatement(sqlite3_stmt *stmt, int index, const std::vector<uint8_t> &value, bool perm… in BindBlobToStatement() function
1416 errCode = BindBlobToStatement(stmt, index++, hash); in HandleDataStatus()

12