mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
Move test files from pg_helio_distributed to pg_documentdb_distributed Clean up pg_documentdb ---- Code cleanup This pull request cleans up the `helio_api` references and updates them to `documentdb`. - `custom_query_scan.c` and `custom_scan_continuation.c`: Updated custom scan names from `HelioApi` to `DocumentDBApi`. - Deleted `commands_coll_stats.out` and `commands_coll_stats.sql` test files. - `start_oss_server.sh`: Removed `helio` server type and related logic. - `setup_psqlrc.sh`: Updated search path and settings from `helio` to `documentdb`. - `.devcontainer/Dockerfile` and `.github/containers/Build-Ubuntu/Dockerfile`: Updated user and labels from `heliodb` to `documentdb`.
22 lines
546 B
Bash
Executable File
22 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# fail if trying to reference a variable that is not set.
|
|
set -u
|
|
# exit immediately if a command exits with a non-zero status
|
|
set -e
|
|
|
|
touch ~/.psqlrc;
|
|
|
|
if grep -Fq "documentdb_api_catalog" ~/.psqlrc; then
|
|
echo "documentdb command already set"
|
|
else
|
|
echo "SET search_path TO documentdb_core,documentdb_api_catalog,public;" >> ~/.psqlrc
|
|
fi
|
|
|
|
if grep -Fq "bsonUseEJson" ~/.psqlrc; then
|
|
echo "BsonTextRepresentation already set"
|
|
else
|
|
echo "SET documentdb_core.bsonUseEJson TO true;" >> ~/.psqlrc
|
|
fi
|
|
|
|
export PSQLRC=~/.psqlrc |