Connection
in package
implements
ServerInfoAwareConnection
FinalYes
Table of Contents
Interfaces
- ServerInfoAwareConnection
- Contract for a connection that is able to provide information about the server it is connected to.
Properties
- $connection : SQLite3
Methods
- beginTransaction() : bool
- commit() : bool
- exec() : int
- getNativeConnection() : SQLite3
- getServerVersion() : string
- Returns information about the version of the database server connected to.
- lastInsertId() : int
- prepare() : Statement
- query() : Result
- quote() : string
- rollBack() : bool
Properties
$connection
private
SQLite3
$connection
Methods
beginTransaction()
public
beginTransaction() : bool
Return values
boolcommit()
public
commit() : bool
Return values
boolexec()
public
exec(string $sql) : int
Parameters
- $sql : string
Return values
intgetNativeConnection()
public
getNativeConnection() : SQLite3
Return values
SQLite3getServerVersion()
Returns information about the version of the database server connected to.
public
getServerVersion() : string
Return values
stringlastInsertId()
public
lastInsertId([mixed $name = null ]) : int
Parameters
- $name : mixed = null
Tags
Return values
intprepare()
public
prepare(string $sql) : Statement
Parameters
- $sql : string
Return values
Statementquery()
public
query(string $sql) : Result
Parameters
- $sql : string
Return values
Resultquote()
public
quote(mixed $value[, mixed $type = ParameterType::STRING ]) : string
Parameters
- $value : mixed
- $type : mixed = ParameterType::STRING
Tags
Return values
stringrollBack()
public
rollBack() : bool