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

Function exportSQL

src/utils/exportSQL/index.js:9–26  ·  view source on GitHub ↗
(diagram)

Source from the content-addressed store, hash-verified

7import { toSqlite } from "./sqlite";
8
9export function exportSQL(diagram) {
10 switch (diagram.database) {
11 case DB.SQLITE:
12 return toSqlite(diagram);
13 case DB.MYSQL:
14 return toMySQL(diagram);
15 case DB.POSTGRES:
16 return toPostgres(diagram);
17 case DB.MARIADB:
18 return toMariaDB(diagram);
19 case DB.MSSQL:
20 return toMSSQL(diagram);
21 case DB.ORACLESQL:
22 return toOracleSQL(diagram);
23 default:
24 return "";
25 }
26}

Callers 1

ControlPanelFunction · 0.90

Calls 6

toSqliteFunction · 0.90
toMySQLFunction · 0.90
toPostgresFunction · 0.90
toMariaDBFunction · 0.90
toMSSQLFunction · 0.90
toOracleSQLFunction · 0.90

Tested by

no test coverage detected