mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
13 lines
256 B
PL/PgSQL
13 lines
256 B
PL/PgSQL
CREATE FUNCTION do_something(sql TEXT) RETURNS INTEGER AS $$
|
|
BEGIN
|
|
-- initiate technology
|
|
PERFORM something_or_other(sql);
|
|
|
|
-- increase technology
|
|
PERFORM some_other_thing(sql);
|
|
|
|
-- technology was successful
|
|
RETURN 1;
|
|
END;
|
|
$$ LANGUAGE plpgsql;
|