Libraries
    Preparing search index...

    Type Alias InferDatabaseRow<T>

    InferDatabaseRow: {
        [K in RequiredKeys<InferType<T>>]: InferDatabaseValue<InferType<T>[K]>
    } & {
        [K in OptionalKeys<InferType<T>>]?: InferDatabaseValue<InferType<T>[K]>
    }

    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>