Skip to content

Commit 97bbf28

Browse files
committed
Remove unused dependency from sqlite example
Signed-off-by: Adam Reese <[email protected]>
1 parent e1c1503 commit 97bbf28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/v3/sqlite-api-guide.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ serde_json = "1.0"
5757
SQLite functions are available in the `spin_sdk::sqlite` module. The function names match the operations above. For example:
5858

5959
```rust
60-
use anyhow::Result;
6160
use serde::Serialize;
6261
use spin_sdk::{
6362
http::{Request, Response, IntoResponse},
@@ -108,7 +107,7 @@ struct ToDo {
108107
}
109108
```
110109

111-
**General Notes**
110+
**General Notes**
112111
* All functions are on the `spin_sdk::sqlite::Connection` type.
113112
* Parameters are instances of the `Value` enum; you must wrap raw values in this type.
114113
* The `execute` function returns a `QueryResult`. To iterate over the rows use the `rows()` function. This returns an iterator; use `collect()` if you want to load it all into a collection.
@@ -165,7 +164,7 @@ class IncomingHandler(http.IncomingHandler):
165164
with sqlite.open_default() as db:
166165
result = db.execute("SELECT * FROM todos WHERE id > (?);", [ValueInteger(1)])
167166
rows = result.rows
168-
167+
169168
return Response(
170169
200,
171170
{"content-type": "text/plain"},

0 commit comments

Comments
 (0)