Back to Pocketbase

Interface Row

static/jsvm/interfaces/sql.Row.html

latest1.1 KB
Original Source

Interface Row

Row is the result of calling [DB.QueryRow] to select a single row.

Hierarchy

  • Row

Index

Methods

errscan

Methods

err

  • err(): void

Err provides a way for wrapping packages to check for query errors without calling [Row.Scan]. Err returns the error, if any, that was encountered while running the query. If this error is not nil, this error will also be returned from [Row.Scan].

Returns void

scan

  • scan(...dest): void

Scan copies the columns from the matched row into the values pointed at by dest. See the documentation on [Rows.Scan] for details. If more than one row matches the query, Scan uses the first row and discards the rest. If no row matches the query, Scan returns [ErrNoRows].

Parameters

Rest ...dest: any[]

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc