@bunnykit/orm 0.1.6 â 0.1.7
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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,14 @@
|
|
|
8
8
|
>
|
|
9
9
|
> npm, yarn, pnpm, and Node.js runtime usage are not supported.
|
|
10
10
|
|
|
11
|
-
An **Eloquent-inspired ORM** built specifically for [Bun](https://bun.sh)'s native `bun:sql` client.
|
|
11
|
+
An **Eloquent-inspired ORM** built specifically for [Bun](https://bun.sh)'s native `bun:sql` client. It ships with **zero runtime dependencies** and supports **SQLite**, **MySQL**, and **PostgreSQL** with full TypeScript typing, a chainable query builder, schema migrations, model observers, polymorphic relations, and an interactive REPL.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
## Features
|
|
16
16
|
|
|
17
17
|
- ðĨ **Bun-native** â Built on top of `bun:sql` for maximum performance
|
|
18
|
+
- ðŠķ **Zero runtime dependencies** â No package lock-in beyond Bun itself
|
|
18
19
|
- ðĶ **Multi-database** â SQLite, MySQL, and PostgreSQL support
|
|
19
20
|
- ð· **Fully Typed** â Written in TypeScript with generics everywhere
|
|
20
21
|
- ðïļ **Schema Builder** â Programmatic table creation, indexes, foreign keys
|
|
@@ -23,6 +24,7 @@ An **Eloquent-inspired ORM** built specifically for [Bun](https://bun.sh)'s nati
|
|
|
23
24
|
- ð **Relations** â Standard, many-to-many, polymorphic, through, one-of-many, and relation queries
|
|
24
25
|
- ðïļ **Observers** â Lifecycle hooks (`creating`, `created`, `updating`, `updated`, etc.)
|
|
25
26
|
- ð **Migrations & CLI** â Create, run, and rollback migrations from the command line
|
|
27
|
+
- ðŽ **REPL** â Inspect models and run queries interactively with `bunny repl`
|
|
26
28
|
- ⥠**Streaming** â `chunk`, `cursor`, `each`, and `lazy` for memory-efficient large dataset processing
|
|
27
29
|
|
|
28
30
|
---
|
|
@@ -305,7 +307,7 @@ Start an interactive Bunny session with the ORM already loaded:
|
|
|
305
307
|
bunny repl
|
|
306
308
|
```
|
|
307
309
|
|
|
308
|
-
The REPL exposes `Model`, `Schema`, `Connection`, `db`, and a `Models` map. Any model files under `modelsPath` are loaded automatically and also registered by class name on the global scope. If no project config is present, it starts against an in-memory SQLite database so you can still experiment immediately.
|
|
310
|
+
The REPL exposes `Model`, `Schema`, `Connection`, `db`, and a `Models` map. Any model files under `modelsPath` are loaded automatically and also registered by class name on the global scope. If no project config is present, it starts against an in-memory SQLite database so you can still experiment immediately. This makes it useful for quick inspection, ad hoc queries, and schema experiments without adding any dependencies to your app.
|
|
309
311
|
|
|
310
312
|
---
|
|
311
313
|
|
package/package.json
CHANGED