class Illuminate / Database / PDO / SqlServerConnection
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

SqlServerConnection

Implements

  • Doctrine\...\ServerInfoAwareConnection

Properties

protected

$connection
  • Connection
  • The underlying connection instance.

    Default: null

    Methods

    public

    __construct ( Connection $connection ) : void

    Create a new SQL Server connection instance.

    Parameters

    public

    prepare ( string $sql ) : Doctrine\...\Statement

    Prepare a new SQL statement.

    Parameters

    • $sql string
    public

    query ( string $sql ) : Doctrine\...\Result

    Execute a new query against the connection.

    Parameters

    • $sql string
    public

    exec ( string $statement ) : int

    Execute an SQL statement.

    Parameters

    • $statement string
    public

    lastInsertId ( $name ) : mixed

    Get the last insert ID.

    Parameters

    • $name string|null
    public

    beginTransaction ( ) : bool

    Begin a new database transaction.

    public

    commit ( ) : bool

    Commit a database transaction.

    public

    rollBack ( ) : bool

    Rollback a database transaction.

    public

    quote ( $value , $type ) : string

    Wrap quotes around the given input.

    Parameters

    • $value string
    • $type int
    public

    getServerVersion ( ) : string

    Get the server version for the connection.

    public

    getWrappedConnection ( ) : PDO

    Get the wrapped PDO connection.