From e239ac2b7fd7dc5d14d4cf86a49e8f0d553ebd4b Mon Sep 17 00:00:00 2001 From: hellerve Date: Sun, 26 Jan 2020 16:06:06 +0100 Subject: [PATCH] docs: better example --- docs/SQLite3.html | 5 +++-- sqlite3.carp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/SQLite3.html b/docs/SQLite3.html index bdadffc..d5f1a28 100644 --- a/docs/SQLite3.html +++ b/docs/SQLite3.html @@ -43,8 +43,9 @@ databases.

; ignore that (let-do [db (Result.unsafe-from-success (SQLite3.open "db"))] ; we can prepare statements - (println* &(SQLite3.query &db "INSERT INTO mytable VALUES (?1, ?2);" - &[(to-sqlite3 @"hello") (to-sqlite3 100)])) + (ignore + (SQLite3.query &db "INSERT INTO mytable VALUES (?1, ?2);" + &[(to-sqlite3 @"hello") (to-sqlite3 100)])) ; and query things (println* &(SQLite3.query &db "SELECT * from mytable;" &[])) (SQLite3.close db) diff --git a/sqlite3.carp b/sqlite3.carp index 24e6a0a..1734b6b 100644 --- a/sqlite3.carp +++ b/sqlite3.carp @@ -22,8 +22,9 @@ databases. ; ignore that (let-do [db (Result.unsafe-from-success (SQLite3.open \"db\"))] ; we can prepare statements - (println* &(SQLite3.query &db \"INSERT INTO mytable VALUES (?1, ?2);\" - &[(to-sqlite3 @\"hello\") (to-sqlite3 100)])) + (ignore + (SQLite3.query &db \"INSERT INTO mytable VALUES (?1, ?2);\" + &[(to-sqlite3 @\"hello\") (to-sqlite3 100)])) ; and query things (println* &(SQLite3.query &db \"SELECT * from mytable;\" &[])) (SQLite3.close db)