예제 #1
0
파일: Program.cs 프로젝트: lanicon/razordb
        static void CheckDatabase(string baseDir)
        {
            Console.WriteLine("Checking Key Value Store '{0}'", baseDir);

            RazorCache cache = new RazorCache();
            var        kv    = new KeyValueStore(baseDir, cache);

            try {
                kv.ScanCheck();
            } finally {
                kv.Close();
            }
        }
예제 #2
0
        static void RemoveOrphanedTables(string baseDir)
        {
            Console.WriteLine("Removing Orphaned Tables '{0}'", baseDir);

            RazorCache cache = new RazorCache();
            var        kv    = new KeyValueStore(baseDir, cache);

            try {
                kv.RemoveOrphanedPages();
            } finally {
                kv.Close();
            }
        }
예제 #3
0
 public void Close()
 {
     _db.Close();
 }