DefinitelyTyped/types/sqlstring/index.d.ts
2019-01-03 17:03:19 +00:00

11 lines
505 B
TypeScript

// Type definitions for sqlstring 2.2
// Project: https://github.com/mysqljs/sqlstring
// Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export function format(sql: string, args: object | any[]): string;
export function escape(value: any): string;
export function escapeId(value: any, dotQualifier?: boolean): string;
export function raw(sql: string): { toSqlString: () => string };