/** * Wraps a name in backticks, escaping backslashes and backticks so the name can * never terminate the quoted identifier early. Matches ClickHouse's own * formatting of quoted identifiers. */ export declare function quoteIdentifier(name: string): string; /** * Renders a database or object name. Plain identifiers stay bare so generated * SQL is unchanged for existing schemas; anything else is quoted and escaped. */ export declare function renderIdentifier(name: string): string; export declare function renderQualifiedName(database: string, name: string): string; /** Returns why a name cannot be used as a ClickHouse identifier, if it can't. */ export declare function describeInvalidIdentifier(name: string): string | undefined; /** * Replaces every backtick-quoted identifier in a SQL fragment with its raw, * unescaped name, leaving string literals untouched. Used to compare clauses * that ClickHouse re-renders with its own quoting (e.g. key clauses in drift). */ export declare function unquoteIdentifiers(sql: string): string; export declare function unescapeQuoted(body: string, quote?: string): string; //# sourceMappingURL=identifier.d.ts.map