UNPKG

pgsql-deparser

Version:
21 lines (20 loc) 805 B
export declare class QuoteUtils { static needsQuotes(value: string): boolean; static quote(value: any): any; static escape(literal: string): string; /** * Escapes a string value for use in E-prefixed string literals * Handles both backslashes and single quotes properly */ static escapeEString(value: string): string; /** * Formats a string as an E-prefixed string literal with proper escaping * This wraps the complete E-prefix logic including detection and formatting */ static formatEString(value: string): string; /** * Determines if a string value needs E-prefix for escaped string literals * Detects backslash escape sequences that require E-prefix in PostgreSQL */ static needsEscapePrefix(value: string): boolean; }