SqlConnectOptions

Connect options for configuring {@link SqlConnection} or {@link Pool}.

Constructors

this
this()
Undocumented in source.
this
this(HttpURI uri)
Undocumented in source.
this
this(SqlConnectOptions other)
Undocumented in source.

Members

Functions

addProperty
SqlConnectOptions addProperty(string key, string value)

Add a property for this client, which will be sent to server at the connection start.

getCachePreparedStatements
bool getCachePreparedStatements()

Get whether prepared statements cache is enabled.

getDatabase
string getDatabase()

Get the default database name for the connection.

getHost
string getHost()

Get the host for connecting to the server.

getPassword
string getPassword()

Get the user password to be used for the authentication.

getPort
int getPort()

Get the port for connecting to the server.

getPreparedStatementCacheMaxSize
int getPreparedStatementCacheMaxSize()

Get the maximum number of prepared statements that the connection will cache.

getPreparedStatementCacheSqlLimit
int getPreparedStatementCacheSqlLimit()

Get the maximum length of prepared statement SQL string that the connection will cache.

getProperties
Map!(string, string) getProperties()

@return the value of current connection properties

getUser
string getUser()

Get the user account to be used for the authentication.

initialize
void initialize()

Initialize with the default options.

setCachePreparedStatements
SqlConnectOptions setCachePreparedStatements(bool cachePreparedStatements)

Set whether prepared statements cache should be enabled.

setDatabase
SqlConnectOptions setDatabase(string database)

Specify the default database for the connection.

setHost
SqlConnectOptions setHost(string host)

Specify the host for connecting to the server.

setPassword
SqlConnectOptions setPassword(string password)

Specify the user password to be used for the authentication.

setPort
SqlConnectOptions setPort(int port)

Specify the port for connecting to the server.

setPreparedStatementCacheMaxSize
SqlConnectOptions setPreparedStatementCacheMaxSize(int preparedStatementCacheMaxSize)

Set the maximum number of prepared statements that the connection will cache.

setPreparedStatementCacheSqlLimit
SqlConnectOptions setPreparedStatementCacheSqlLimit(int preparedStatementCacheSqlLimit)

Set the maximum length of prepared statement SQL string that the connection will cache.

setProperties
SqlConnectOptions setProperties(Map!(string, string) properties)

Set properties for this client, which will be sent to server at the connection start.

setUser
SqlConnectOptions setUser(string user)

Specify the user account to be used for the authentication.

Variables

DEFAULT_CACHE_PREPARED_STATEMENTS
enum bool DEFAULT_CACHE_PREPARED_STATEMENTS;
Undocumented in source.
DEFAULT_PREPARED_STATEMENT_CACHE_MAX_SIZE
enum int DEFAULT_PREPARED_STATEMENT_CACHE_MAX_SIZE;
Undocumented in source.
DEFAULT_PREPARED_STATEMENT_CACHE_SQL_LIMIT
enum int DEFAULT_PREPARED_STATEMENT_CACHE_SQL_LIMIT;
Undocumented in source.

Meta