Versions in this module Expand all Collapse all v0 v0.5.0 Mar 28, 2026 v0.4.0 Mar 23, 2026 Changes in this version + const CreatePolicyAgents + const CreatePolicyEvents + const EnableRLSAgents + const EnableRLSEvents + func ApplyRLSPolicies(ctx context.Context, db *sql.DB) error + func DropRLSPolicies(ctx context.Context, db *sql.DB) error + type Config struct + DSN string + Driver DriverType + MultiTenant bool + UseRLS bool + type DriverType string + const DriverPostgres + const DriverSQLite + type OpenResult struct + Client *ent.Client + DB *sql.DB + func Open(cfg Config) (*OpenResult, error) + type RLSDriver struct + func NewRLSDriver(drv *entsql.Driver) *RLSDriver + func (d *RLSDriver) Tx(ctx context.Context) (dialect.Tx, error) + type RLSTx struct + func (tx *RLSTx) Exec(ctx context.Context, query string, args, v any) error + func (tx *RLSTx) Query(ctx context.Context, query string, args, v any) error