olirice-asciiplot

0.0.1Created 3 months agoBy olirice

asciiplot

asciiplot is a toy library for producing ASCII scatterplots from PostgreSQL queries. Please note that it is not indended for serious use.

Usage

select
  scatter(
    val::numeric, --x
    val::numeric, -- y
    'stonks!', -- title
    15, -- height
    50 --width
  )
from
  generate_series(1,10) vals(val)

/*
                   stonks!
----------------------------------------------
|                                       *
|
|                                  *
|                              *
|
|                          *
|
|                     *
|                 *
|
|            *
|
|        *
|   *
*/

Install

  1. Install the dbdev package manager
  2. Install the package:
select dbdev.install('olirice-asciiplot');
create extension "olirice-asciiplot"
    version '0.0.1';

Downloads

  • 0 all time downloads
  • 0 downloads in the last 30 days
  • 0 downloads in the last 90 days
  • 0 downloads in the last 180 days