mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Import from mssql
This commit is contained in:
@@ -109,7 +109,7 @@ export const SIDESHEET = {
|
||||
export const DB = {
|
||||
MYSQL: "mysql",
|
||||
POSTGRES: "postgresql",
|
||||
MSSQL: "mssql",
|
||||
MSSQL: "transactsql",
|
||||
SQLITE: "sqlite",
|
||||
MARIADB: "mariadb",
|
||||
GENERIC: "generic",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { strHasQuotes } from "../utils/utils";
|
||||
import { DB } from "./constants";
|
||||
|
||||
const intRegex = /^-?\d*$/;
|
||||
const doubleRegex = /^-?\d*.?\d+$/;
|
||||
@@ -1616,12 +1617,12 @@ export const mssqlTypes = new Proxy(mssqlTypesBase, {
|
||||
});
|
||||
|
||||
const dbToTypesBase = {
|
||||
generic: defaultTypes,
|
||||
mysql: mysqlTypes,
|
||||
postgresql: postgresTypes,
|
||||
sqlite: sqliteTypes,
|
||||
mssql: mssqlTypes,
|
||||
mariadb: mysqlTypes,
|
||||
[DB.GENERIC]: defaultTypes,
|
||||
[DB.MYSQL]: mysqlTypes,
|
||||
[DB.POSTGRES]: postgresTypes,
|
||||
[DB.SQLITE]: sqliteTypes,
|
||||
[DB.MSSQL]: mssqlTypes,
|
||||
[DB.MARIADB]: mysqlTypes,
|
||||
};
|
||||
|
||||
export const dbToTypes = new Proxy(dbToTypesBase, {
|
||||
|
||||
Reference in New Issue
Block a user