Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Higher-level CRUD Abstraction for Postgres RLS

Blog post from Neon

Post Details
Company
Date Published
Author
David Gomes
Word Count
741
Company Posts That Month
37
Language
English
Hacker News Points
-
Post removed?
No
Summary

Neon has integrated its Row-Level Security (RLS) functionality into the Neon Data API to simplify the often complex process of implementing RLS in Postgres. RLS, which is used to control access to rows in a database table, can be cumbersome and repetitive, particularly for CRUD applications. To address this, a more concise API has been developed, allowing for higher-level abstraction when setting policies for operations such as select, insert, update, and delete. This new API leverages the `crudPolicy` and `authUid` functions from “drizzle-orm/neon,” streamlining the creation of PostgreSQL policy definitions and making it easier to connect user authentication with specific table columns. This approach is designed to be adaptable and useful for any implementation of Postgres RLS, whether on Neon or other platforms, and an upcoming blog post will demonstrate its application in a social media network data model.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.