UNPKG

@gethue/sql-formatter

Version:

Format whitespace in a SQL query to make it more readable

21 lines (19 loc) 418 B
export interface FormatOptions { language?: | 'db2' | 'mariadb' | 'mysql' | 'n1ql' | 'plsql' | 'postgresql' | 'redshift' | 'spark' | 'sql' | 'tsql'; params?: { [x: string]: string } | string[]; indent?: string; uppercase?: boolean; linesBetweenQueries?: number; indentQuerySeparator: boolean; } export function format(sql: string, options?: FormatOptions): string;