Skip to content
theyak edited this page Nov 6, 2012 · 1 revision

A TauSqlExpression is a container for a string that should not be escaped or otherwise processed before being sent to the database server in a query.

$db->update('users', array(
    'login_count' => new TauSqlExpression('login_count + 1'),
    'login_time' => new TauSqlExpression('NOW()')
));

Methods

__construct($expression = null)

Initializes the object, optionally setting the expression.


set($expression)

Sets the expression.


get($expression)

Gets the expression.


toString()

Gets the expression.

Clone this wiki locally