live

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package live builds a capyrls.Catalog by introspecting a running database instead of parsing SQL files. This is often the more faithful input: the server has already normalized every policy expression (pg_get_expr), and nothing depends on migration files being complete.

It is driver-agnostic: pass any *sql.DB. The caller registers the driver (the capyrls CLI uses pgx's database/sql adapter).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, db *sql.DB) (*capyrls.Catalog, error)

Load introspects the database and returns the RLS-relevant catalog.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL