Back to Pocketbase

Interface Result

static/jsvm/interfaces/sql.Result.html

latest1.1 KB
Original Source

Interface Result

A Result summarizes an executed SQL command.

Hierarchy

  • Result

Indexable

Index

Methods

lastInsertIdrowsAffected

Methods

lastInsertId

  • lastInsertId(): number

LastInsertId returns the integer generated by the database in response to a command. Typically this will be from an "auto increment" column when inserting a new row. Not all databases support this feature, and the syntax of such statements varies.

Returns number

rowsAffected

  • rowsAffected(): number

RowsAffected returns the number of rows affected by an update, insert, or delete. Not every database or database driver may support this.

Returns number

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc