一覧へ戻る
Code-Institute-Org/postgres-migration-tool(新しいタブで開きます)
主要言語: Dockerfile
- star 数
- 28
- watcher 数
- 3
- fork 数
- 27
- issue 数
- 0
- 最終更新
- 2024/04/24
主要言語: Dockerfile
This is a tool for Code Institute students and alumni. It allows you to dump a database from one Postgres server and upload it to another.
You will need to have created a new database using our Database Creator app.
python3 reel2reel.py (Note: If you use Gitpod or Codeanywhere/Daytona, you can simply type reel2reel)postgres://postgres://postgres://.DATABASE_URL. Heroku periodically rotates the credentials, which means an old DATABASE_URL may not work.Can I use this with VSCode?
Yes, you will need to install the latest versions of the Postgres command line client psql.
I'm a power user. Is there an easier way to use this?
Absolutely. You can supply the URLs as arguments like so:
python3 reel2reel.py <Source URL> <Destination URL>
What does it actually do?
dump.sql filedump.sql file so that it contains the database name and username for the new databasedump.sql file against the specified destination databaseFeel free to examine the code and see if you understand how it works.
Because we like to move it, move it.
Happy coding!