DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DatabaseEngine.h
Go to the documentation of this file.
1#pragma once
2#include "Common.h"
5#include "System/String.h"
8
9namespace DotNetDupe {
10 namespace System {
11 namespace Data {
12 namespace Internal {
13
21 class DatabaseEngine {
22 private:
23 struct Impl;
25
26 DatabaseEngine();
27 ~DatabaseEngine();
28
29 public:
32 DOTNETDUPE_API static DatabaseEngine& Instance();
33
38
43
47
56 const DotNetDupe::System::String& dbName,
57 const String& sql,
60 int& rowsAffected
61 );
62 };
63
64 }
65 }
66 }
67}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a collection of keys and values.
Definition Dictionary.h:66
Represents a strongly typed list of objects accessible by index.
Definition List.h:29
DotNetDupe::System::SmartPointer< IDatabaseBackend > GetBackend(const DotNetDupe::System::String &dbName)
Retrieves the backend associated with a database name.
void ClearDatabase(const DotNetDupe::System::String &dbName)
Clears all contents of the specified database.
void RegisterBackend(const DotNetDupe::System::String &dbName, DotNetDupe::System::SmartPointer< IDatabaseBackend > backend)
Registers a backend instance for a specific database name.
Collections::Generic::List< Row > Execute(const DotNetDupe::System::String &dbName, const String &sql, const Collections::Generic::Dictionary< String, String > &parameters, Collections::Generic::List< String > &columnNames, int &rowsAffected)
Executes a SQL command against the named database backend.
static DatabaseEngine & Instance()
Retrieves the singleton instance of the DatabaseEngine.
A unified smart pointer that supports both unique and shared ownership semantics.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74