SqlServerDriver
classin packageklyn.databases.sql.sqlserver
public class SqlServerDriver implements Driver
SqlServerDriver
All Implemented Interfaces: Driver

Microsoft SQL Server driver entry point for klyn.databases.sql.

import klyn.databases.sql.sqlserver

# cnx = SqlServerDriver.connect("sqlserver://localhost:1433/app", "app", "secret")
Properties
Modifier and Type Member Description
public readonly property name
name as String
Human-readable driver name.
Constructors
Modifier and Type Member Description
public SqlServerDriver Creates the stateless SQL Server driver object.
Methods
Modifier and Type Member Description
public static connect
connect(url as String, user as String = "", password as String = "", properties as Map<String, String> = null, sslContext as SSLContext = null) as SqlServerConnection throws Exception
Opens a SQL Server connection.
public openConnection
openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException
Opens a SQL Server connection from URL and connection properties.
public supports
supports(url as String) as Boolean
Returns true for SQL Server connection URLs.