Merge branch 'develop' into feat/pnpm

This commit is contained in:
Wing-Kam Wong
2023-09-01 21:56:21 +08:00
145 changed files with 1417 additions and 4655 deletions

View File

@@ -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 };