Home
last modified time | relevance | path

Searched refs:PreparedStmt (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Dprepared_stmt.cpp20 PreparedStmt::PreparedStmt(ExecutorOperation opCode, const std::string &sql, const std::vector<std:… in PreparedStmt() function in DistributedDB::PreparedStmt
24 void PreparedStmt::SetOpCode(ExecutorOperation opCode) in SetOpCode()
29 void PreparedStmt::SetSql(std::string sql) in SetSql()
34 void PreparedStmt::SetBindArgs(std::vector<std::string> bindArgs) in SetBindArgs()
39 PreparedStmt::ExecutorOperation PreparedStmt::GetOpCode() const in GetOpCode()
44 const std::string &PreparedStmt::GetSql() const in GetSql()
49 const std::vector<std::string> &PreparedStmt::GetBindArgs() const in GetBindArgs()
54 bool PreparedStmt::IsValid() const in IsValid()
59 uint32_t PreparedStmt::CalcLength() const in CalcLength()
75 int PreparedStmt::Serialize(Parcel &parcel) const in Serialize()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_remote_query_test.cpp198 PreparedStmt prepStmt(PreparedStmt::QUERY, "SELECT * FROM " + g_tableName, {});
262PreparedStmt prepStmt(PreparedStmt::QUERY, "SELECT * FROM " + g_tableName + " WHERE value=?", {"1"…
270 prepStmt = { PreparedStmt::QUERY, "SELECT * FROM " + g_tableName + " WHERE value=1", {} };
327PreparedStmt prepStmt(PreparedStmt::QUERY, "SELECT * FROM " + g_tableName + " WHERE value=x'101010…
378PreparedStmt prepStmt(PreparedStmt::INSERT, "INSERT INTO " + g_tableName + " values(2, x'101010100…
425PreparedStmt prepStmt(PreparedStmt::QUERY, "SELECT * FROM nonexistent_table WHERE value=1;", {});
447PreparedStmt prepStmt1(PreparedStmt::QUERY, "SELECT * FROM test WHERE value=? or value=?", {"1", "…
463 PreparedStmt prepStmt2;
509 PreparedStmt prepStmt(PreparedStmt::QUERY,
554 PreparedStmt prepStmt(PreparedStmt::QUERY, "SELECT * FROM " + g_tableName, {});
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/
H A Dprepared_stmt.h24 class PreparedStmt {
28 PreparedStmt() = default;
29PreparedStmt(ExecutorOperation opCode, const std::string &sql, const std::vector<std::string> &bin…
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dremote_executor_packet.h40 const PreparedStmt &GetPreparedStmt() const;
56 void SetOpCode(PreparedStmt::ExecutorOperation opCode);
79 PreparedStmt preparedStmt_;
H A Dremote_executor_packet.cpp45 const PreparedStmt &RemoteExecutorRequestPacket::GetPreparedStmt() const in GetPreparedStmt()
164 void RemoteExecutorRequestPacket::SetOpCode(PreparedStmt::ExecutorOperation opCode) in SetOpCode()
H A Dremote_executor.h142 int ResponseRemoteQueryRequest(RelationalDBSyncInterface *storage, const PreparedStmt &stmt,
H A Dremote_executor.cpp768 packet->SetOpCode(PreparedStmt::ExecutorOperation::QUERY); in FillRequestPacket()
939 …eExecutor::ResponseRemoteQueryRequest(RelationalDBSyncInterface *storage, const PreparedStmt &stmt, in ResponseRemoteQueryRequest()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Drelational_db_sync_interface.h49 …virtual int ExecuteQuery(const PreparedStmt &prepStmt, size_t packetSize, RelationalRowDataSet &da…
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Dvirtual_relational_ver_sync_db_interface.h111 int ExecuteQuery(const PreparedStmt &prepStmt, size_t packetSize, RelationalRowDataSet &data,
H A Dvirtual_relational_ver_sync_db_interface.cpp332 int VirtualRelationalVerSyncDBInterface::ExecuteQuery(const PreparedStmt &prepStmt, size_t packetSi… in ExecuteQuery()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_sync_able_storage.h125 int ExecuteQuery(const PreparedStmt &prepStmt, size_t packetSize, RelationalRowDataSet &data,
261 int GetRemoteQueryData(const PreparedStmt &prepStmt, size_t packetSize,
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/
H A Drelational_sync_able_storage.cpp860 int RelationalSyncAbleStorage::GetRemoteQueryData(const PreparedStmt &prepStmt, size_t packetSize, in GetRemoteQueryData()
866 if (prepStmt.GetOpCode() != PreparedStmt::ExecutorOperation::QUERY || !prepStmt.IsValid()) { in GetRemoteQueryData()
884 int RelationalSyncAbleStorage::ExecuteQuery(const PreparedStmt &prepStmt, size_t packetSize, in ExecuteQuery()