source upload

This commit is contained in:
Razor12911
2022-01-17 22:16:47 +02:00
parent 12936d065b
commit 098e8c48de
1778 changed files with 1206749 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
/// test access to a local MongoDB instance
program MongoDBTests;
{$ifdef MSWINDOWS}
{$APPTYPE CONSOLE}
{$endif}
{$I Synopse.inc} // define HASINLINE CPU32 CPU64 OWNNORMTOUPPER
uses
{$I SynDprUses.inc}
SynCommons,
SynLog,
mORMot,
MongoDBTestCases;
begin
{$ifdef WITHLOG}
// SQLite3Log.Family.Level := LOG_VERBOSE;
TSynLogTestLog := SQLite3Log;
{$endif}
with TTestMongoDB.Create do
try
Run;
{$ifdef MSWINDOWS}
readln;
{$endif}
finally
Free;
end;
{$ifdef FPC_X64MM}
WriteHeapStatus(#13#10'Memory Usage Report:', 16, 12, {flags=}true);
{$endif FPC_X64MM}
end.