Crates.io | pg_sync |
lib.rs | pg_sync |
version | 0.3.0 |
source | src |
created_at | 2022-07-21 05:31:45.789023 |
updated_at | 2022-07-27 19:16:57.845494 |
description | PostgreSQL DML change management tool |
homepage | |
repository | https://github.com/sam-mmm/pg-sync |
max_upload_size | |
id | 629467 |
size | 207,233 |
PG-Sync is a PostgreSQL schema chnage management tool.
Other existing DB schema management tools deals with change sets or change set files, you dont have currunt structure of your schema in sigle place(file). Either you go through change sets or use database client tool(PG Admin).
With PG-Sync you will have current database schema structure in file and PG_Sync will read your database structure and your schema file and apply diff on your database. current database schema structure = Schema if you do a fresh installation of current version of you application.
cargo install pg_sync
CREATE TABLE table1
(
column11 text
);
Will produce
CREATE TABLE table1
(
column11 text
);
CREATE TABLE table1
(
column11 text,
column12 text
);
Will produce
ALTER TABLE table1
ADD COLUMN column12 text;