Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugopl/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.
https://github.com/hugopl/queryit
cli database-management developer-tools postgresql sql terminal-based
Last synced: about 1 month ago
JSON representation
A very basic setupless terminal based SQL query runner meant to be used as a developer tool to test queries against a project database.
- Host: GitHub
- URL: https://github.com/hugopl/queryit
- Owner: hugopl
- License: mit
- Archived: true
- Created: 2019-10-23T02:18:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T14:57:47.000Z (about 1 year ago)
- Last Synced: 2024-08-01T17:34:05.484Z (4 months ago)
- Topics: cli, database-management, developer-tools, postgresql, sql, terminal-based
- Language: Crystal
- Homepage:
- Size: 316 KB
- Stars: 20
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - queryit - A setupless terminal based SQL query runner. (Database Tools)
README
# Archived
I'm not using or writing this anymore, when I need to do SQL stuff nowadays I'm using
[beekeeper-studio](https://github.com/beekeeper-studio/beekeeper-studio), yet another electron
app eating all our beloved memory, however feature complete :-)![Build Status](https://github.com/hugopl/queryit/actions/workflows/ci.yml/badge.svg?branch=master)
[![AUR](https://img.shields.io/aur/version/queryit)](https://aur.archlinux.org/packages/queryit)# 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](./doc/queryit.png)
## Installation
### if ArchLinux
There's an [AUR package](https://aur.archlinux.org/packages/queryit/) for it.
```
$ yay -S queryit
```### else
Install the dependencies (dev packages if your distro split development files in separated packages):
- Crystal compiler >= 1.0.
- libyaml (for rails/amber database configuration detection).
- python (compile time dependency used as build system for libtermbox).
- libevent.
- libsqlite3 (for sqlite support).
- mysql-client (for mysql support).
- postgresql-libs (for postgres support).```
$ make
$ sudo make install
```## Usage
On a rails or amber project directory just run it, a connection will be made to the development database:
```
$ queryit
```Or specify the database URI:
```
$ queryit --uri postgres://localhost/database
```## Database support
Despite of only be really tested with Postgres and SQLite, it should work with MySQL too.
## Contributing
1. Fork it ()
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 RequestFeature suggestions are welcome, write them in github issues.
## Contributors
- [Hugo Parente Lima](https://github.com/hugopl) - creator and maintainer