interface ServerInfoAwareConnection (View source)

Contract for a connection that is able to provide information about the server it is connected to.

Methods

string
getServerVersion()

Returns the version number of the database server connected to.

boolean
requiresQueryForServerVersion()

Checks whether a query is required to retrieve the database server version.

Details

string getServerVersion()

Returns the version number of the database server connected to.

Return Value

string

boolean requiresQueryForServerVersion()

Checks whether a query is required to retrieve the database server version.

Return Value

boolean True if a query is required to retrieve the database server version, false otherwise.