-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from mbdavid/dev-engine
Merge for v2.0.0-beta
- Loading branch information
Showing
136 changed files
with
5,079 additions
and
3,969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ dlldata.c | |
*.pidb | ||
*.svclog | ||
*.scc | ||
.vs | ||
|
||
# Chutzpah Test files | ||
_Chutzpah* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace LiteDB.Shell.Commands | ||
{ | ||
internal class Debug : ConsoleCommand | ||
{ | ||
public override bool IsCommand(StringScanner s) | ||
{ | ||
return s.Scan(@"debug\s*").Length > 0; | ||
} | ||
|
||
public override void Execute(LiteShell shell, StringScanner s, Display d, InputCommand input) | ||
{ | ||
var sb = new StringBuilder(); | ||
var enabled = !(s.Scan(@"off\s*").Length > 0); | ||
|
||
shell.Database.Log.Level = enabled ? Logger.FULL : Logger.NONE; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
#if DEBUG | ||
namespace LiteDB.Shell.Commands | ||
{ | ||
/// <summary> | ||
/// Delete database e open again - used for tests only | ||
/// </summary> | ||
internal class Reset : ConsoleCommand | ||
{ | ||
public override bool IsCommand(StringScanner s) | ||
{ | ||
return s.Scan(@"reset\s+").Length > 0; | ||
} | ||
|
||
public override void Execute(LiteShell shell, StringScanner s, Display display, InputCommand input) | ||
{ | ||
var filename = s.Scan(@".+"); | ||
|
||
if (shell.Database != null) | ||
{ | ||
shell.Database.Dispose(); | ||
} | ||
|
||
File.Delete(filename); | ||
|
||
shell.Database = new LiteDatabase(filename); | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
UnitTest/ObjectIdTest.cs → LiteDB.Tests/Bson/ObjectIdTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.