From 8cdf5e15ae238f65403ddfe83d1a6ebdac239fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hinrik=20=C3=96rn=20Sigur=C3=B0sson?= Date: Mon, 13 Nov 2017 13:20:36 +0100 Subject: [PATCH] TEXT can always be read back as a String If you store something like "1234" in a STRING field, SQLite will return an Int64. Better to be more specific, for uses who play around with the example code. See crystal-lang/crystal-db#49. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cf26a04..2ba4a42 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ dependencies: require "sqlite3" DB.open "sqlite3://./data.db" do |db| - db.exec "create table contacts (name string, age integer)" + db.exec "create table contacts (name text, age integer)" db.exec "insert into contacts values (?, ?)", "John Doe", 30 args = [] of DB::Any