\Support\PDOProxyPDOProxy

Summary

Methods
Properties
Constants
__construct()
initialize()
config()
connect()
prepare()
beginTransaction()
commit()
rollBack()
forking()
forkAfter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$pdo
$isTransaction
$config
$pool
N/A

Properties

$pdo

$pdo : \PDO

Type

\PDO

$isTransaction

$isTransaction : bool

Type

bool

$config

$config : array

Type

array

$pool

$pool : \Support\PDOProxy\PDOProxyPool

Type

PDOProxyPool

Methods

__construct()

__construct(string  $name, string|null  $protocol = TCPProtocol::class) : mixed

PDOProxy constructor.

Parameters

string $name
string|null $protocol

Returns

mixed —

initialize()

initialize() : void

config()

config(array  $config, \Support\PDOProxy\PDOProxyPool  $pool) : \Support\PDOProxy\PDOProxy

Parameters

array $config
\Support\PDOProxy\PDOProxyPool $pool

Returns

\Support\PDOProxy\PDOProxy —

connect()

connect() : $this

Connect native PDO

Returns

$this —

prepare()

prepare(string  $query, array|null  $bindings = [], array|null  $bindParams = []) : false|array

数据库查询

Parameters

string $query
array|null $bindings
array|null $bindParams

Returns

false|array —

beginTransaction()

beginTransaction() : bool

开始数据库事务

Returns

bool —

commit()

commit() : bool

提交事务查询

Returns

bool —

rollBack()

rollBack() : bool

回滚事务查询

Returns

bool —

forking()

forking() : void

forkAfter()

forkAfter() : void