---
title: SQL Database Data Filtering
labels:
  layer: data
  category: filtering
software:
- sqlite
code:
- https://github.com/open-policy-agent/contrib/tree/main/data_filter_example
blogs:
- https://openpolicyagent.org/blog/write-policy-in-opa-enforce-policy-in-sql-d9d24db93bf4
inventors:
- styra
---

This integration enables the client of a SQL database to enhance a SQL query so that the results obey an OPA-defined policy.
