PHP Database

AbstractSql
in package
implements SqlInterface

AbstractYes

This is a simple SQL implementation that other SQL can inherit from.

Table of Contents

Interfaces

SqlInterface
Describes SQL interface.

Properties

$affected_rows  : int
$database  : MySqlDTO|PostgreSqlDTO|mixed
$executed  : string
$functions  : array<string|int, string>
$insert_id  : int
$queried  : string

Methods

getAffectedRows()  : int
Retrieve number of affected rows in the last execute() operation.
getExecuted()  : string
Retrieve the last command that was run in execute() operation.
getInsertId()  : int
Retrieve the ID generated in the last execute() operation.
getQueried()  : string
Retrieve the last command that was run in query() operation.
isFunction()  : bool
Check if data expression is sql function.

Properties

$database

protected MySqlDTO|PostgreSqlDTO|mixed $database = null

$functions

protected array<string|int, string> $functions = []

Methods

getAffectedRows()

Retrieve number of affected rows in the last execute() operation.

public getAffectedRows() : int
Return values
int

getExecuted()

Retrieve the last command that was run in execute() operation.

public getExecuted() : string
Return values
string

getInsertId()

Retrieve the ID generated in the last execute() operation.

public getInsertId() : int
Return values
int

getQueried()

Retrieve the last command that was run in query() operation.

public getQueried() : string
Return values
string

isFunction()

Check if data expression is sql function.

public isFunction(string $Expression) : bool
Parameters
$Expression : string

The sql expression.

Return values
bool

        
On this page

Search results