From b816b0ecdb882331bffff27d045b8e79433795fd Mon Sep 17 00:00:00 2001 From: Anton Nesterov <48190253+nesterow@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:48:50 +0200 Subject: [PATCH] [chore] fmt readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f03cd1..e70ec94 100644 --- a/README.md +++ b/README.md @@ -102,14 +102,15 @@ const db = new DAL({ url: "http://localhost:8111", }); +// SELECT * FROM test t WHERE name GLOB '*son' AND age >= 18 const rows = db .In("test t") .Find({ name: { $glob: "*son" }, age: { $gte: 18 }, - }) // SELECT * FROM test t WHERE name GLOB '*son' AND age >= 18 + }) .As(UserDTO) // Map every row to DTO - .Rows(); // Get iterator + .Rows(); for await (const row of rows) { console.log(row); // Jason, Jackson