MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / format

Function format

app/tests/query2sql.test.ts:15–20  ·  view source on GitHub ↗
(sql: string)

Source from the content-addressed store, hash-verified

13import { throwExp } from 'shared/utility'
14
15async function format(sql: string) {
16 return await actualFormat('select * from x where ' + sql, {
17 parser: 'sqlite',
18 plugins: [plugin],
19 })
20}
21
22function unparameterize(i: { i: number }, query: CompiledQuery<SqlBool>) {
23 let parameterizedSql = query.sql

Callers 3

formatHtmlFunction · 0.85
assertEqualFunction · 0.85
testJoinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected