Skip to main content

A CLI tool to manage database snapshots

Project description

Dbback

CLI Tool for clean and easy way of managing databases



The goal of this project is to ensure we can revert the problems made by an intern at a DB level like Truncate table.

The tech stack is using python as a programming language and using Click as a framework while using rich library for styling table for clean views

For ease there are mainly 3 commands being add, delete and list for all groups in the Tool which are explained below

Groups

1. Connection

The First group for estabilishing connections to the DB for esnsuring we can track the tables. This is the first step to later track and maintain the tables. Details required are
  1. Project Name for ID
  2. DB type currently MySQL
  3. Host and Port for Connections
  4. Username and Password
  5. DB Name
The commands possible are
  1. add
  2. delete
  3. list

2. Table

For adding tables to the connections that we have established already. Here we simply establish a table for storing snapshots and is a necessary step as well.The commands possible are
  1. add
  2. delete
  3. list

3. Snapshot

Finally having created a connection and listed tables, we can take snapshots and store them for later use.
  1. add
  2. list
  3. restore
A unique ID is given to each snapshot during its addition and can be visible when listed , this ID is used to restore and taken as an input.

Additional Informations

A folder is created in local C drive for storing the metadata for each user and also the snapshots taken. In further versions , we can remove the local usage and go for a cloud based approach.

Scope for Improvement

Following can be implemented in further versions
  1. More Database Options
  2. Ability to use snapshots remotely
  3. Cloud based storage of Snapshots

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbback-0.1.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbback-0.1.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file dbback-0.1.2.tar.gz.

File metadata

  • Download URL: dbback-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbback-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08d00b77cd5c314aa06318e6c42878ee6a4fc62ff0782c52891cfd22e1212568
MD5 fea6ffb997e8289c7b1c4dc35a7b2bc1
BLAKE2b-256 d51c0d6a38959ce4cc0b373aef63f5a62a1008d86f3b84d606ce4e2d538f768a

See more details on using hashes here.

File details

Details for the file dbback-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dbback-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbback-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ce76fed990d4aa5ab8e10d3ced4196e99c91e9eab4ab9b323bb73601565ca3e
MD5 8a12f7b7cf753734f87b695244c61f43
BLAKE2b-256 1529a697c69bf1fbdbed66882af2db86ae9c1cd596423ae528d8fd455a9cf568

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page