Properties

$configHandle

$configHandle

$group

$group

$node

$node

$role

$role

$connectionAdapter

$connectionAdapter

$connectionResource

$connectionResource

$sqlAdapter

$sqlAdapter

$connectionManager

$connectionManager

$servers

$servers

Methods

__construct()

__construct() : mixed

Returns

mixed —

init()

init() : mixed

Returns

mixed —

beginTransaction()

beginTransaction() : mixed

Trancaction methods

Returns

mixed —

commit()

commit() : mixed

Returns

mixed —

rollBack()

rollBack() : mixed

Returns

mixed —

query()

query( $sql,  $bind = null,  $forceUseMaster = false) : false

Execute an sql query

Parameters

$sql
$bind
$forceUseMaster

Returns

false —

on query failed --sql type-- --return value-- SELECT, SHOW, DESECRIBE, EXPLAIN rowset or NULL when no record found INSERT the ID generated for an AUTO_INCREMENT column UPDATE, DELETE, REPLACE affected count USE, DROP, ALTER, CREATE, SET etc true

escape()

escape(mixed  $str) : mixed

function posted by renlu

Parameters

mixed $str

Returns

mixed —

insertid()

insertid() : mixed

function posted by renlu

Returns

mixed —

bindParameter()

bindParameter( $sql,  $parameter) : string

Generate complete sql from sql template (with placeholder) and parameter

Parameters

$sql
$parameter

Returns

string —

getCurrentSqlAdapter()

getCurrentSqlAdapter() : mixed

Returns

mixed —

select()

select(mixed  $sql, mixed  $connResource) : mixed

Parameters

mixed $sql
mixed $connResource

Returns

mixed —

insert()

insert(mixed  $sql, mixed  $connResource) : mixed

Parameters

mixed $sql
mixed $connResource

Returns

mixed —

changeRows()

changeRows(mixed  $sql, mixed  $connResource) : mixed

Parameters

mixed $sql
mixed $connResource

Returns

mixed —

setSessionVar()

setSessionVar(mixed  $sql, mixed  $connResource) : mixed

Parameters

mixed $sql
mixed $connResource

Returns

mixed —

other()

other(mixed  $sql, mixed  $connResource) : mixed

Parameters

mixed $sql
mixed $connResource

Returns

mixed —