Mixin to provide alias methods to an expression.

Constructor

Defined sql.js Source
  1. define(null, {

as Function Public


Defined sql.js

Create an SQL alias patio.sql.AliasedExpression of the receiving column or expression to the given alias.

Example
  1. sql.identifier("column").as("alias");
  2. //=> "column" AS "alias"
Arguments Returns Source
  1. function (alias){
  2. return new AliasedExpression(this, alias);
  3. }

Documentation generated using coddoc.