Click or drag to resize

CqlConnection Class

Represents a CQL connection.
Inheritance Hierarchy
System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Data.Common.DbConnection
        Cassandra.Data.CqlConnection

Namespace:  Cassandra.Data
Assembly:  Cassandra (in Cassandra.dll) Version: 3.10.0
Syntax
C#
public class CqlConnection : DbConnection, 
	ICloneable

The CqlConnection type exposes the following members.

Constructors
  NameDescription
Public methodCqlConnection()
Initializes a CqlConnection.
Public methodCqlConnection(String)
Initializes a CqlConnection.
Top
Properties
  NameDescription
Public propertyConnectionString
Gets or sets the string used to open the connection.
(Overrides DbConnection.ConnectionString.)
Public propertyDatabase
Returns the Keyspace
(Overrides DbConnection.Database.)
Public propertyDataSource
Gets the name of the database server to which to connect.
(Overrides DbConnection.DataSource.)
Public propertyServerVersion
Gets a string that represents the version of the server to which the object is connected.
(Overrides DbConnection.ServerVersion.)
Public propertyState
Gets a string that describes the state of the connection.
(Overrides DbConnection.State.)
Top
Methods
  NameDescription
Public methodChangeDatabase
Changes the current database for an open connection.
(Overrides DbConnection.ChangeDatabase(String).)
Public methodClone
Public methodClose
Closes the connection to the database. This is the preferred method of closing any open connection.
(Overrides DbConnection.Close().)
Public methodOpen
Opens a database connection with the settings specified by the ConnectionString.
(Overrides DbConnection.Open().)
Top
See Also