Documentation

AbstractSQLAnywhereDriver
in package
implements Driver, ExceptionConverterDriver, VersionAwarePlatformDriver

Abstract base implementation of the {@link Doctrine\DBAL\Driver} interface for SAP Sybase SQL Anywhere based drivers.

Tags
author

Steve Müller st.mueller@dzh-online.de

link
www.doctrine-project.org
since
2.5

Interfaces, Classes and Traits

Driver
Driver interface.
ExceptionConverterDriver
Contract for a driver that is capable of converting DBAL driver exceptions into standardized DBAL driver exceptions.
VersionAwarePlatformDriver
Contract for a driver that is able to create platform instances by version.

Table of Contents

convertException()  : DriverException
Converts a given DBAL driver exception into a standardized DBAL driver exception.
createDatabasePlatformForVersion()  : AbstractPlatform
Factory method for creating the appropriate platform instance for the given version.
getDatabase()  : string
Gets the name of the database connected to for this driver.
getDatabasePlatform()  : AbstractPlatform
Gets the DatabasePlatform instance that provides all the metadata about the platform this driver connects to.
getSchemaManager()  : AbstractSchemaManager
Gets the SchemaManager that can be used to inspect and change the underlying database schema of the platform this driver connects to.

Methods

convertException()

Converts a given DBAL driver exception into a standardized DBAL driver exception.

public convertException(mixed $message, DriverException $exception) : DriverException
Parameters
$message : mixed

The DBAL exception message to use.

$exception : DriverException

The DBAL driver exception to convert.

Tags
link
http://dcx.sybase.com/index.html#sa160/en/saerrors/sqlerror.html
Return values
DriverException

An instance of one of the DriverException subclasses.

createDatabasePlatformForVersion()

Factory method for creating the appropriate platform instance for the given version.

public createDatabasePlatformForVersion(mixed $version) : AbstractPlatform
Parameters
$version : mixed

The platform/server version string to evaluate. This should be given in the notation the underlying database vendor uses.

Return values
AbstractPlatform

Search results