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

Function wrapParen

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

Source from the content-addressed store, hash-verified

7} from "../base-driver";
8
9function wrapParen(str: string) {
10 if (str.toUpperCase() === "NULL") return str;
11 if (str.length >= 2 && str.startsWith("(") && str.endsWith(")")) return str;
12 return "(" + str + ")";
13}
14
15function generateCreateColumn(
16 driver: BaseDriver,

Callers 1

generateCreateColumnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected