Expand description
Security and access control support.
This module provides types for database security features including:
- Row-Level Security (RLS) policies
- Column-level grants
- Role and user management
- Connection profiles
- Data masking
§Database Support
| Feature | PostgreSQL | MySQL | SQLite | MSSQL | MongoDB |
|---|---|---|---|---|---|
| Row-Level Security | ✅ | ❌ | ❌ | ✅ | ✅ Field-level |
| Column Grants | ✅ | ✅ | ❌ | ✅ | ✅ |
| Roles & Users | ✅ | ✅ | ❌ | ✅ | ✅ |
| Connection Profiles | ✅ | ✅ | ❌ | ✅ | ✅ |
| Data Masking | ✅ | ✅ Enterprise | ❌ | ✅ | ✅ |
Modules§
- mongodb
- MongoDB security operations.
Structs§
- Connection
Profile - A named connection profile with specific permissions.
- Connection
Profile Builder - Builder for connection profiles.
- Data
Mask - Data masking configuration.
- Grant
- A grant definition.
- Grant
Builder - Builder for grants.
- RlsPolicy
- A Row-Level Security policy definition.
- RlsPolicy
Builder - Builder for RLS policies.
- Role
- A database role definition.
- Role
Builder - Builder for roles.
- Tenant
Policy - Multi-tenant RLS configuration.
Enums§
- Grant
Object - Object that grants apply to.
- Mask
Function - Data masking function.
- Policy
Command - Commands a policy applies to.
- Privilege
- Database privilege.
- Tenant
Source - Source of current tenant ID.