• This repository has been archived on 27/Sep/2023
  • Stars
    star
    22
  • Rank 1,014,783 (Top 21 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Archived

I'm not using or writing this anymore, when I need to do SQL stuff nowadays I'm using beekeeper-studio, yet another electron app eating all our beloved memory, however feature complete :-)

Build Status AUR

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

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 (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

Feature suggestions are welcome, write them in github issues.

Contributors

More Repositories

1

sidekiq.cr

Simple, efficient job processing for Crystal
Crystal
763
star
2

tijolo

Simple and fast keyboard focused IDE written in Crystal and GTK.
Crystal
132
star
3

gtk4.cr

GTK4 bindings for Crystal
Crystal
92
star
4

RubyCreator

Plugins to add Ruby language support to QtCreator IDE.
C++
44
star
5

fzy

A Crystal port of awesome Fzy project, a fuzzy finder algorithm.
Crystal
42
star
6

gi-crystal

Tool to generate Crystal bindings for gobject-based libraries (i.e. GTK)
Crystal
41
star
7

rtfm

Gnome dash docset documentation reader written in Crystal
Crystal
21
star
8

reviewit

A git oriented review board for small/medium teams.
Ruby
19
star
9

textui

A simple Crystal UI framework for terminal interfaces.
Crystal
12
star
10

Meique

Meique is a simple build system for C and C++ which uses Lua as scripting language.
C++
10
star
11

Iceberg

Fork of Icemon, an Icecc monitor.
C++
8
star
12

version_from_shard

A macro to declare the VERSION constant from the value found in shard.yml, so you don't need to write the same version number in multiple places.
Crystal
8
star
13

crystal-tree-sitter

Crystal bindings for tree-sitter library
Crystal
8
star
14

invoicegenerator

Stupid script to create pdf invoices.
Ruby
6
star
15

http-status-code-manpages

Manpages for HTTP status codes.
Ruby
6
star
16

MeiqueQtCreatorPlugin

Build system plugin for QtCreator
C++
3
star
17

pg_query.cr

Crystal bindings for libpg_query.
Crystal
2
star
18

harfbuzz.cr

Crystal "bindings" for HarfBuzz library
Crystal
2
star
19

vte.cr

Crystal bindings for VTE library
Crystal
1
star
20

pango.cr

Crystal bindings for Pango library
Crystal
1
star