Свойство | Тип | Описание | |
---|---|---|---|
CompleteOpen | void | ||
CqlConnection | System | ||
GetConnection | Connection | ||
OpenAsyncInternal | Task | ||
OpenAsyncInternal2 | Task |
Метод | Описание | |
---|---|---|
BeginTransaction ( ) : |
Begins the transaction.
|
|
BeginTransaction ( IsolationLevel isolationLevel ) : |
Begins the transaction.
|
|
Cancel ( ) : void |
Cancels any ongoing open operation.
|
|
ChangeDatabase ( string databaseName ) : void |
Changes the current database for an open connection.
|
|
Close ( ) : void |
Closes the connection to the database. This is the preferred method of closing any open connection.
|
|
CqlConnection ( CqlConnectionStringBuilder config ) : System |
Initializes a new instance of the CqlConnection class.
|
|
CqlConnection ( string connectionString ) : System |
Initializes a new instance of the CqlConnection class.
|
|
CreateCqlCommand ( ) : CqlCommand |
Creates and returns a T:CqlSharp.CqlCommand object associated with the current connection.
|
|
Open ( ) : void |
Opens a database connection with the settings specified by the
|
|
OpenAsync ( |
This is the asynchronous version of M:System.Data.Common.DbConnection.Open. The cancellation token can optionally be honored.The default implementation invokes the synchronous
|
|
OpenInternal ( ) : void |
Opens the connection with full cancellation support.
|
|
SetConnectionTimeout ( int timeout ) : void |
Sets the connection timeout.
|
|
Shutdown ( string connectionString ) : void |
Shutdowns all interaction with the cluster as specified by the connection string. This will close all open connection, and thereby fail all ongoing cql operations. |
|
ShutdownAll ( ) : void |
Shutdowns all interactions with all known clusters This will close all open connection, and thereby fail all ongoing cql operations. |
Метод | Описание | |
---|---|---|
BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction |
Starts a database transaction.
|
|
CreateDbCommand ( ) : DbCommand |
Creates and returns a T:System.Data.Common.DbCommand object associated with the current connection.
|
|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the T:System.ComponentModel.Component and optionally releases the managed resources.
|
Метод | Описание | |
---|---|---|
CompleteOpen ( Logger logger ) : void | ||
CqlConnection ( ) : System |
Initializes the CqlConnection class.
|
|
GetConnection ( PartitionKey partitionKey = default(PartitionKey) ) : Connection |
Requests a connection to be used for a command. Will reuse connection level connection if available
|
|
OpenAsyncInternal ( |
Opens the connection.
|
|
OpenAsyncInternal2 ( Logger logger, |
Opens the connection.
|
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction | ||
isolationLevel | IsolationLevel | Specifies the isolation level for the transaction. |
Результат | DbTransaction |
public BeginTransaction ( ) : |
||
Результат |
public BeginTransaction ( IsolationLevel isolationLevel ) : |
||
isolationLevel | IsolationLevel | The isolation level. |
Результат |
public ChangeDatabase ( string databaseName ) : void | ||
databaseName | string | Specifies the name of the database for the connection to use. |
Результат | void |
public CqlConnection ( CqlConnectionStringBuilder config ) : System | ||
config | CqlConnectionStringBuilder | The config. |
Результат | System |
public CqlConnection ( string connectionString ) : System | ||
connectionString | string | The connection string. |
Результат | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// true to release both managed and unmanaged resources; false to release only unmanaged /// resources. /// |
Результат | void |
public OpenAsync ( |
||
cancellationToken | The cancellation instruction. | |
Результат | Task |
public SetConnectionTimeout ( int timeout ) : void | ||
timeout | int | The timeout in seconds |
Результат | void |
public static Shutdown ( string connectionString ) : void | ||
connectionString | string | The connection string. |
Результат | void |