Table of Contents

Class DuckDBConnectionStringBuilder

Namespace
DuckDB.NET.Data
Assembly
DuckDB.NET.Data.dll
public class DuckDBConnectionStringBuilder : DbConnectionStringBuilder, IDictionary, ICollection, IEnumerable, ICustomTypeDescriptor
Inheritance
DuckDBConnectionStringBuilder
Implements
Inherited Members

Fields

InMemoryConnectionString

public const string InMemoryConnectionString = "DataSource=:memory:"

Field Value

string

InMemoryDataSource

public const string InMemoryDataSource = ":memory:"

Field Value

string

InMemorySharedConnectionString

public const string InMemorySharedConnectionString = "DataSource=:memory:?cache=shared"

Field Value

string

InMemorySharedDataSource

public const string InMemorySharedDataSource = ":memory:?cache=shared"

Field Value

string

Properties

DataSource

public string DataSource { get; set; }

Property Value

string

this[string]

Gets or sets the value associated with the specified key.

public override object this[string keyword] { get; set; }

Parameters

keyword string

The key of the item to get or set.

Property Value

object

The value associated with the specified key. If the specified key is not found, trying to get it returns a null reference (Nothing in Visual Basic), and trying to set it creates a new element using the specified key.

Passing a null (Nothing in Visual Basic) key throws an ArgumentNullException. Assigning a null value removes the key/value pair.

Exceptions

ArgumentNullException

keyword is a null reference (Nothing in Visual Basic).

NotSupportedException

The property is set, and the DbConnectionStringBuilder is read-only.

-or-

The property is set, keyword does not exist in the collection, and the DbConnectionStringBuilder has a fixed size.