class
Illuminate
/
Database
/
PDO
/
Connection
Connection
Implements
- Doctrine\...\ServerInfoAwareConnection
Properties
Methods
public
__construct ( PDO $connection ) : void
Create a new PDO connection instance.
Parameters
- $connection PDO
public
exec ( string $statement ) : int
Execute an SQL statement.
Parameters
- $statement string
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
lastInsertId ( $name ) : mixed
Get the last insert ID.
Parameters
- $name string|null
protected
createStatement ( PDOStatement $stmt ) : Doctrine\...\Statement
Create a new statement instance.
Parameters
- $stmt PDOStatement
public
beginTransaction ( ) : bool
Begin a new database transaction.
public
commit ( ) : bool
Commit a database transaction.
public
rollBack ( ) : bool
Rollback a database transaction.
public
quote ( $input , $type ) : string
Wrap quotes around the given input.
Parameters
- $input string
- $type string
public
getServerVersion ( ) : string
Get the server version for the connection.