sequelize
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift and Snowflake’s Data Cloud. It features solid transaction support, relations, eager and lazy loading, read replication and more.
21 lines (20 loc) • 760 B
TypeScript
import { 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 {SQLFragment[]} 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 {string} 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);
}