compiler

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package compiler provides public APIs for compiling OpenFGA schemas to SQL.

This is a thin wrapper around internal/sqlgen that exposes only the public types and functions needed by external consumers. For migration functionality, use pkg/migrator instead.

Index

Constants

This section is empty.

Variables

View Source
var AnalyzeRelations = sqlgen.AnalyzeRelations

AnalyzeRelations classifies all relations and gathers data needed for SQL generation.

View Source
var BuildInlineSQLData = sqlgen.BuildInlineSQLData

BuildInlineSQLData builds inline SQL data from closure and analyses.

View Source
var CollectFunctionNames = sqlgen.CollectFunctionNames

CollectFunctionNames returns all generated function names for tracking.

View Source
var ComputeCanGenerate = sqlgen.ComputeCanGenerate

ComputeCanGenerate computes which relations can have functions generated.

View Source
var GenerateListSQL = sqlgen.GenerateListSQL

GenerateListSQL generates specialized list functions from relation analyses.

View Source
var GenerateSQL = sqlgen.GenerateSQL

GenerateSQL generates specialized check_permission functions from relation analyses.

Functions

This section is empty.

Types

type GeneratedSQL

type GeneratedSQL = sqlgen.GeneratedSQL

GeneratedSQL contains all SQL generated from a schema for check functions.

type InlineSQLData

type InlineSQLData = sqlgen.InlineSQLData

InlineSQLData contains inline SQL data for generated functions.

type ListGeneratedSQL

type ListGeneratedSQL = sqlgen.ListGeneratedSQL

ListGeneratedSQL contains all SQL generated for list functions.

type RelationAnalysis

type RelationAnalysis = sqlgen.RelationAnalysis

RelationAnalysis contains the analyzed features of a relation.

Jump to

Keyboard shortcuts

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