mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Fixed issue where assets would not installed due to directory not being created
This commit is contained in:
parent
2fd55de71e
commit
060d19bda4
10 changed files with 193 additions and 137 deletions
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
#include "constants.hpp"
|
||||
#include <sqlite3.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
|
@ -9,16 +10,16 @@ namespace gdpm::package_manager{
|
|||
|
||||
namespace gdpm::cache{
|
||||
using namespace package_manager;
|
||||
int create_package_database();
|
||||
int insert_package_info(const std::vector<package_info>& package);
|
||||
std::vector<package_info> get_package_info_by_id(const std::vector<size_t>& package_ids);
|
||||
std::vector<package_info> get_package_info_by_title(const std::vector<std::string>& package_titles);
|
||||
std::vector<package_info> get_installed_packages();
|
||||
int update_package_info(const std::vector<package_info>& packages);
|
||||
int update_sync_info(const std::vector<std::string>& download_urls);
|
||||
int delete_packages(const std::vector<std::string>& package_titles);
|
||||
int delete_packages(const std::vector<size_t>& package_ids);
|
||||
int drop_package_database();
|
||||
int create_package_database(const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
int insert_package_info(const std::vector<package_info>& package, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
std::vector<package_info> get_package_info_by_id(const std::vector<size_t>& package_ids, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
std::vector<package_info> get_package_info_by_title(const std::vector<std::string>& package_titles, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
std::vector<package_info> get_installed_packages(const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
int update_package_info(const std::vector<package_info>& packages, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
int update_sync_info(const std::vector<std::string>& download_urls, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
int delete_packages(const std::vector<std::string>& package_titles, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_TABLENAME);
|
||||
int delete_packages(const std::vector<size_t>& package_ids, const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
int drop_package_database(const std::string& cache_path = GDPM_PACKAGE_CACHE_PATH, const std::string& table_name = GDPM_PACKAGE_CACHE_TABLENAME);
|
||||
|
||||
std::string to_values(const package_info& package);
|
||||
std::string to_values(const std::vector<package_info>& packages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue