AppleSauce
    Preparing search index...

    Type Alias Statement<TParams, TResult>

    Generic SQL Statement type that defines a statement with its expected parameters This allows database implementations to import these and infer the parameter types

    type Statement<TParams extends readonly unknown[] = any[], TResult = any> = {
        _params?: TParams;
        _result?: TResult;
        sql: string;
    }

    Type Parameters

    • TParams extends readonly unknown[] = any[]
    • TResult = any
    Index

    Properties

    Properties

    _params?: TParams

    Type information for parameters (not used at runtime, just for type inference)

    _result?: TResult

    Type information for result (not used at runtime, just for type inference)

    sql: string

    The SQL query string