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)
|
|
|
|
{
|
2024-08-12 16:35:58 +09:00
|
|
|
IStore<T> store = new LocalStore<T>(filePath, true);
|
2024-08-12 12:02:12 +09:00
|
|
|
return new JsonDB<T>(store);
|
|
|
|
}
|
|
|
|
}
|