mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:35:09 +00:00
Merge branch 'develop' into feat/pnpm
This commit is contained in:
@@ -10,16 +10,13 @@ const isSqlite = (context: NcContext) => context.dbType === 'sqlite';
|
||||
|
||||
const isPg = (context: NcContext) => context.dbType === 'pg';
|
||||
|
||||
// hardwired for hub; this has to be configured to false in nocodb
|
||||
// consider reading this from environment variable
|
||||
const isHub = () => true;
|
||||
const isEE = () => process.env.EE === 'true';
|
||||
|
||||
const pg_credentials = (context: NcContext) => ({
|
||||
user: 'postgres',
|
||||
host: 'localhost',
|
||||
// todo: Hack to resolve issue with pg resetting
|
||||
database: `sakila_${context.workerId}`,
|
||||
database: `sakila${context.workerId}`,
|
||||
password: 'password',
|
||||
port: 5432,
|
||||
});
|
||||
@@ -68,4 +65,4 @@ async function sqliteExec(query) {
|
||||
}
|
||||
}
|
||||
|
||||
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isHub, isEE };
|
||||
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE };
|
||||
|
||||
Reference in New Issue
Block a user