MCPcopy Create free account
hub / github.com/outerbase/studio / wrapParen

Function wrapParen

src/drivers/sqlite/sqlite-generate-schema.ts:9–12  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

7import { omit, isEqual } from "lodash";
8
9function wrapParen(str: string) {
10 if (str.length >= 2 && str.startsWith("(") && str.endsWith(")")) return str;
11 return "(" + str + ")";
12}
13
14function generateCreateColumn(col: DatabaseTableColumn): string {
15 const tokens: string[] = [escapeIdentity(col.name), col.type];

Callers 1

generateCreateColumnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected