Versions in this module Expand all Collapse all v0 v0.11.0 Nov 9, 2026 Changes in this version + var Check = Family + var ErrNoRecordedModel = errors.New("no recorded model") + var Expand = Family + var Explain = Family + var ListObjects = Family + var ListSubjects = Family + type API struct + func FromModel(model *migrator.DeployedModel) *API + func Load(ctx context.Context, db *sql.DB, databaseSchema string) *API + func New(exposure sqlgen.Exposure, types []schema.TypeDefinition) *API + func (a *API) Installed(f Family) bool + func (a *API) OnDemand(f Family) bool + func (a *API) Trace(ctx context.Context, db DB, databaseSchema string, f Family, ...) error + func (a *API) Unavailable(f Family, objectType, relation string) *Unavailable + type CheckOptions struct + Bodies bool + type ClientFinding struct + Code string + Fix string + Function string + Link string + Message string + Relation string + Remedy Remedy + Severity ClientSeverity + Type string + type ClientNames struct + Functions []sqlgen.AccessibleFunction + Pairs []clientgen.RelationRef + SchemaContent string + Types []schema.TypeDefinition + func NewClientNames(m *clientgen.Model, types []schema.TypeDefinition, schemaContent string) ClientNames + type ClientReport struct + Errors int + Findings []ClientFinding + FunctionsChecked int + Notes []string + PairsChecked int + Warnings int + func CompareClient(r *Report, rec *migrator.MigrationRecord, names ClientNames, ...) *ClientReport + type ClientSeverity string + const SeverityError + const SeverityInfo + const SeverityWarning + type DB interface + BeginTx func(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) + type Fallback struct + Exposure sqlgen.Exposure + Types []schema.TypeDefinition + type Family struct + func (f Family) Name() string + type Function struct + Detail string + StaleOverloads []string + Status Status + type InstalledFunction struct + Arguments string + Name string + type Relation struct + DependsOn []string + Dispatchers []string + Examples []sqlgen.DispatcherCall + Exposed bool + Functions []Function + NotInstalled []sqlgen.NotInstalled + Relation string + Type string + func (rel Relation) MarshalJSON() ([]byte, error) + type Remedy string + const RemedyMigrate + const RemedyRegenerate + const RemedyReinstall + type Report struct + BodiesChecked bool + Checked bool + CodegenAhead bool + CodegenSkew bool + Collisions []sqlgen.NameCollision + DatabaseSchema string + DeployedCodegenVersion string + Dispatchers []Function + Exposure sqlgen.Exposure + MelangeVersion string + Notes []string + Orphans []InstalledFunction + Relations []Relation + SchemaFile string + Source string + Summary Summary + Unmanaged []InstalledFunction + func Deployed(ctx context.Context, db migrator.Execer, databaseSchema string, ...) (*Report, *migrator.MigrationRecord, error) + func Describe(types []schema.TypeDefinition, exposure sqlgen.Exposure, databaseSchema string) (*Report, error) + func (r *Report) Check(ctx context.Context, db melange.Querier, rec *migrator.MigrationRecord, ...) error + func (r *Report) Find(objectType, relation string) *Relation + func (r *Report) Owners() map[string][]string + func (r Report) MarshalJSON() ([]byte, error) + type Status string + const StatusBodyChanged + const StatusCodegenDiffers + const StatusInstalled + const StatusMissing + const StatusNotChecked + const StatusSignatureDiffers + type Summary struct + BodyChanged int + CodegenDiffers int + Exposed int + Functions int + Installed int + Missing int + Orphans int + Relations int + SignatureDiffers int + StaleOverloads int + Unmanaged int + func (s Summary) Drift() bool + type Unavailable struct + Family Family + ObjectType string + Relation string + func FromError(f Family, objectType, relation string, err error) *Unavailable + func (u *Unavailable) ByDesign() bool + func (u *Unavailable) Error() string + func (u *Unavailable) Label() string + func (u *Unavailable) Unwrap() error