public static IStorageEngine FromMemory(bool useCompression = false, AllocationStrategy strategy = AllocationStrategy.FromTheCurrentBlock) { var stream = new MemoryStream(); return(STSdb.FromStream(stream, useCompression, strategy)); }
public static IStorageEngine FromFile(string fileName, bool useCompression = false, AllocationStrategy strategy = AllocationStrategy.FromTheCurrentBlock) { var stream = new OptimizedFileStream(fileName, FileMode.OpenOrCreate); return(STSdb.FromStream(stream, useCompression, strategy)); }
public static IStorageEngine FromFile(string fileName) { var stream = new OptimizedFileStream(fileName, FileMode.OpenOrCreate); return(STSdb.FromStream(stream)); }