JsonDB/JsonDBFactory.cs

13 lines
248 B
C#
Raw Permalink Normal View History

2024-08-12 12:02:12 +09:00
using DevJsonDB.IO;
namespace DevJsonDB;
public static class JsonDBFactory
{
public static JsonDB<T> CreateDB<T>(string filePath)
{
IStore<T> store = new LocalStore<T>(filePath, true);
2024-08-12 12:02:12 +09:00
return new JsonDB<T>(store);
}
}