ts-db-helper
Version:
Simple ORM based on TypeScript
41 lines (40 loc) • 1.1 kB
TypeScript
import { IQueryHelper } from '../interfaces/i-query-helper.interface';
/**
* @public
* @class ColumnClauseValue
*
* @description
* Clause that hold a column comparission with the model that can deliver an alias.
*
* @author Olivier Margarit
*
* @since 0.2
*/
export declare class ColumnClauseValue {
name: string;
private aliasing;
/**
* @public
* @property {string} alias the column alias
*/
readonly alias: string | undefined;
/**
* @public
* @property {IQueryHelper} querySrc the query object that hold the column and deliver the alias
*/
readonly querySrc: IQueryHelper | undefined;
/**
* @public
* @constructor
*
* @param {string} name the column name
* @param {string|IQueryHelper} aliasing optaional param that is the alias or provide it
*/
constructor(name: string, aliasing?: string | IQueryHelper | undefined);
/**
* @method fqn full qulaified name
*
* @return the full name with the namespace alias
*/
fqn(): string;
}