From 0669177a8b800bd18333a3899af41527ce0b54c3 Mon Sep 17 00:00:00 2001 From: Anton Nesterov <48190253+nesterow@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:40:53 +0200 Subject: [PATCH 1/4] [chore] fmt readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 178b2b5..9f03cd1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ It can be used as a Go or NodeJS package (requires compiler) to create your own _Notes:_ -- This project is still in early alpha. You need to build it yourself and use at your own risk. +- This project is still in **early alpha**. You need to build it yourself and use at your own risk. - At the time only SQLite is implemented, however, other drivers might work. _Use cases:_ 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 2/4] [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 From 0d612173f984b17e0c28bfa4d76084a39ad08641 Mon Sep 17 00:00:00 2001 From: Anton Nesterov <48190253+nesterow@users.noreply.github.com> Date: Thu, 22 Aug 2024 09:30:37 +0200 Subject: [PATCH 3/4] [chore] fix readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e70ec94..4bfed18 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ _Use cases:_ - For IOT networks when MySQL/PG are too heavy. - If you need a layer between your application and the database (i.e. for caching). -- If you want a MongoDB-like query interface for your SQL. +- If you want a MongoDB-like query interface for your SQL db. +- When you need a SQLite proxy (useful to share datasets with services) ## Usage @@ -116,3 +117,12 @@ for await (const row of rows) { console.log(row); // Jason, Jackson } ``` + +## Internals + +The client uses a light builder and messagepack over http. It is relatively easy to implement a client in any language see [the docs](./doc/) + +## License + +While in alpha stage the project is free for research purposes. +Later it will be released under MIT-like license with AI/dataset exclusion terms. From 34d3db3ab924d9ed630ae602d2c976f0dc1ebd43 Mon Sep 17 00:00:00 2001 From: Anton Nesterov <48190253+nesterow@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:17:28 +0200 Subject: [PATCH 4/4] [fix] readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bfed18..4f7a231 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # DAL **Data Access Layer** + DAL is a proxy layer for SQL databases with a MongoDB inspired query interface. -It can be used as a Go or NodeJS package (requires compiler) to create your own proxy and apply custom middlewares. +It can be used as a Go or NodeJS package (requires compiler). +It is modular and allows to create your own proxy and apply custom middlewares. _Notes:_