Member Junction
    Preparing search index...

    Runs all deterministic pre-creation / pre-modification validation checks for a TableDefinition. Returns an EntityValidationResult with every error and warning found in a single pass.

    Instantiate a new instance per call — the service is stateless and has no caching, so there is no benefit to reuse.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Run the full validation pipeline against tableDefinition.

      Parameters

      • tableDefinition: TableDefinition

        The fully-formed table definition to validate.

      • contextUser: UserInfo

        The requesting user, forwarded to RunView for DB checks. May be undefined in tests; RunView handles it.

      • modificationType: "create" | "alter" = 'create'

        'create' (default) or 'alter'. Controls which naming-existence check is applied: create requires the entity NOT to exist, alter requires it to exist.

      Returns Promise<EntityValidationResult>

      Aggregated validation result with all errors and warnings.