@atscript/moost-db 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.cjs +329 -317
- package/dist/index.d.cts +204 -0
- package/dist/index.d.mts +204 -0
- package/dist/index.mjs +263 -228
- package/package.json +21 -14
- package/LICENSE +0 -21
- package/dist/index.d.ts +0 -200
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://atscript.
|
|
2
|
+
<img src="https://atscript.dev/logo.svg" alt="Atscript" width="120" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">@atscript/moost-db</h1>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="https://atscript.
|
|
12
|
+
<a href="https://db.atscript.dev">Documentation</a> · <a href="https://db.atscript.dev/http/">HTTP API Guide</a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -27,8 +27,8 @@ Peer dependencies: `moost`, `@moostjs/event-http`, `@atscript/db`, `@atscript/ty
|
|
|
27
27
|
## Quick Start
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
|
-
import { AsDbController, TableController } from
|
|
31
|
-
import { User } from
|
|
30
|
+
import { AsDbController, TableController } from "@atscript/moost-db";
|
|
31
|
+
import { User } from "./models/user.as";
|
|
32
32
|
|
|
33
33
|
@TableController(usersTable)
|
|
34
34
|
export class UsersController extends AsDbController<typeof User> {}
|
|
@@ -49,8 +49,8 @@ This gives you: `GET /query`, `GET /pages`, `GET /one/:id`, `POST /`, `PUT /`, `
|
|
|
49
49
|
|
|
50
50
|
## Documentation
|
|
51
51
|
|
|
52
|
-
- [HTTP API Guide](https://atscript.
|
|
53
|
-
- [Full Documentation](https://atscript.
|
|
52
|
+
- [HTTP API Guide](https://db.atscript.dev/http/)
|
|
53
|
+
- [Full Documentation](https://db.atscript.dev)
|
|
54
54
|
|
|
55
55
|
## License
|
|
56
56
|
|