JsonDB/JsonDBFactory.cs

13 lines
242 B
C#
Raw 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);
return new JsonDB<T>(store);
}
}