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