terra-sync / cnc

Seamless Database Replication tool
GNU General Public License v3.0
4 stars 2 forks source link

postgres: Allow for schema-only replications #29

Closed charmitro closed 9 months ago

charmitro commented 10 months ago

Foundations are already there but we need to:

panosfol commented 10 months ago

@charmitro How should the user specify in the backup_type section of the .ini file which backup type they want? Should the 2 acceptable strings be schema_only and full? Also should the enum for the backup_type stay in db.h? Or should I move it to postgres.h? Do multiple SQL databases support the same backup types?

charmitro commented 10 months ago

@charmitro https://github.com/charmitro How should the user specify in the |backup_type| section of the |.ini| file which backup type they want? Should the 2 acceptable strings be |schema_only| and |full|?

Yes, "schema" and "full".

Also should the enum for the backup_type stay in |db.h|? Or should I move it to |postgres.h|? Do multiple SQL databases support the backup types?

We should keep it in db.h as it will be needed from other SQL databases.

panosfol commented 10 months ago

@charmitro https://github.com/charmitro How should the user specify in the |backup_type| section of the |.ini| file which backup type they want? Should the 2 acceptable strings be |schema_only| and |full|? Yes, "schema" and "full". Also should the enum for the backup_type stay in |db.h|? Or should I move it to |postgres.h|? Do multiple SQL databases support the backup types? We should keep it in db.h as it will be needed from other SQL databases.

I cant include the db/db.h file in config.h to use the enum in my config fields, because the db.h already inclues the config.h