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!
- Host: GitHub
- URL: https://github.com/gongo/plpgsql_workcat_upsert_yoshi
- Owner: gongo
- License: unlicense
- Created: 2022-11-19T11:24:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-19T11:41:25.000Z (over 3 years ago)
- Last Synced: 2025-06-01T08:49:22.276Z (about 1 year ago)
- Language: PLpgSQL
- Size: 271 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

## 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/)