mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
489 B
19 lines
489 B
2 years ago
|
import { DbConfig } from '../../../src/interface/config';
|
||
2 years ago
|
|
||
2 years ago
|
const isSqlite = (context) => {
|
||
|
return (
|
||
|
(context.dbConfig as DbConfig).client === 'sqlite' ||
|
||
|
(context.dbConfig as DbConfig).client === 'sqlite3'
|
||
|
);
|
||
|
};
|
||
2 years ago
|
|
||
2 years ago
|
const isPg = (context) => {
|
||
|
return (context.dbConfig as DbConfig).client === 'pg';
|
||
|
};
|
||
2 years ago
|
|
||
|
const isMysql = (context) =>
|
||
|
(context.dbConfig as DbConfig).client === 'mysql' ||
|
||
|
(context.dbConfig as DbConfig).client === 'mysql2';
|
||
|
|
||
2 years ago
|
export { isSqlite, isMysql, isPg };
|