17777dab0Sopenharmony_ci/*
27777dab0Sopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd.
37777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
47777dab0Sopenharmony_ci * you may not use this file except in compliance with the License.
57777dab0Sopenharmony_ci * You may obtain a copy of the License at
67777dab0Sopenharmony_ci *
77777dab0Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
87777dab0Sopenharmony_ci *
97777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
107777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
117777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127777dab0Sopenharmony_ci * See the License for the specific language governing permissions and
137777dab0Sopenharmony_ci * limitations under the License.
147777dab0Sopenharmony_ci */
157777dab0Sopenharmony_ci
167777dab0Sopenharmony_ci#ifndef DATA_ASSET_H
177777dab0Sopenharmony_ci#define DATA_ASSET_H
187777dab0Sopenharmony_ci/**
197777dab0Sopenharmony_ci * @addtogroup RDB
207777dab0Sopenharmony_ci * @{
217777dab0Sopenharmony_ci *
227777dab0Sopenharmony_ci * @brief The relational database (RDB) store manages data based on relational models.
237777dab0Sopenharmony_ci * With the underlying SQLite database, the RDB store provides a complete mechanism for managing local databases.
247777dab0Sopenharmony_ci * To satisfy different needs in complicated scenarios, the RDB store offers a series of APIs for performing operations
257777dab0Sopenharmony_ci * such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements.
267777dab0Sopenharmony_ci *
277777dab0Sopenharmony_ci * @since 11
287777dab0Sopenharmony_ci */
297777dab0Sopenharmony_ci
307777dab0Sopenharmony_ci/**
317777dab0Sopenharmony_ci * @file data_asset.h
327777dab0Sopenharmony_ci *
337777dab0Sopenharmony_ci * @brief Provides the data type of asset.
347777dab0Sopenharmony_ci * @kit ArkData
357777dab0Sopenharmony_ci * @library libnative_rdb_ndk.z.so
367777dab0Sopenharmony_ci * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
377777dab0Sopenharmony_ci * @since 11
387777dab0Sopenharmony_ci */
397777dab0Sopenharmony_ci#include <cstddef>
407777dab0Sopenharmony_ci#include <stdint.h>
417777dab0Sopenharmony_ci#ifdef __cplusplus
427777dab0Sopenharmony_ciextern "C" {
437777dab0Sopenharmony_ci#endif
447777dab0Sopenharmony_ci/**
457777dab0Sopenharmony_ci * @brief Describes the status of asset.
467777dab0Sopenharmony_ci *
477777dab0Sopenharmony_ci * @since 11
487777dab0Sopenharmony_ci */
497777dab0Sopenharmony_citypedef enum Data_AssetStatus {
507777dab0Sopenharmony_ci    /**
517777dab0Sopenharmony_ci     * @brief Means the status of asset is null.
527777dab0Sopenharmony_ci     */
537777dab0Sopenharmony_ci    ASSET_NULL = 0,
547777dab0Sopenharmony_ci
557777dab0Sopenharmony_ci    /**
567777dab0Sopenharmony_ci     * @brief Means the status of asset is normal.
577777dab0Sopenharmony_ci     */
587777dab0Sopenharmony_ci    ASSET_NORMAL,
597777dab0Sopenharmony_ci
607777dab0Sopenharmony_ci    /**
617777dab0Sopenharmony_ci     * @brief Means the asset needs to be inserted.
627777dab0Sopenharmony_ci     */
637777dab0Sopenharmony_ci    ASSET_INSERT,
647777dab0Sopenharmony_ci
657777dab0Sopenharmony_ci    /**
667777dab0Sopenharmony_ci     * @brief Means the asset needs to be updated.
677777dab0Sopenharmony_ci     */
687777dab0Sopenharmony_ci    ASSET_UPDATE,
697777dab0Sopenharmony_ci
707777dab0Sopenharmony_ci    /**
717777dab0Sopenharmony_ci     * @brief Means the asset needs to be deleted.
727777dab0Sopenharmony_ci     */
737777dab0Sopenharmony_ci    ASSET_DELETE,
747777dab0Sopenharmony_ci
757777dab0Sopenharmony_ci    /**
767777dab0Sopenharmony_ci     * @brief Means the status of asset is abnormal.
777777dab0Sopenharmony_ci     */
787777dab0Sopenharmony_ci    ASSET_ABNORMAL,
797777dab0Sopenharmony_ci
807777dab0Sopenharmony_ci    /**
817777dab0Sopenharmony_ci     * @brief Means the status of asset is downloading.
827777dab0Sopenharmony_ci     */
837777dab0Sopenharmony_ci    ASSET_DOWNLOADING
847777dab0Sopenharmony_ci} Data_AssetStatus;
857777dab0Sopenharmony_ci
867777dab0Sopenharmony_ci/**
877777dab0Sopenharmony_ci * @brief Define the Data_Asset structure type.
887777dab0Sopenharmony_ci *
897777dab0Sopenharmony_ci * Provides information of an asset.
907777dab0Sopenharmony_ci *
917777dab0Sopenharmony_ci * @since 11
927777dab0Sopenharmony_ci */
937777dab0Sopenharmony_citypedef struct Data_Asset Data_Asset;
947777dab0Sopenharmony_ci
957777dab0Sopenharmony_ci/**
967777dab0Sopenharmony_ci * @brief Set the name of the Data_Asset.
977777dab0Sopenharmony_ci *
987777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
997777dab0Sopenharmony_ci * @param name Indicates the name to set.
1007777dab0Sopenharmony_ci * @return Returns a specific error code.
1017777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1027777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1037777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1047777dab0Sopenharmony_ci * @see Data_Asset
1057777dab0Sopenharmony_ci * @since 11
1067777dab0Sopenharmony_ci */
1077777dab0Sopenharmony_ciint OH_Data_Asset_SetName(Data_Asset *asset, const char *name);
1087777dab0Sopenharmony_ci
1097777dab0Sopenharmony_ci/**
1107777dab0Sopenharmony_ci * @brief Set the uri of the Data_Asset.
1117777dab0Sopenharmony_ci *
1127777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1137777dab0Sopenharmony_ci * @param uri Indicates the uri to set.
1147777dab0Sopenharmony_ci * @return Returns a specific error code.
1157777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1167777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1177777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1187777dab0Sopenharmony_ci * @see Data_Asset
1197777dab0Sopenharmony_ci * @since 11
1207777dab0Sopenharmony_ci */
1217777dab0Sopenharmony_ciint OH_Data_Asset_SetUri(Data_Asset *asset, const char *uri);
1227777dab0Sopenharmony_ci
1237777dab0Sopenharmony_ci/**
1247777dab0Sopenharmony_ci * @brief Set the path of the Data_Asset.
1257777dab0Sopenharmony_ci *
1267777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1277777dab0Sopenharmony_ci * @param path Indicates the path to set.
1287777dab0Sopenharmony_ci * @return Returns a specific error code.
1297777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1307777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1317777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1327777dab0Sopenharmony_ci * @see Data_Asset
1337777dab0Sopenharmony_ci * @since 11
1347777dab0Sopenharmony_ci */
1357777dab0Sopenharmony_ciint OH_Data_Asset_SetPath(Data_Asset *asset, const char *path);
1367777dab0Sopenharmony_ci
1377777dab0Sopenharmony_ci/**
1387777dab0Sopenharmony_ci * @brief Set the create time of the Data_Asset.
1397777dab0Sopenharmony_ci *
1407777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1417777dab0Sopenharmony_ci * @param createTime Indicates the create time to set.
1427777dab0Sopenharmony_ci * @return Returns a specific error code.
1437777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1447777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1457777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1467777dab0Sopenharmony_ci * @see Data_Asset
1477777dab0Sopenharmony_ci * @since 11
1487777dab0Sopenharmony_ci */
1497777dab0Sopenharmony_ciint OH_Data_Asset_SetCreateTime(Data_Asset *asset, int64_t createTime);
1507777dab0Sopenharmony_ci
1517777dab0Sopenharmony_ci/**
1527777dab0Sopenharmony_ci * @brief Set the modify time of the Data_Asset.
1537777dab0Sopenharmony_ci *
1547777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1557777dab0Sopenharmony_ci * @param modifyTime Indicates the create time to set.
1567777dab0Sopenharmony_ci * @return Returns a specific error code.
1577777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1587777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1597777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1607777dab0Sopenharmony_ci * @see Data_Asset
1617777dab0Sopenharmony_ci * @since 11
1627777dab0Sopenharmony_ci */
1637777dab0Sopenharmony_ciint OH_Data_Asset_SetModifyTime(Data_Asset *asset, int64_t modifyTime);
1647777dab0Sopenharmony_ci
1657777dab0Sopenharmony_ci/**
1667777dab0Sopenharmony_ci * @brief Set the size of the Data_Asset.
1677777dab0Sopenharmony_ci *
1687777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1697777dab0Sopenharmony_ci * @param size Indicates the size to set.
1707777dab0Sopenharmony_ci * @return Returns a specific error code.
1717777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1727777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1737777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1747777dab0Sopenharmony_ci * @see Data_Asset
1757777dab0Sopenharmony_ci * @since 11
1767777dab0Sopenharmony_ci */
1777777dab0Sopenharmony_ciint OH_Data_Asset_SetSize(Data_Asset *asset, size_t size);
1787777dab0Sopenharmony_ci
1797777dab0Sopenharmony_ci/**
1807777dab0Sopenharmony_ci * @brief Set the status of the Data_Asset.
1817777dab0Sopenharmony_ci *
1827777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1837777dab0Sopenharmony_ci * @param status Indicates the status to set. Specific status can be referenced {@link Data_AssetStatus}.
1847777dab0Sopenharmony_ci * @return Returns a specific error code.
1857777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
1867777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
1877777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
1887777dab0Sopenharmony_ci * @see Data_Asset, Data_AssetStatus
1897777dab0Sopenharmony_ci * @since 11
1907777dab0Sopenharmony_ci */
1917777dab0Sopenharmony_ciint OH_Data_Asset_SetStatus(Data_Asset *asset, Data_AssetStatus status);
1927777dab0Sopenharmony_ci
1937777dab0Sopenharmony_ci/**
1947777dab0Sopenharmony_ci * @brief Obtains the name of the asset.
1957777dab0Sopenharmony_ci *
1967777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
1977777dab0Sopenharmony_ci * @param name This parameter is the output parameter,
1987777dab0Sopenharmony_ci * and the name of the asset as a char * is written to this variable.
1997777dab0Sopenharmony_ci * @param length Indicates the length of the name.
2007777dab0Sopenharmony_ci * @return Returns a specific error code.
2017777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2027777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2037777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2047777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2057777dab0Sopenharmony_ci * @see Data_Asset
2067777dab0Sopenharmony_ci * @since 11
2077777dab0Sopenharmony_ci */
2087777dab0Sopenharmony_ciint OH_Data_Asset_GetName(Data_Asset *asset, char *name, size_t *length);
2097777dab0Sopenharmony_ci
2107777dab0Sopenharmony_ci/**
2117777dab0Sopenharmony_ci * @brief Obtains the uri of the asset.
2127777dab0Sopenharmony_ci *
2137777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2147777dab0Sopenharmony_ci * @param uri This parameter is the output parameter,
2157777dab0Sopenharmony_ci * and the uri of the asset as a char * is written to this variable.
2167777dab0Sopenharmony_ci * @param length Indicates the length of the uri.
2177777dab0Sopenharmony_ci * @return Returns a specific error code.
2187777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2197777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2207777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2217777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2227777dab0Sopenharmony_ci * @see Data_Asset
2237777dab0Sopenharmony_ci * @since 11
2247777dab0Sopenharmony_ci */
2257777dab0Sopenharmony_ciint OH_Data_Asset_GetUri(Data_Asset *asset, char *uri, size_t *length);
2267777dab0Sopenharmony_ci
2277777dab0Sopenharmony_ci/**
2287777dab0Sopenharmony_ci * @brief Obtains the path of the asset.
2297777dab0Sopenharmony_ci *
2307777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2317777dab0Sopenharmony_ci * @param path This parameter is the output parameter,
2327777dab0Sopenharmony_ci * and the path of the asset as a char * is written to this variable.
2337777dab0Sopenharmony_ci * @param length Indicates the length of the path.
2347777dab0Sopenharmony_ci * @return Returns a specific error code.
2357777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2367777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2377777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2387777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2397777dab0Sopenharmony_ci * @see Data_Asset
2407777dab0Sopenharmony_ci * @since 11
2417777dab0Sopenharmony_ci */
2427777dab0Sopenharmony_ciint OH_Data_Asset_GetPath(Data_Asset *asset, char *path, size_t *length);
2437777dab0Sopenharmony_ci
2447777dab0Sopenharmony_ci/**
2457777dab0Sopenharmony_ci * @brief Obtains the create time of the asset.
2467777dab0Sopenharmony_ci *
2477777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2487777dab0Sopenharmony_ci * @param createTime This parameter is the output parameter,
2497777dab0Sopenharmony_ci * and the create time of the asset as a int64_t is written to this variable.
2507777dab0Sopenharmony_ci * @return Returns a specific error code.
2517777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2527777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2537777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2547777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2557777dab0Sopenharmony_ci * @see Data_Asset
2567777dab0Sopenharmony_ci * @since 11
2577777dab0Sopenharmony_ci */
2587777dab0Sopenharmony_ciint OH_Data_Asset_GetCreateTime(Data_Asset *asset, int64_t *createTime);
2597777dab0Sopenharmony_ci
2607777dab0Sopenharmony_ci/**
2617777dab0Sopenharmony_ci * @brief Obtains the modify time of the asset.
2627777dab0Sopenharmony_ci *
2637777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2647777dab0Sopenharmony_ci * @param modifyTime This parameter is the output parameter,
2657777dab0Sopenharmony_ci * and the create time of the asset as a int64_t is written to this variable.
2667777dab0Sopenharmony_ci * @return Returns a specific error code.
2677777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2687777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2697777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2707777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2717777dab0Sopenharmony_ci * @see Data_Asset
2727777dab0Sopenharmony_ci * @since 11
2737777dab0Sopenharmony_ci */
2747777dab0Sopenharmony_ciint OH_Data_Asset_GetModifyTime(Data_Asset *asset, int64_t *modifyTime);
2757777dab0Sopenharmony_ci
2767777dab0Sopenharmony_ci/**
2777777dab0Sopenharmony_ci * @brief Obtains the size of the asset.
2787777dab0Sopenharmony_ci *
2797777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2807777dab0Sopenharmony_ci * @param size This parameter is the output parameter,
2817777dab0Sopenharmony_ci * and the size of the asset as a size_t is written to this variable.
2827777dab0Sopenharmony_ci * @return Returns a specific error code.
2837777dab0Sopenharmony_ci *     {@link RDB_ERR} - Indicates that the function execution exception.
2847777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
2857777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
2867777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
2877777dab0Sopenharmony_ci * @see Data_Asset
2887777dab0Sopenharmony_ci * @since 11
2897777dab0Sopenharmony_ci */
2907777dab0Sopenharmony_ciint OH_Data_Asset_GetSize(Data_Asset *asset, size_t *size);
2917777dab0Sopenharmony_ci
2927777dab0Sopenharmony_ci/**
2937777dab0Sopenharmony_ci * @brief Obtains the status of the asset.
2947777dab0Sopenharmony_ci *
2957777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
2967777dab0Sopenharmony_ci * @param status This parameter is the output parameter,
2977777dab0Sopenharmony_ci * and the size of the status as a {@link Data_AssetStatus} is written to this variable.
2987777dab0Sopenharmony_ci * @return Returns a specific error code.
2997777dab0Sopenharmony_ci *     {@link RDB_OK} - success.
3007777dab0Sopenharmony_ci *     {@link RDB_E_INVALID_ARGS} - The error code for common invalid args.
3017777dab0Sopenharmony_ci * Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
3027777dab0Sopenharmony_ci * @see Data_Asset Data_AssetStatus.
3037777dab0Sopenharmony_ci * @since 11
3047777dab0Sopenharmony_ci */
3057777dab0Sopenharmony_ciint OH_Data_Asset_GetStatus(Data_Asset *asset, Data_AssetStatus *status);
3067777dab0Sopenharmony_ci
3077777dab0Sopenharmony_ci/**
3087777dab0Sopenharmony_ci * @brief Creates an {@link Data_Asset} instance.
3097777dab0Sopenharmony_ci *
3107777dab0Sopenharmony_ci * @return If the creation is successful, a pointer to the instance of the @link Data_Asset} structure is returned,
3117777dab0Sopenharmony_ci * otherwise NULL is returned.
3127777dab0Sopenharmony_ci * @see Data_Asset.
3137777dab0Sopenharmony_ci * @since 11
3147777dab0Sopenharmony_ci */
3157777dab0Sopenharmony_ciData_Asset *OH_Data_Asset_CreateOne(void);
3167777dab0Sopenharmony_ci
3177777dab0Sopenharmony_ci/**
3187777dab0Sopenharmony_ci * @brief Destroy the {@link Data_Asset} object and reclaim the memory occupied by the object.
3197777dab0Sopenharmony_ci *
3207777dab0Sopenharmony_ci * @param asset Represents a pointer to an {@link Data_Asset} instance.
3217777dab0Sopenharmony_ci * @return Returns the status code of the execution. Successful execution returns RDB_OK,
3227777dab0Sopenharmony_ci * while failure returns a specific error code. Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
3237777dab0Sopenharmony_ci * @see Data_Asset, OH_Rdb_ErrCode.
3247777dab0Sopenharmony_ci * @since 11
3257777dab0Sopenharmony_ci */
3267777dab0Sopenharmony_ciint OH_Data_Asset_DestroyOne(Data_Asset *asset);
3277777dab0Sopenharmony_ci
3287777dab0Sopenharmony_ci/**
3297777dab0Sopenharmony_ci * @brief Creates {@link Data_Asset} instances of given number.
3307777dab0Sopenharmony_ci *
3317777dab0Sopenharmony_ci * @param count Represents the count of {@link Data_Asset} to create.
3327777dab0Sopenharmony_ci * @return If the creation is successful, a pointer to the instance of the {@link Data_Asset} structure is returned.
3337777dab0Sopenharmony_ci *         If the creation is unsuccessful, NULL is returned.
3347777dab0Sopenharmony_ci * @see Data_Asset.
3357777dab0Sopenharmony_ci * @since 11
3367777dab0Sopenharmony_ci */
3377777dab0Sopenharmony_ciData_Asset **OH_Data_Asset_CreateMultiple(uint32_t count);
3387777dab0Sopenharmony_ci
3397777dab0Sopenharmony_ci/**
3407777dab0Sopenharmony_ci * @brief Destroy the {@link Data_Asset} objects and reclaim the memory occupied by the objects.
3417777dab0Sopenharmony_ci *
3427777dab0Sopenharmony_ci * @param assets Represents a pointer to an {@link Data_Asset} instance.
3437777dab0Sopenharmony_ci * @param count Represents the count of {@link Data_Asset} to destroy.
3447777dab0Sopenharmony_ci * @return Returns the status code of the execution. Successful execution returns RDB_OK,
3457777dab0Sopenharmony_ci * while failure returns a specific error code. Specific error codes can be referenced {@link OH_Rdb_ErrCode}.
3467777dab0Sopenharmony_ci * @see Data_Asset, OH_Rdb_ErrCode.
3477777dab0Sopenharmony_ci * @since 11
3487777dab0Sopenharmony_ci */
3497777dab0Sopenharmony_ciint OH_Data_Asset_DestroyMultiple(Data_Asset **assets, uint32_t count);
3507777dab0Sopenharmony_ci#ifdef __cplusplus
3517777dab0Sopenharmony_ci};
3527777dab0Sopenharmony_ci#endif
3537777dab0Sopenharmony_ci#endif // DATA_ASSET_H
354