mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
public commit
This commit is contained in:
9
app/src/core/utils/sql.ts
Normal file
9
app/src/core/utils/sql.ts
Normal file
@@ -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