\app\framework\Component\DatabaseManager

Class Manager

Summary

Methods
Properties
Constants
__construct()
connection()
getConnection()
useConnection()
select()
selectRaw()
insertRaw()
updateRaw()
deleteRaw()
table()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$connections
$connectionToUse
$ConnectionFactory
$QueryBuilder
N/A

Properties

$connections

$connections : array

Type

array — Connection

$connectionToUse

$connectionToUse : string

Type

string

Methods

__construct()

__construct() 

Manager constructor.

getConnection()

getConnection(string|null  $name = null) : false|\app\framework\Component\Database\Connection\Connection

Return the connection or false if connection doesn't exist.

Parameters

string|null $name

Name of the connection can be null if only one connection is configured.

Returns

false|\app\framework\Component\Database\Connection\Connection

useConnection()

useConnection(string  $name = null) : \app\framework\Component\Database\Manager

Specify what connection shall be used.

Parameters

string $name

Leave empty to use default

Returns

\app\framework\Component\Database\Manager

selectRaw()

selectRaw(\app\framework\Component\Database\string  $query, array  $bindings = array()) 

Parameters

\app\framework\Component\Database\string $query
array $bindings

insertRaw()

insertRaw(\app\framework\Component\Database\string  $query, array  $bindings = array()) 

Parameters

\app\framework\Component\Database\string $query
array $bindings

updateRaw()

updateRaw(\app\framework\Component\Database\string  $query, array  $bindings = array()) 

Parameters

\app\framework\Component\Database\string $query
array $bindings

deleteRaw()

deleteRaw(\app\framework\Component\Database\string  $query, array  $bindings = array()) 

Parameters

\app\framework\Component\Database\string $query
array $bindings