final class SqlExpression (View source)

Provides the sql expression contract for the database subsystem.

Methods

__construct(string $sql)

Initializes this SqlExpression with the collaborators and state required by its database contract.

static SqlExpression
raw(string $sql)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
sql()

Provides this part of the database contract while preserving the object's current state and driver semantics.

string

Details

__construct

__construct(string $sql)

Initializes this SqlExpression with the collaborators and state required by its database contract.

Parameters

string $sql

raw

static SqlExpression raw(string $sql)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $sql

Return Value

SqlExpression

sql

string sql()

Provides this part of the database contract while preserving the object's current state and driver semantics.

Return Value

string