gongo / plpgsql_workcat_upsert_yoshi

yoshi!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plpgsql_workcat_upsert_yoshi

workcat("仕事猫") says "yoshi!" when inserted or updated.

Installation

$ psql < workcat_upsert_yoshi.sql

Usage

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

About

yoshi!

License:The Unlicense


Languages

Language:PLpgSQL 100.0%