seamless-cloud
Version:
JavaScript client for Seamless.cloud (web and node)
16 lines (15 loc) • 499 B
TypeScript
/**
* SQL Tagged Template Literal
* Format returned is compatible with running queries on Seamless.cloud
*/
export declare function sql(strings: TemplateStringsArray, ...values: any[]): {
querySql: string;
queryVars: {
[key: string]: any;
};
};
/**
* Format SQL string to remove all extra whitespace and linebreaks, etc. that are NOT inside quotes
* Standardizes the SQL string for matching, logging, and hashing.
*/
export declare function sqlFormat(sql: string): string;