mirror of
https://gitee.com/openharmony/distributeddatamgr_relational_store
synced 2024-11-23 07:00:41 +00:00
BatchInsert
Signed-off-by: zhangdi <zhangdi126@huawei.com>
This commit is contained in:
parent
5590138ed8
commit
ee0df01a94
@ -1,9 +0,0 @@
|
||||
diff a/interfaces/inner_api/rdb/mock/include/big_integer.h b/interfaces/inner_api/rdb/mock/include/big_integer.h (rejected hunks)
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
BigInteger &operator=(const BigInteger &other);
|
||||
BigInteger &operator=(BigInteger &&other);
|
||||
bool operator==(const BigInteger &other);
|
||||
+ bool operator<(const BigInteger &rhs);
|
||||
|
||||
int32_t Sign() const;
|
||||
size_t Size() const;
|
@ -1,21 +0,0 @@
|
||||
diff a/interfaces/inner_api/rdb/mock/include/rdb_store.h b/interfaces/inner_api/rdb/mock/include/rdb_store.h (rejected hunks)
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "result_set.h"
|
||||
#include "value_object.h"
|
||||
#include "values_bucket.h"
|
||||
+#include "values_buckets.h"
|
||||
+
|
||||
namespace OHOS::NativeRdb {
|
||||
class RdbStore {
|
||||
public:
|
||||
@@ -39,6 +41,10 @@ public:
|
||||
virtual int Insert(int64_t &outRowId, const std::string &table, const ValuesBucket &values) = 0;
|
||||
virtual int BatchInsert(int64_t &outInsertNum, const std::string &table,
|
||||
const std::vector<ValuesBucket> &values) = 0;
|
||||
+ virtual std::pair<int, int64_t> BatchInsert(const std::string &table, const ValuesBuckets &values)
|
||||
+ {
|
||||
+ return { E_NOT_SUPPORT, 0 };
|
||||
+ }
|
||||
virtual int Replace(int64_t &outRowId, const std::string &table, const ValuesBucket &values) = 0;
|
||||
virtual int InsertWithConflictResolution(
|
||||
int64_t &outRowId, const std::string &table, const ValuesBucket &values,
|
@ -1,10 +0,0 @@
|
||||
diff a/interfaces/inner_api/rdb/mock/include/value_object.h b/interfaces/inner_api/rdb/mock/include/value_object.h (rejected hunks)
|
||||
@@ -325,6 +325,8 @@ public:
|
||||
return value;
|
||||
}
|
||||
|
||||
+ bool operator<(const ValueObject &rhs) const;
|
||||
+
|
||||
private:
|
||||
template<class T>
|
||||
int Get(T &output) const;
|
Loading…
Reference in New Issue
Block a user