13 lines
242 B
C#
13 lines
242 B
C#
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);
|
|
}
|
|
}
|