mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
10 lines
222 B
TypeScript
10 lines
222 B
TypeScript
import { isDebug } from "../env";
|
|
|
|
export async function formatSql(sql: string): Promise<string> {
|
|
if (isDebug()) {
|
|
const { format } = await import("sql-formatter");
|
|
return format(sql);
|
|
}
|
|
return "";
|
|
}
|