This commit is contained in:
Jose Conde
2025-09-29 16:02:00 +02:00
parent dc57da8136
commit 5e16f781b4
74 changed files with 1621 additions and 1856 deletions

View File

@@ -0,0 +1,25 @@
using LiteDB;
namespace ModVersionChecker.managers.litedb
{
public abstract class LiteDb
{
public static string DB_PATH = "ModVersionChecker.db";
public static string APPS_COLLECTION = "apps";
public static string CHECKER_TYPES_DEF_COLLECTION = "checker_types_def";
public static string SOURCES_DEF_COLLECTION = "sources_def";
public static string CONFIG_COLLECTION = "config";
public static string FLIGHT_SIMS_COLLECTION = "flight_sims";
public static string TYPES_COLLECTION = "types";
public static string LOCAL_APPS_COLLECTION = "local_apps";
protected LiteDatabase _db = LiteDbSingleton.Instance;
protected abstract string collection { get; }
protected ILiteCollection<T> GetCollection<T>()
{
return _db.GetCollection<T>(collection);
}
}
}