Myvideo

Guest

Login

Call Postgres functions from JavaScript with RPC

Uploaded By: Myvideo
1 view
0
0 votes
0

For the introductory video on PostgreSQL functions, check out 👉 Sometimes we have a collection of complex steps we need to perform in a particular sequence from the front-end. Maybe we want to execute an SQL statement that the supabase-js library does not yet support. These are both excellent use cases for RPC. RPC in supabase allows us to call a PostgreSQL function from JavaScript. This means we can abstract away our complex logic, or multi-step process into a Postgres function, and just make one request to call this function from the client. In this video, Jon Meyers () demonstrates how we can create a function to increment a column's value by one, and call this when the user clicks a button using RPC. This is part of a series of videos about functions in PostgreSQL, check out the rest of the playlist to learn more: 💰 Get really good at Supabase and build a SaaS product (free course): --- Learn more about Supabase 👇 🕸 Website: 🏁 Get started: 📄 Docs: 🐙 Github: 💬 Discord: 🐦 Twitter: Jon Meyers 👇 🕸 Website: 🎥 YouTube Channel: 🐦 Twitter: ---

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later