Function getDbValue

  • Returns a value as non NULL value.

    Type Parameters

    • T extends unknown = any

    Parameters

    • val: T

      The value to transform.

    Returns T

    Is explicit (null) or not.

    Example

    import { getDbValue, NULL as DbNull, Nullable } from '@egomobile/orm'

    const a: Nullable<number> = 0
    getDbValue(a) // 0

    const b: Nullable<number> = DbNull
    getDbValue(b) // (null)

Generated using TypeDoc