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.0.tar.gz (8.9 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.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dbback-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 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.0.tar.gz
Algorithm Hash digest
SHA256 62e6578c0aa839538be7f96d0cb633455c6c590aff1a2340425f54f03ee7454e
MD5 d4ecfd44905e6d7a0a413161d23a9f59
BLAKE2b-256 1e79cefa79821ceae91a4c923af185b4dc4dc0527d8d2a9cfea7fb84511f8e60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dbback-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7982dc59f2b604685d1ea20aa7ff93be695eb001ca1e7f81d8fb0d927739e0a
MD5 83dca898b5efc9f941cdd969e953b1e4
BLAKE2b-256 8894011c4b3011e8b0cc7bdd7f59a4e09fb4155b1c380cad38ea9a21455d4d19

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