olirice@asciiplot

v0.0.1Created 2 years 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

  • 25 all time downloads
  • 0 downloads in the last 30 days
  • 1 download in the last 90 day
  • 4 downloads in the last 180 days