filmov
tv
Use Range to make sure your reservations don't overlap in Postgres!
Показать описание
In apps involving start and end times, such as reservation or calendar apps, using range types in Postgres can bring many benefits, such as querying overlapping events or preventing overlaps under certain conditions.
Range columns in Postgres represent the start and end of quantifiable data such as numbers, dates, or timestamps. Using ranges, you are introduced to advanced query operators along with exclude constraints that ensure no ranges overlap with each other under certain conditions, ensuring that reservations are protected at the database level.
CHAPTERS:
00:00 Intro
00:26: Range column introduction
01:45 Range type operations
02:37 Adding a constraint to prevent overlaps
04:00 Expanding the constraint to prevent overlaps only under certain condition
05:57 Outro
💻 Videos to watch next:
👇 Learn more about Supabase 👇
📱 Connect with Us:
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools
Range columns in Postgres represent the start and end of quantifiable data such as numbers, dates, or timestamps. Using ranges, you are introduced to advanced query operators along with exclude constraints that ensure no ranges overlap with each other under certain conditions, ensuring that reservations are protected at the database level.
CHAPTERS:
00:00 Intro
00:26: Range column introduction
01:45 Range type operations
02:37 Adding a constraint to prevent overlaps
04:00 Expanding the constraint to prevent overlaps only under certain condition
05:57 Outro
💻 Videos to watch next:
👇 Learn more about Supabase 👇
📱 Connect with Us:
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools
Комментарии