Libraries v5.0.0
    Preparing search index...

    Type Alias InferDatabaseRow<T>

    InferDatabaseRow: InferType<ObjectReadSchema<T, keyof ReadRelations<T>>>

    Infer the object shape of a persisted database row from an object schema.

    This is useful for mapper code and raw-query helpers where InferType<T> is too strict because optional schema properties can come back as null from SQL.

    Type Parameters

    • T extends ObjectSchemaBuilder<any, any, any, any, any, any, any>