1 /*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "grd_kv_api_inner.h"
16 
17 #include "check_common.h"
18 #include "grd_api_manager.h"
19 #include "grd_base/grd_error.h"
20 #include "grd_type_inner.h"
21 #include "rd_log_print.h"
22 namespace DocumentDB {
GRD_KVPutInner(GRD_DB * db,const char * collectionName,const GRD_KVItemT * key,const GRD_KVItemT * value)23 int32_t GRD_KVPutInner(GRD_DB *db, const char *collectionName, const GRD_KVItemT *key, const GRD_KVItemT *value)
24 {
25     return GRD_NOT_SUPPORT;
26 }
27 
GRD_KVGetInner(GRD_DB * db,const char * collectionName,const GRD_KVItemT * key,const GRD_KVItemT * value)28 int32_t GRD_KVGetInner(GRD_DB *db, const char *collectionName, const GRD_KVItemT *key, const GRD_KVItemT *value)
29 {
30     return GRD_NOT_SUPPORT;
31 }
32 
GRD_KVDelInner(GRD_DB * db,const char * collectionName,const GRD_KVItemT * key)33 int32_t GRD_KVDelInner(GRD_DB *db, const char *collectionName, const GRD_KVItemT *key)
34 {
35     return GRD_NOT_SUPPORT;
36 }
37 
GRD_KVScanInner(GRD_DB * db,const char * collectionName,const GRD_KVItemT * key,GRD_KvScanModeE mode,GRD_ResultSet ** resultSet)38 int32_t GRD_KVScanInner(GRD_DB *db, const char *collectionName, const GRD_KVItemT *key, GRD_KvScanModeE mode,
39     GRD_ResultSet **resultSet)
40 {
41     return GRD_NOT_SUPPORT;
42 }
43 
GRD_KVFilterInner(GRD_DB * db,const char * collectionName,const GRD_FilterOptionT * scanParams,GRD_ResultSet ** resultSet)44 int32_t GRD_KVFilterInner(GRD_DB *db, const char *collectionName, const GRD_FilterOptionT *scanParams,
45     GRD_ResultSet **resultSet)
46 {
47     return GRD_NOT_SUPPORT;
48 }
49 
GRD_KVGetSizeInner(GRD_ResultSet * resultSet,uint32_t * keyLen,uint32_t * valueLen)50 int32_t GRD_KVGetSizeInner(GRD_ResultSet *resultSet, uint32_t *keyLen, uint32_t *valueLen)
51 {
52     return GRD_NOT_SUPPORT;
53 }
54 
GRD_GetItemInner(GRD_ResultSet * resultSet,void * key,void * value)55 int32_t GRD_GetItemInner(GRD_ResultSet *resultSet, void *key, void *value)
56 {
57     return GRD_NOT_SUPPORT;
58 }
59 
GRD_KVFreeItemInner(GRD_KVItemT * item)60 int32_t GRD_KVFreeItemInner(GRD_KVItemT *item)
61 {
62     return GRD_NOT_SUPPORT;
63 }
64 
GRD_KVBatchPrepareInner(uint16_t itemNum,GRD_KVBatchT ** batch)65 int32_t GRD_KVBatchPrepareInner(uint16_t itemNum, GRD_KVBatchT **batch)
66 {
67     return GRD_NOT_SUPPORT;
68 }
69 
GRD_KVBatchPushbackInner(const void * key,uint32_t keyLen,const void * data,uint32_t dataLen,GRD_KVBatchT * batch)70 int32_t GRD_KVBatchPushbackInner(const void *key, uint32_t keyLen, const void *data, uint32_t dataLen,
71     GRD_KVBatchT *batch)
72 {
73     return GRD_NOT_SUPPORT;
74 }
75 
GRD_KVBatchPutInner(GRD_DB * db,const char * collectionName,GRD_KVBatchT * batch)76 int32_t GRD_KVBatchPutInner(GRD_DB *db, const char *collectionName, GRD_KVBatchT *batch)
77 {
78     return GRD_NOT_SUPPORT;
79 }
80 
GRD_KVBatchDelInner(GRD_DB * db,const char * collectionName,GRD_KVBatchT * batch)81 int32_t GRD_KVBatchDelInner(GRD_DB *db, const char *collectionName, GRD_KVBatchT *batch)
82 {
83     return GRD_NOT_SUPPORT;
84 }
85 
GRD_KVBatchDestroyInner(GRD_KVBatchT * batch)86 int32_t GRD_KVBatchDestroyInner(GRD_KVBatchT *batch)
87 {
88     return GRD_NOT_SUPPORT;
89 }
90 } // namespace DocumentDB