DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
IDatabaseBackend.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Common.h
"
3
#include "
System/String.h
"
4
#include "
System/Collections/Generic/List.h
"
5
#include "
System/Collections/Generic/Dictionary.h
"
6
7
namespace
DotNetDupe
{
8
namespace
System
{
9
namespace
Data
{
10
namespace
Internal
{
11
14
struct
Row
{
15
Collections::Generic::List<String>
Values
;
16
};
17
20
struct
Table
{
21
Collections::Generic::List<String>
Columns
;
22
Collections::Generic::List<Row>
Rows
;
23
};
24
29
class
IDatabaseBackend
{
30
public
:
32
virtual
~IDatabaseBackend
() =
default
;
33
40
virtual
Collections::Generic::List<Row>
Execute
(
41
const
String
& sql,
42
const
Collections::Generic::Dictionary<String, String>
& parameters,
43
Collections::Generic::List<String>
& columnNames,
44
int
& rowsAffected
45
) = 0;
46
48
virtual
void
ClearDatabase
() = 0;
49
};
50
51
}
52
}
53
}
54
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
Dictionary.h
List.h
Represents a strongly typed list of objects that can be accessed by index mirroring ....
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Collections::Generic::Dictionary
Represents a collection of keys and values.
Definition
Dictionary.h:66
DotNetDupe::System::Collections::Generic::List
Represents a strongly typed list of objects accessible by index.
Definition
List.h:29
DotNetDupe::System::Data::Internal::IDatabaseBackend
Interface defining the contract for database storage backends in DotNetDupe.
Definition
IDatabaseBackend.h:29
DotNetDupe::System::Data::Internal::IDatabaseBackend::~IDatabaseBackend
virtual ~IDatabaseBackend()=default
Virtual destructor for polymorphic cleanup.
DotNetDupe::System::Data::Internal::IDatabaseBackend::Execute
virtual Collections::Generic::List< Row > Execute(const String &sql, const Collections::Generic::Dictionary< String, String > ¶meters, Collections::Generic::List< String > &columnNames, int &rowsAffected)=0
Executes a SQL query or command against the database backend.
DotNetDupe::System::Data::Internal::IDatabaseBackend::ClearDatabase
virtual void ClearDatabase()=0
Clears all tables and records in the backend database.
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::Data::Internal
Definition
DatabaseEngine.h:12
DotNetDupe::System::Data
Definition
DbCommand.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
DotNetDupe::System::Data::Internal::Row
Represents an internal data row consisting of a list of column values.
Definition
IDatabaseBackend.h:14
DotNetDupe::System::Data::Internal::Row::Values
Collections::Generic::List< String > Values
Ordered list of column values as strings.
Definition
IDatabaseBackend.h:15
DotNetDupe::System::Data::Internal::Table
Represents an internal in-memory relational table.
Definition
IDatabaseBackend.h:20
DotNetDupe::System::Data::Internal::Table::Rows
Collections::Generic::List< Row > Rows
List of data rows contained within the table.
Definition
IDatabaseBackend.h:22
DotNetDupe::System::Data::Internal::Table::Columns
Collections::Generic::List< String > Columns
Ordered list of column header names.
Definition
IDatabaseBackend.h:21
Include
System
Data
Internal
IDatabaseBackend.h
Generated by
1.18.0