meadow-connection-postgresql 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -0
- package/docker-compose.yml +20 -0
- package/docs/.nojekyll +0 -0
- package/docs/README.md +96 -0
- package/docs/_cover.md +17 -0
- package/docs/_sidebar.md +33 -0
- package/docs/_topbar.md +5 -0
- package/docs/api/connect.md +100 -0
- package/docs/api/connectAsync.md +92 -0
- package/docs/api/createTable.md +116 -0
- package/docs/api/createTables.md +128 -0
- package/docs/api/generateCreateTableStatement.md +136 -0
- package/docs/api/generateDropTableStatement.md +71 -0
- package/docs/api/pool.md +171 -0
- package/docs/api/reference.md +112 -0
- package/docs/api.md +3 -0
- package/docs/architecture.md +168 -0
- package/docs/css/docuserve.css +73 -0
- package/docs/index.html +39 -0
- package/docs/quickstart.md +181 -0
- package/docs/retold-catalog.json +62 -0
- package/docs/retold-keyword-index.json +4964 -0
- package/docs/schema.md +148 -0
- package/package.json +5 -2
- package/source/Meadow-Connection-PostgreSQL.js +79 -99
- package/source/Meadow-Schema-PostgreSQL.js +1048 -0
- package/start-postgresql.sh +21 -0
- package/stop-postgresql.sh +9 -0
- package/test/PostgreSQL_tests.js +865 -1
- package/test/docker-init/01-chinook-schema.sql +177 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Start the PostgreSQL test server in Docker
|
|
3
|
+
# Uses port 25432 to avoid conflicts with any local PostgreSQL instance
|
|
4
|
+
|
|
5
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
6
|
+
|
|
7
|
+
echo "Starting PostgreSQL test server on port 25432..."
|
|
8
|
+
docker compose -f "${SCRIPT_DIR}/docker-compose.yml" up -d
|
|
9
|
+
|
|
10
|
+
echo "Waiting for PostgreSQL to be ready..."
|
|
11
|
+
until docker compose -f "${SCRIPT_DIR}/docker-compose.yml" exec -T postgresql-test pg_isready -U postgres 2>/dev/null; do
|
|
12
|
+
sleep 2
|
|
13
|
+
echo " ...still waiting"
|
|
14
|
+
done
|
|
15
|
+
|
|
16
|
+
echo "PostgreSQL test server is ready on port 25432"
|
|
17
|
+
echo " Host: 127.0.0.1"
|
|
18
|
+
echo " Port: 25432"
|
|
19
|
+
echo " User: postgres"
|
|
20
|
+
echo " Password: testpassword"
|
|
21
|
+
echo " Database: testdb"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Stop and remove the PostgreSQL test server Docker container
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
|
|
6
|
+
echo "Stopping PostgreSQL test server..."
|
|
7
|
+
docker compose -f "${SCRIPT_DIR}/docker-compose.yml" down -v
|
|
8
|
+
|
|
9
|
+
echo "PostgreSQL test server stopped and volumes removed."
|