Exemplo n.º 1
0
        public StressTest(string filename, bool synced)
        {
            File.Delete(filename);
            File.Delete(GetSufixFile(filename, "-log", false));

            _db = new LiteDatabase(filename);

            _db.Execute("PRAGMA TIMEOUT = 3600");

            _debugger = new DatabaseDebugger(_db);

            _debugger.Start(8001);
        }
Exemplo n.º 2
0
        public StressTest(EngineSettings settings, bool synced)
        {
            settings.Timeout = TimeSpan.FromHours(1);

            if (settings.Filename != null)
            {
                File.Delete(settings.Filename);
                File.Delete(GetSufixFile(settings.Filename, "-log", false));
            }

            var engine = new LiteEngine(settings);

            _db = new LiteDatabase(engine);

            _debugger = new DatabaseDebugger(_db);

            _debugger.Start(8001);
        }