Skip to content
A very basic setupless terminal based SQL query runner meant to be used as a developer tool to test queries against a project database.
Crystal Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
spec
src
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.md
shard.lock
shard.yml

README.md

Build Status

Queryit

A very basic setupless terminal based SQL query runner meant to be used as a developer tool to test queries against a project database.

Screenshot

Installation

if ArchLinux

There's an AUR package for it.

$ yay -S queryit

else

You need the project dependencies installed on your system:

$ make
$ sudo make install

Usage

On a rails project directory just run it.

$ queryit

Or specify the database URI

$ queryit --uri postgres://localhost/database

Development

All this still in a very early development stage. Above is a todo list in no specific order:

  • Basic query execution/show results.
  • Save results to CSV.
  • Help screen.
  • Change database.
  • Navigate through results.
  • Syntax highlight.
  • SQL beautifier.
  • SQL auto complete.
  • Improved copy/paste support.
  • Install script/instructions.
  • ArchLinux package.
  • Move TextUI code to their own shard.
  • Do not block UI when executing queries.
  • Have a manpage.
  • Display nice useless charts about the server like pgAdmin4 does.

Contributing

  1. Fork it (https://github.com/hugopl/queryit/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

You can’t perform that action at this time.