\Dewdrop\DbExpr

Expr allows you to inject raw SQL segments into a \Dewdrop\Db\Select or other context in which Dewdrop might otherwise quote and therefore misinterpret the code.

Summary

Methods
Properties
Constants
__construct()
__toString()
No public properties found
No constants found
No protected methods found
$expression
N/A
No private methods found
No private properties found
N/A

Properties

$expression

$expression : string

Storage for the SQL expression.

Type

string

Methods

__construct()

__construct(string  $expression) 

Instantiate an expression, which is just a string stored as an instance member variable.

Parameters

string $expression

The string containing a SQL expression.

__toString()

__toString() : string

Return expression property when this object is used as a string (e.g.

concatenated with another string value).

Returns

string —

The string of the SQL expression stored in this object.