From 97bbf28cb0e804c3e902981c6419a5facbc5ecae Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Sat, 2 Aug 2025 20:21:29 -0700 Subject: [PATCH] Remove unused dependency from sqlite example Signed-off-by: Adam Reese --- content/v3/sqlite-api-guide.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/v3/sqlite-api-guide.md b/content/v3/sqlite-api-guide.md index 987d817c..53692484 100644 --- a/content/v3/sqlite-api-guide.md +++ b/content/v3/sqlite-api-guide.md @@ -57,7 +57,6 @@ serde_json = "1.0" SQLite functions are available in the `spin_sdk::sqlite` module. The function names match the operations above. For example: ```rust -use anyhow::Result; use serde::Serialize; use spin_sdk::{ http::{Request, Response, IntoResponse}, @@ -108,7 +107,7 @@ struct ToDo { } ``` -**General Notes** +**General Notes** * All functions are on the `spin_sdk::sqlite::Connection` type. * Parameters are instances of the `Value` enum; you must wrap raw values in this type. * 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): with sqlite.open_default() as db: result = db.execute("SELECT * FROM todos WHERE id > (?);", [ValueInteger(1)]) rows = result.rows - + return Response( 200, {"content-type": "text/plain"},