Skip to content

ExtensionSchemaGraph

Namespace: Ankus.PgConfig

Assembly: Ankus.PgConfig.dll

Retains the ordered SQL declarations, dependency edges and declaration families emitted by the compiler.

public sealed class ExtensionSchemaGraph

Inheritance: object

Gets declarations in their verified installation order.

public IReadOnlyList<ExtensionSchemaItem> Items { get; }

Value: IReadOnlyList<ExtensionSchemaItem>

Gets the complete installation script reconstructed from the ordered declaration fragments.

public string Sql { get; }

Value: string

Reads a versioned compiler graph without executing extension code or resolving managed types.

public static ExtensionSchemaGraph Parse(string encoded)

Parameters:

encoded — string

The base64-encoded graph from generated Ankus metadata.

Returns: ExtensionSchemaGraph

The validated immutable graph.

Exceptions:

  • FormatException: The framing, text, declarations, dependency order or family ownership is invalid.

Decoded graphs are limited to 32 MiB and 100,000 declarations. Dependencies must refer to preceding declarations.

Writes a deterministic Graphviz DOT graph with prerequisite-to-dependent edges and declaration labels.

public string ToGraphviz()

Returns: string

A complete DOT document, including empty graphs.