Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/higuoxing/pg_badapple

Play "Bad Apple!!" in the psql client. This demo is to illustrate that the psql client can play some animation.
https://github.com/higuoxing/pg_badapple

badapple postgresql postgresql-extension

Last synced: 11 days ago
JSON representation

Play "Bad Apple!!" in the psql client. This demo is to illustrate that the psql client can play some animation.

Awesome Lists containing this project

README

        

# pg_badapple

Play "Bad Apple!!" in the psql client. This demo is to illustrate that the psql client can play some animation.

## Install

```bash
make PG_CONFIG= install
```

## Run

```sql
-- In psql client.
CREATE EXTENSION badapple;
SELECT play_badapple();
-- OR you like sing, dance, rap and basketball.
SELECT play_basketball();
```

## Reference

- [Fun with PostgreSQL Puzzles: Recursive Functions with Animations](https://www.crunchydata.com/blog/fun-with-postgresql-puzzles-and-recursive-functions-with-animations)
- [ANSI/VT100 Terminal Control Escape Sequences](https://web.archive.org/web/20190624214929/http://www.termsys.demon.co.uk/vtansi.htm)
- [Chion82/ASCII_bad_apple](https://github.com/Chion82/ASCII_bad_apple)