Remote database connection for execution of SQL queries. More...

Classes | |
| class | OpenParameters |
Public Types | |
| enum class | ReplicationType { SQLReplication , HAReplication } |
Public Member Functions | |||
| SqlRemoteConnection (Database db, OpenParameters parameters) | |||
| SqlRemoteConnection (Database db, string host, int port, int maxAttempts) | |||
| Constructor of the remote database connection. More... | |||
| SqlRemoteConnection (Database db, string host, int port, int maxAttempts, int txBufSize) | |||
| Constructor of the remote database connection. More... | |||
| SqlRemoteConnection (Database db, string[] nodes, int nReplicas, ReplicationType replType, int maxAttempts, int txBufSize) | |||
| Constructor of the distributed database connection. More... | |||
| SqlRemoteConnection (Database db, string[] nodes) | |||
| Constructor of the distributed database connection. More... | |||
| SqlResultSet | ExecuteQuery (String query, params Object[] args) | ||
Execute SQL query.
| |||
| int | ExecuteStatement (String stmt, params Object[] args) | ||
Execute SQL update statement
| |||
| void | DetachResultSet (SqlResultSet res) | ||
| Internal method called by SqlResultSet. Should not be explicitly called by application. More... | |||
| void | Disconnect () | ||
| Close this connection. More... | |||
| void | Dispose () | ||
| Close this connection. The same as Disconnect. More... | |||
Properties | |
| IDatabaseWrapper | Wrapper [get] |
Properties inherited from eXtremeDB.ISqlConnection | |
| IDatabaseWrapper | Wrapper [get] |
Remote database connection for execution of SQL queries.
|
strong |
| eXtremeDB.SqlRemoteConnection.SqlRemoteConnection | ( | Database | db, |
| OpenParameters | parameters | ||
| ) |
| eXtremeDB.SqlRemoteConnection.SqlRemoteConnection | ( | Database | db, |
| string | host, | ||
| int | port, | ||
| int | maxAttempts | ||
| ) |
Constructor of the remote database connection.
| db | database instance |
| host | hostname of xsql server |
| port | port of xsql server |
| maxAttempts | maximal attempts of connection to server, interval between each connection attempt is one second, so totally connection will be performed during maxAttempts seconds |
| eXtremeDB.SqlRemoteConnection.SqlRemoteConnection | ( | Database | db, |
| string | host, | ||
| int | port, | ||
| int | maxAttempts, | ||
| int | txBufSize | ||
| ) |
Constructor of the remote database connection.
| db | database instance |
| host | hostname of xsql server |
| port | port of xsql server |
| maxAttempts | maximal attempts of connection to server, interval between each connection attempt is one second, so totally connection will be performed during maxAttempts seconds |
| txBufSize | size of internal transmit buffer in bytes. Required to serialize query or statement data |
| eXtremeDB.SqlRemoteConnection.SqlRemoteConnection | ( | Database | db, |
| string[] | nodes, | ||
| int | nReplicas, | ||
| ReplicationType | replType, | ||
| int | maxAttempts, | ||
| int | txBufSize | ||
| ) |
Constructor of the distributed database connection.
| db | database instance |
| nodes | names of database nodes, each element should have format "HOST:PORT" |
| nReplicas | redundancy level |
| replType | replications method |
| maxAttempts | maximal attempts of connection to server, interval between each connection attempt is one second, so totally connection will be performed during maxAttempts seconds |
| txBufSize | size of internal transmit buffer in bytes. Required to serialize query or statement data |
| eXtremeDB.SqlRemoteConnection.SqlRemoteConnection | ( | Database | db, |
| string[] | nodes | ||
| ) |
Constructor of the distributed database connection.
| db | database instance |
| nodes | names of database nodes, each element should have format "HOST:PORT" |
| void eXtremeDB.SqlRemoteConnection.DetachResultSet | ( | SqlResultSet | result | ) |
Internal method called by SqlResultSet. Should not be explicitly called by application.
Implements eXtremeDB.ISqlConnection.
| void eXtremeDB.SqlRemoteConnection.Disconnect | ( | ) |
Close this connection.
Implements eXtremeDB.ISqlConnection.
| void eXtremeDB.SqlRemoteConnection.Dispose | ( | ) |
Close this connection. The same as Disconnect.
| SqlResultSet eXtremeDB.SqlRemoteConnection.ExecuteQuery | ( | String | query, |
| params Object[] | args | ||
| ) |
Execute SQL query.
| query | SQL query with '?' used as parameter placeholder. |
Implements eXtremeDB.ISqlConnection.
| int eXtremeDB.SqlRemoteConnection.ExecuteStatement | ( | String | stmt, |
| params Object[] | args | ||
| ) |
Execute SQL update statement
| stmt | SQL DML statement with '?' used as parameter placeholder. |
Implements eXtremeDB.ISqlConnection.
|
get |