Skip to content

Commit

Permalink
Update paima-db README to describe Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed May 1, 2024
1 parent 4609d3e commit ff0c267
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/node-sdk/paima-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit ff0c267

Please sign in to comment.