prorm API Reference
    Preparing search index...

    Interface SchemaOpsContext

    How a model reaches its connection and its table.

    Passed as functions rather than values because a model is registered after it is built, and its table name can be changed afterwards by Model.options.tableName.

    interface SchemaOpsContext {
        getTableName(): string;
        getQueryInterface(): QueryInterfaceLike;
    }
    Index
    • Resolve the table this model maps to, at call time.

      Returns string

    • Resolve the QueryInterface, or throw explaining that none is registered.

      Returns QueryInterfaceLike