public class SqlServerConnection implements Connection
Microsoft SQL Server connection implementation.
Uses TDS (Tabular Data Stream) protocol for all communication.
import klyn.databases.sql.sqlserver
# cnx = SqlServerConnection.open("sqlserver://localhost:1433/app?user=sa&password=Secret123")
# print(cnx.connected)| Modifier and Type | Member | Description |
|---|---|---|
| public property | autoCommitautoCommit as Boolean |
No summary. |
| public property | catalogcatalog as String |
No summary. |
| public readonly property | clientInfo | No summary. |
| public readonly property | closedclosed as Boolean |
No summary. |
| public readonly property | connectedconnected as Boolean |
No summary. |
| public property | holdabilityholdability as ResultSetHoldability |
No summary. |
| public readonly property | metadatametadata as DatabaseMetaData |
No summary. |
| public property | networkTimeoutMillisnetworkTimeoutMillis as Int |
No summary. |
| public property | readOnlyreadOnly as Boolean |
No summary. |
| public property | schemaschema as String |
No summary. |
| public readonly property | sslContextsslContext as SSLContext |
No summary. |
| public property | transactionIsolationtransactionIsolation as TransactionIsolation |
No summary. |
| public readonly property | urlurl as String |
No summary. |
| public readonly property | userNameuserName as String |
No summary. |
| public property | warningwarning as SQLWarning |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | callablecallable(sql as String,
resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as CallableStatement throws SQLException |
No summary. |
| public | clearWarningsclearWarnings() as Void |
No summary. |
| public override | closeclose() as Void |
No summary. |
| public | commitcommit() as Void throws SQLException |
Performs a database connection operation. |
| public | createStatementcreateStatement(resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as Statement throws SQLException |
No summary. |
| public | isValid | No summary. |
| public | nativeSql | No summary. |
| public static | openopen(url as String,
properties as Map<String, String> = null,
sslContext as SSLContext = null) as SqlServerConnection throws SQLException |
Opens a SQL Server connection from a URL and optional properties. |
| public | prepareCallprepareCall(sql as String,
resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as CallableStatement throws SQLException |
No summary. |
| public | prepareStatementprepareStatement(sql as String,
resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as PreparedStatement throws SQLException |
No summary. |
| public | preparedprepared(sql as String,
resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as PreparedStatement throws SQLException |
No summary. |
| public | releaseSavepointreleaseSavepoint(savepoint as Savepoint) as Void throws SQLException |
Performs a database connection operation. |
| public | rollbackrollback(savepoint as Savepoint = null) as Void throws SQLException |
Performs a database connection operation. |
| public | savepointsavepoint(name as String = "") as Savepoint throws SQLException |
Performs a database connection operation. |
| public | statementstatement(resultSetType as ResultSetType = ResultSetType.FORWARD_ONLY,
concurrency as ResultSetConcurrency = ResultSetConcurrency.READ_ONLY,
holdability as ResultSetHoldability = ResultSetHoldability.CLOSE_CURSORS_AT_COMMIT) as Statement throws SQLException |
No summary. |