You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to use a trigger to manage my "UpdatedAt" columns. This trigger calls a SQL Function that updates this column to the current timestamp. Currently, pgtyped is unable to parse functions.
E.g.:
/* @name CreateUpdatedAtFunction */CREATEFUNCTIONUpdatedAt()
RETURNS TRIGGER AS $$
BEGINNEW.updatedAt= NOW();
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
Describe the solution you'd like
Support for this. I think that in principle all this requires is skipping the code block (i.e. the part delimited by $$.
The text was updated successfully, but these errors were encountered:
Note that the $$ delimiters can also contain text. Any delimiter starting and ending with $ will do. E.g. $updated_at_trigger_fn$ <code here> $updated_at_trigger_fn$ works too
Is your feature request related to a problem? Please describe.
I want to use a trigger to manage my "UpdatedAt" columns. This trigger calls a SQL Function that updates this column to the current timestamp. Currently, pgtyped is unable to parse functions.
E.g.:
Yields
Describe the solution you'd like
Support for this. I think that in principle all this requires is skipping the code block (i.e. the part delimited by
$$
.The text was updated successfully, but these errors were encountered: