Skip to content

Ackar/pam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAM, the Postgres And MySQL CLI

pam-logo

PAM is a simple command line tool to access Postgres and MySQL databases.

Features include:

  • Auto-completion
  • Coloration
  • Smart display of wide results
  • History
  • Single binary with no dependencies

demo

Installation

GO111MODULE=on go get -u github.com/Ackar/pam

Configuration

Add your databases to ~/.pam.json with the following format:

{
  "mysqldb": {
    "type": "mysql",
    "dsn": "user:password@tcp(localhost:3306)/my_db"
  },
  "postgresdb": {
    "type": "postgres",
    "dsn": "postgres://user:password@localhost/my_db"
  }
}

You can then use pam DB_NAME to connect to any database.

Contributions welcome!

About

PAM, the Postgres And MySQL CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages