Skip to content

Commit 91623a4

Browse files
miguel-lansdorfGerilLeto
authored andcommitted
changed env: sql parser to query parser
1 parent 4d27b47 commit 91623a4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

api/.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SERVER_PORT=31200
33
CORS_ALLOW_ORIGIN=
44
SECRET_KEY="secret key for encrypting datasource passwords"
55
ENABLE_AUTH=0
6-
ENABLE_SQL_PARSER=0
6+
ENABLE_QUERY_PARSER=0
77
SUPER_ADMIN_PASSWORD=
88
DATABASE_CONNECTION_TIMEOUT_MS=
99
DATABASE_POOL_SIZE=

api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add a `.env` file based on `.env.sample`
1111
- `CORS_ALLOW_ORIGIN` for configuring cors. separate multiple origins by `;`. Defaults to `http://localhost`
1212
- `SECRET_KEY` for encrypting and decrypting passwords used in datasource configurations
1313
- `ENABLE_AUTH` Whether to add authentication and authorization to routes. 0 = disabled, 1 = enabled
14-
- `ENABLE_SQL_PARSER` Whether to enable Server-Side SQL parsing. 0 = disabled, 1 = enabled
14+
- `ENABLE_QUERY_PARSER` Whether to enable Server-Side Query parsing. 0 = disabled, 1 = enabled
1515
- `SUPER_ADMIN_PASSWORD` The password which will be configured for the superadmin account during migration. Must be configured before migration is run. If value is not set, password will be 'secret'
1616
- `DATABASE_CONNECTION_TIMEOUT_MS` for configuration the time after which the db connection will timeout in milliseconds. Default is 30000ms (30 seconds)
1717
- `DATABASE_POOL_SIZE` for configuration the maximum number of clients in the pool

api/src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export const DATABASE_CONNECTION_TIMEOUT_MS = parseInt(process.env.DATABASE_CONN
66
export const DATABASE_POOL_SIZE = parseInt(process.env.DATABASE_POOL_SIZE ?? '10');
77
export const DEFAULT_LANGUAGE = 'en';
88
export const FS_CACHE_RETAIN_TIME = '86400';
9-
export const QUERY_PARSING_ENABLED = process.env.ENABLE_SQL_PARSER === '1';
9+
export const QUERY_PARSING_ENABLED = process.env.ENABLE_QUERY_PARSER === '1';

api/tests/e2e/jest.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = async (globalConfig) => {
88
process.env.WEBSITE_LOGO_URL_EN = 'WEBSITE_LOGO_URL_EN';
99
process.env.WEBSITE_LOGO_JUMP_URL = '/WEBSITE_LOGO_JUMP_URL';
1010
process.env.WEBSITE_FAVICON_URL = '/WEBSITE_FAVICON_URL';
11-
process.env.ENABLE_SQL_PARSER = '1';
11+
process.env.ENABLE_QUERY_PARSER = '1';
1212

1313
dashboardDataSource.setOptions({ url: process.env.END_2_END_TEST_PG_URL! });
1414

api/tests/integration/jest.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = async (globalConfig) => {
88
process.env.WEBSITE_LOGO_URL_EN = 'WEBSITE_LOGO_URL_EN';
99
process.env.WEBSITE_LOGO_JUMP_URL = '/WEBSITE_LOGO_JUMP_URL';
1010
process.env.WEBSITE_FAVICON_URL = '/WEBSITE_FAVICON_URL';
11-
process.env.ENABLE_SQL_PARSER = '1';
11+
process.env.ENABLE_QUERY_PARSER = '1';
1212

1313
dashboardDataSource.setOptions({ url: process.env.INTEGRATION_TEST_PG_URL! });
1414

0 commit comments

Comments
 (0)