JsonRaw defines a json value type that is safe for db read/write.

Hierarchy

  • Array<number>
    • JsonRaw

Methods

  • MarshalJSON implements the [json.Marshaler] interface.

    Returns string | number[]

  • Scan implements [sql.Scanner] interface to scan the provided value into the current JsonRaw instance.

    Parameters

    • value: any

    Returns void

  • String returns the current JsonRaw instance as a json encoded string.

    Returns string

  • UnmarshalJSON implements the [json.Unmarshaler] interface.

    Parameters

    • b: string | number[]

    Returns void

  • Value implements the [driver.Valuer] interface.

    Returns any

Generated using TypeDoc