From cb6b8a23c3832ec066d271dfe96cc4451ba172bb Mon Sep 17 00:00:00 2001 From: oldmoe Date: Wed, 12 Jun 2024 14:21:39 +0200 Subject: [PATCH] README uodate for litedb code snippet --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd3af9d..ba32c88 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ require 'litestack' db = Litedb.new(path_to_db) db.execute("create table users(id integer primary key, name text)") db.execute("insert into users(name) values (?)", "Hamada") -db.get_first_value("select count(*) from users") # => 1 +db.query("select count(*) from users") # => [[1]] ``` #### ActiveRecord