mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
public commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { isDebug } from "../env";
|
||||
|
||||
export async function formatSql(sql: string): Promise<string> {
|
||||
if (isDebug()) {
|
||||
const { format } = await import("sql-formatter");
|
||||
return format(sql);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
Reference in New Issue
Block a user