2 * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
23 int sqliteCb(void *count, int argc, char **argv, char **colName);
26 /* TAC related DB functions */
31 int tac_insertDB(const std::string& pkgId, const std::string& np, const std::string& tac_name, const std::string& tac_version);
33 int tac_countDB(const std::string& pkgId, const std::string& tac_name, const std::string& unp, int& count);
35 std::vector<std::string> tac_selectDB(const std::string& pkgId);
37 int tac_updateDB(const std::string& pkgId, const std::string& np, const std::string& tac_name, const std::string& tac_version);
39 int tac_deleteDB(const std::string& pkgId, const std::string& unp);
41 void tac_rollbackDB();
46 /* TAC related DB functions */
51 int tlc_insertDB(const std::string& pkgId, const std::string& fileSha);
53 int tlc_countDB(const std::string& pkgId, const std::string& ulp, int& count);
55 std::vector<std::string> tlc_selectDB(const std::string& pkgId);
57 int tlc_deleteDB(const std::string& pkgId);
59 void tlc_rollbackDB();
63 #endif /* __TAC_DB_H__ */