MCPcopy
hub / github.com/drawdb-io/drawdb / getQuote

Function getQuote

src/utils/migrations/diffToSQL.js:12–16  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

10import { getRelationshipFields } from "../utils";
11
12function getQuote(db) {
13 if (db === DB.MYSQL || db === DB.MARIADB) return (s) => `\`${s}\``;
14 if (db === DB.MSSQL) return (s) => `[${s}]`;
15 return (s) => `"${s}"`;
16}
17
18function parseType(field, db) {
19 let res = field.type;

Callers 2

toTableFunction · 0.85
generateMigrationSQLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected