2024-08-15 08:19:50 +00:00
|
|
|
# DAL [WIP]
|
|
|
|
|
|
|
|
Data Accees Layer for SQL databases written in Go.
|
|
|
|
|
2024-08-16 04:18:45 +00:00
|
|
|
|
|
|
|
## NodeJs Client
|
|
|
|
|
2024-08-15 08:19:50 +00:00
|
|
|
Mongodb inspired query interface:
|
|
|
|
|
|
|
|
```typescript
|
2024-08-15 13:04:44 +00:00
|
|
|
const query = Db.In("users")
|
|
|
|
.Find({
|
|
|
|
fullname: { $glob: "*son" },
|
2024-08-15 08:19:50 +00:00
|
|
|
})
|
2024-08-15 13:04:44 +00:00
|
|
|
.Query();
|
2024-08-15 08:19:50 +00:00
|
|
|
|
|
|
|
// Result:
|
2024-08-15 13:04:44 +00:00
|
|
|
console.log(users)[
|
|
|
|
({ id: 25, fullname: "John Menson" }, { id: 76, fullname: "John Johnson" })
|
|
|
|
];
|
|
|
|
```
|