From ff0c267f7f2a8b9c0615744375dec4ec83c74740 Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Tue, 30 Apr 2024 17:55:45 -0700 Subject: [PATCH] Update paima-db README to describe Docker --- packages/node-sdk/paima-db/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/node-sdk/paima-db/README.md b/packages/node-sdk/paima-db/README.md index 5b5cddf9e..e31745c9f 100644 --- a/packages/node-sdk/paima-db/README.md +++ b/packages/node-sdk/paima-db/README.md @@ -15,6 +15,4 @@ Specific game databases do not need to contain these tables, as they will be cre ## Development -To re-generate the queries, you will need a database running with the same connection info as [the config](./pgtypedconfig.json) and then run `npm run compile`. - -Before running `npm run compile`, you will need to initialize the DB using `sudo -u postgres psql -d postgres -a -f migrations/up.sql` +To re-generate the queries, run `npm run compile`, which will use Docker to run a temporary Postgres database initialized with `migrations/up.sql` and then watch for query changes. Ctrl+C and restart to reflect changes to `up.sql`.