Skip to content

Search the guides, deployment pages, and API reference.

D1Meta

import type { D1Meta } from "@pitlane/data-table-d1";

What D1 reports about one statement it ran.

Properties

changes

changes: number;

Rows written by the statement. D1 reports 0 for reads.


duration?

optional duration?: number;

Wall time D1 spent on the statement, in milliseconds.


last_row_id

last_row_id: number;

Rowid of the last inserted row, meaningful only after an insert.


rows_read?

optional rows_read?: number;

Rows D1 scanned. Billed, and absent on some responses.


rows_written?

optional rows_written?: number;

Rows D1 persisted. Billed, and absent on some responses.