Back to Pocketbase

Interface JSONRaw

static/jsvm/interfaces/types.JSONRaw.html

latest1.5 KB
Original Source

Interface JSONRaw

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

Hierarchy

  • Array<number>
    • JSONRaw

Index

Methods

marshalJSONscanstringunmarshalJSONvalue

Methods

marshalJSON

  • marshalJSON(): string | number[]

MarshalJSON implements the [json.Marshaler] interface.

Returns string | number[]

scan

  • scan(value): void

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

Parameters

value: any

Returns void

string

  • string(): string

String returns the current JSONRaw instance as a json encoded string.

Returns string

unmarshalJSON

  • unmarshalJSON(b): void

UnmarshalJSON implements the [json.Unmarshaler] interface.

Parameters

b: string | number[]

Returns void

value

  • value(): any

Value implements the [driver.Valuer] interface.

Returns any

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc