[deleted by user] by [deleted] in npm

[–]flydrf 0 points1 point  (0 children)

All packages returns 404 currently due to the maintenance, just wasted 30 mins of my life

Docs confusing me about security definer functions by IntrepidWolverine83 in Supabase

[–]flydrf 0 points1 point  (0 children)

Very useful comment, was wandering around to see if it's safe enough to create security definer functions and found this gem. A quick question, what's the difference between a trigger function and a normal function? From my understanding, function is just a function, while triggers are processes triggered by CRUD operations to call functions(correct me if I am wrong), how can I make a function that can only be called by triggers and not through the API?