Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paoliniluis/schema-dump
Dump DB schemas in a deterministic order to compare
https://github.com/paoliniluis/schema-dump
Last synced: about 9 hours ago
JSON representation
Dump DB schemas in a deterministic order to compare
- Host: GitHub
- URL: https://github.com/paoliniluis/schema-dump
- Owner: paoliniluis
- Created: 2023-12-01T18:12:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-04T14:00:58.000Z (11 months ago)
- Last Synced: 2023-12-04T15:24:27.562Z (11 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Schema dumper
## How to run
`NODE_TLS_REJECT_UNAUTHORIZED=0 mb_host=https://localhost:8443 db_host=localhost username=metabase password=mysecretpassword engine=postgres db=metabase schema=public bun index.js > output.txt`
with the following env vars
- NODE_TLS_REJECT_UNAUTHORIZED: just for calling instances with self signed certs so the program runs
- mb_host: the URL where Metabase runs, it's just for getting the version of the application
- db_host: the host of the database, for connecting to it
- username: database username, needs to be a username that can query the information schema
- password: the password of the database username
- engine: which db engine you're using (right now only postgres is supported)
- db: the database where the application database is located
- schema: the schema where the application database is locatedRequirements:
- bun (bun.sh)Install requirements with "bun install" before using