mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
13 lines
410 B
YAML
13 lines
410 B
YAML
|
- args:
|
||
|
sql: |-
|
||
|
CREATE FUNCTION test_func() RETURNS trigger AS $emp_stamp$
|
||
|
BEGIN
|
||
|
NEW.output := UPPER(NEW.input);
|
||
|
RETURN NEW;
|
||
|
END;
|
||
|
$emp_stamp$ LANGUAGE plpgsql;
|
||
|
|
||
|
CREATE TRIGGER test_trigger BEFORE INSERT OR UPDATE ON sql_function_table
|
||
|
FOR EACH ROW EXECUTE PROCEDURE test_func();
|
||
|
type: run_sql
|