---
title: "D1Meta"
description: "What D1 reports about one statement it ran."
url: "https://pitlane.tools/package/data-table-d1/interface/D1Meta"
---

# D1Meta

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

What D1 reports about one statement it ran.

## Properties

### changes

```ts
changes: number;
```

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

---

### duration?

```ts
optional duration?: number;
```

Wall time D1 spent on the statement, in milliseconds.

---

### last\_row\_id

```ts
last_row_id: number;
```

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

---

### rows\_read?

```ts
optional rows_read?: number;
```

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

---

### rows\_written?

```ts
optional rows_written?: number;
```

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