-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathDuckDBClientFactory.cs
More file actions
40 lines (22 loc) · 1.01 KB
/
Copy pathDuckDBClientFactory.cs
File metadata and controls
40 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace DuckDB.NET.Data;
public class DuckDBClientFactory : DbProviderFactory
{
public const string ProviderInvariantName = "DuckDB.NET.Data";
#region Static Properties
public static readonly DuckDBClientFactory Instance = new();
#endregion
#region Properties
public override bool CanCreateDataSourceEnumerator => false;
#endregion
#region Constructors
private DuckDBClientFactory() { }
#endregion
#region Methods
public override DbCommand CreateCommand() => new DuckDBCommand();
public override DbCommandBuilder CreateCommandBuilder() => throw new NotImplementedException();
public override DbConnection CreateConnection() => new DuckDBConnection();
public override DbConnectionStringBuilder CreateConnectionStringBuilder() => new DuckDBConnectionStringBuilder();
public override DbDataAdapter CreateDataAdapter() => throw new NotImplementedException();
public override DbParameter CreateParameter() => new DuckDBParameter();
#endregion
}