@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
21 lines (20 loc) • 894 B
TypeScript
import { BaseSqlExpression, SQL_IDENTIFIER } from './base-sql-expression.js';
/**
* Do not use me directly. Use {@link sql.col}
*/
export declare class Col extends BaseSqlExpression {
protected readonly [SQL_IDENTIFIER]: 'col';
readonly identifiers: string[];
constructor(...identifiers: string[]);
}
/**
* Creates an object which represents a column in the DB, this allows referencing another column in your query.
* This is often useful in conjunction with {@link sql.fn}, {@link sql.where} and {@link sql} which interpret strings as values and not column names.
*
* Col works similarly to {@link sql.identifier}, but "*" has special meaning, for backwards compatibility.
*
* ⚠️ We recommend using {@link sql.identifier}, or {@link sql.attribute} instead.
*
* @param identifiers The name of the column
*/
export declare function col(...identifiers: string[]): Col;