Giter Club home page Giter Club logo

rich-sql's Introduction

Rich SQL

Rich SQL - data visualisation extension for SQL

This is the short specification of Rich SQL language extension implemnted by SQL Tabs.

Estension of SQL scripts for declaring the way obtained results have to be presented.

SQL script can be split to blocks by a comment line started with 3 dashes: ---

Each block can be annotated with a preffered way of representation:

--- <annotation> <options>

Annotations:

table

--- table

Represent a result as a standard table

crosstable

--- crosstable

Represent a result as a crosstable. By default the first column is taken as a vertical axis, the second columns as horizontal axis, the rest of the columns as cross table values.

chart

--- chart <chart_type> <options>

Represent a result as a chart of a chart_type.

Chart types:

- area
- area-spline
- area-step
- bar
- donut
- line
- pie
- spline
- step

hidden

--- hidden

Do not represent a result at all.

id

--- id

ID of a script. Should be defined once per script. Serves for storing results in a further systems. ID supposed to uniquely identify a file/document in a system.

every

--- every <options>

If a script supposed to be run regulary defines a schedule of execution. (a la cron) The specification of a schedule to be defined.

map

--- map <options>

Represent result on a geographical map. Options to be defined.

markdown blocks

/** <markdown> **/

Text within /** **/ block is interpreted as a static markdown markup to be displayed together with a result.

rich-sql's People

Contributors

olsender avatar

Watchers

 avatar  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.