mirror of https://github.com/pressly/goose.git
15 lines
330 B
PL/PgSQL
15 lines
330 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;
|
|
|
|
-- 3 this comment WILL BE preserved
|
|
-- 4 this comment WILL BE preserved |