Giter VIP home page Giter VIP logo

qcon2's Introduction

qcon2 is a terminal based front end to kdb+ (based on kx's qcon). it enables you to type in queries interactively, issue them to kdb+, and see the query results. it's a simple wrapper around q using single shot ipc:

  • display lambdas using vim syntax highlighting
  • paste multiple lines as one query

alt tag

uses the following:

  • very slightly modified vimcat for the highlighting

install

  • download qcon2.sh and vimcat.sh, chmod u+x and put it somewhere under $PATH
  • optional, alias qcon2='rlwrap bash qcon2.sh'

example

patrick@ubuntu:~$ type qcon2
qcon2 is aliased to `rlwrap bash qcon2.sh'
patrick@ubuntu:~$ qcon2
usage:
         qcon2.sh port
         qcon2.sh host:port
         qcon2.sh host:port:user
         qcon2.sh host:port:user:pass

start query with p) to enter
multiple lines, send EOF to flush
\\ to exit qcon2 itself
patrick@ubuntu:~$ qcon2 1234
localhost:1234> 5#.Q
    | ::
k   | 3.3
host| ![-12]
addr| ![-13]
gc  | ![-20]
localhost:1234> til 5
0 1 2 3 4

multi line

localhost:1234> p)f:{x+y
+1}

localhost:1234> f
{x+y +1}
localhost:1234> f[1;2]
4

dependancies

  • q
  • vim
  • perl

change log

  • 2017.03.11, reworked so it's just a shell script instead of the old C binary. this means you need q to use it but no longer dependant on readline, ncurse etc and it's much easier to install

qcon2's People

Contributors

patmok avatar

Stargazers

Thomas Smyth avatar STYLIANOS IORDANIS avatar Jim Ahn avatar gurpal2000 avatar Attila avatar Daniel Krizian avatar Mohammad Noor avatar

Watchers

Mohammad Noor avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.