@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) • 740 B
TypeScript
import type { SQLFragment } from '../generic/sql-fragment';
/**
* Joins an array with a single space, auto trimming when needed.
*
* Certain elements do not get leading/trailing spaces.
*
* @param array The array to be joined. Falsy values are skipped. If an
* element is another array, this function will be called recursively on that array.
* Otherwise, if a non-string, non-falsy value is present, a TypeError will be thrown.
*
* @returns The joined string.
*
* @private
*/
export declare function joinSQLFragments(array: SQLFragment[]): string;
export declare class JoinSQLFragmentsError extends TypeError {
args: SQLFragment[];
fragment: any;
constructor(args: SQLFragment[], fragment: any, message: string);
}