overrideValueType | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function overrideValueType

    • Overrides the type of a value for use in Kysely expressions (not all types are auto-detected, like UUID's or (+/-)Infinity for timestamps)

      Type Parameters

      • T extends keyof Bindables

      Parameters

      • value: Bindables[T][0]

        Value

      • type: T

        'Real' type of the value (to send to PostgreSQL)

      Returns Expression<Bindables[T][1]>

      An expression that can be used in SQL queries