Member Junction
    Preparing search index...

    Shared context passed through the conversion pipeline. Accumulates state (e.g., column types from CREATE TABLE for boolean casting).

    interface ConversionContext {
        CreatedFunctions: Set<string>;
        CreatedViews: Set<string>;
        HandWrittenFunctions: Map<string, string>;
        HasDDLChanges: boolean;
        Schema: string;
        SourceDialect: string;
        TableColumns: Map<string, Map<string, string>>;
        TargetDialect: string;
    }
    Index

    Properties

    CreatedFunctions: Set<string>

    Set of function/procedure names that were successfully converted (not skipped). Used by GrantRule to skip grants on functions that don't exist. Names are stored as-is (case-sensitive, without schema prefix).

    CreatedViews: Set<string>

    Set of view names that were successfully converted (not skipped). Used by GrantRule to skip grants on views that don't exist.

    HandWrittenFunctions: Map<string, string>

    Hand-written function replacements keyed by lowercase function name

    HasDDLChanges: boolean

    Whether the source file contains DDL changes (ALTER TABLE, CREATE TABLE) that could change view column lists. When true, ViewRule emits DROP VIEW CASCADE before CREATE OR REPLACE VIEW. When false, it only emits CREATE OR REPLACE VIEW to avoid cascade-dropping dependent functions.

    Schema: string

    Target schema name (e.g., '__mj')

    SourceDialect: string

    Source SQL dialect (e.g., 'tsql')

    TableColumns: Map<string, Map<string, string>>

    Accumulated column type info from CREATE TABLE statements. Used by INSERT rules for boolean casting (0→false, 1→true for BOOLEAN columns). Map: tableName (lowercase) → Map(columnName lowercase → pgType uppercase)

    TargetDialect: string

    Target SQL dialect (e.g., 'postgres')