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

https://github.com/gongo/plpgsql_workcat_upsert_yoshi

yoshi!
https://github.com/gongo/plpgsql_workcat_upsert_yoshi

Last synced: 4 months ago
JSON representation

yoshi!

Awesome Lists containing this project

README

          

# plpgsql_workcat_upsert_yoshi

[workcat("仕事猫")](https://ja.wikipedia.org/wiki/%E4%BB%95%E4%BA%8B%E7%8C%AB) says "yoshi!" when inserted or updated.

![](./demo.gif)

## Installation

```sh-session
$ psql < workcat_upsert_yoshi.sql
```

## Usage

```sql
user=# CREATE TABLE users (name text);
user=# CREATE TRIGGER workcat_upsert_yoshi_trigger BEFORE INSERT OR UPDATE ON users FOR EACH ROW EXECUTE PROCEDURE workcat_upsert_yoshi();

user=# INSERT INTO users VALUES('gongo');
INFO:
/\ /ヽ,
{/ ̄ ̄ ̄ヽ!,
∠__╋__j,
yoshi! / (.)八(.) ヽ,
{=/(人_)=|´ ̄)`ヽ,
\ { {_,ノ ノ //~ `,
⊂ ̄ヽ_>―――‐''’,〈 (_),
`ヘ(_ ィ r―‐γ !,
_,ノ j | |,
{ { ノ /\,
\ス ̄ ̄ ̄lしイ\ \,
( ̄ ) j / \_j\,
 ̄ ̄ ( `ヽ \__)
\__ノ
INSERT 0 1
```

## License

[the Unlicense](https://unlicense.org/)