Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DbAdmin

DbAdmin is an interactive command-line tool for managing database users and privileges with fine-grained control. It’s built with Go and designed for DevOps engineers, DBAs, and developers who need a fast, secure, and scriptable interface for handling database access or those who are too lazy to run SQL queries πŸ˜…πŸ˜…πŸ˜….

Features

  • βœ… Create and delete users and roles
  • πŸ”’ Grant readonly or read/write privileges
  • 🚫 Revoke all privileges from a user
  • 🎭 Assign roles to users
  • 🧡 Interactive CLI mode with prompt-based input
  • πŸ” Query user or table privileges
  • 🎯 Restrict access to a single database
  • πŸ›‘ Secure password generation and validation

Installation

   git clone https://github.com/gentcod/dbadmin.git
   cd dbadmin
   make build

Usage

   dbadmin -d postgres -D postgres://user:password@hostname:port/db_name

NB: Connected database user should be a user with superadmin authorization.

About

An interactive command-line tool for managing database users and privileges with fine-grained control for DBAs who are too lazy to write queries πŸ˜…πŸ˜…πŸ˜….

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages