Implement a function format(sql: str, encoding: str None = None, options) - str that formats a SQL string…
Implement a function format(sql: str, encoding: str None = None, options) - str that formats a SQL string…: a task in repo2rlenv-r2e (Harbor dataset). The function must accept: - sql (str): A SQL statement or multiple semicolon-separated statements, possibly empty or containing Unicode characters…
The task
The function must accept: - `sql` (str): A SQL statement or multiple semicolon-separated statements, possibly empty or containing Unicode characters. - `encoding` (str | None): Optional character encoding hint for the input SQL. - `**options`: Keyword arguments controlling formatting behavior. The following options…
Part of FineEnvs/repo2rlenv-r2e.