Skip to content

0.15.0

Choose a tag to compare

@jaz-alli jaz-alli released this 14 Jan 07:15
· 17 commits to main since this release
58a0402

What's New

Custom Statement Delimiter

You can now specify a custom delimiter for splitting SQL statements in migration files. This is useful when working with stored procedures, functions, or triggers that contain semicolons in their body.

Add -- jetbase: delimiter=<delimiter> at the top of your migration file:

-- jetbase: delimiter=~

CREATE OR REPLACE FUNCTION set_updated_at()
RETURNS TRIGGER AS $$
BEGIN
    NEW.updated_at = NOW();
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;~