Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/higuoxing/pg_badapple
- Owner: higuoxing
- Created: 2023-09-17T06:07:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-18T11:59:40.000Z (about 1 year ago)
- Last Synced: 2024-10-12T21:13:52.348Z (26 days ago)
- Topics: badapple, postgresql, postgresql-extension
- Language: C
- Homepage:
- Size: 1.03 MB
- Stars: 46
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)