Member Junction
    Preparing search index...

    Interface AdhocSQLAuthorizer

    The host's checks for SQL a caller wrote, so that an action which runs such SQL applies the same rules as the host's own ad-hoc SQL API. MJServer registers one at startup.

    interface AdhocSQLAuthorizer {
        Authorize(
            sql: string,
            provider: DatabaseProviderBase,
            contextUser: UserInfo,
        ): string;
        ClampTimeoutSeconds(requestedSeconds: number): number;
    }
    Index

    Methods

    • The timeout, in seconds, to run with when the caller asks for requestedSeconds.

      Parameters

      • requestedSeconds: number

      Returns number