neoorm 0.9.3 → 0.9.6
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/AGENTS.md +46 -0
- package/dist/bin/neoorm.d.ts.map +1 -1
- package/dist/bin/neoorm.js +218 -6
- package/dist/bin/neoorm.js.map +1 -1
- package/dist/codegen/generate.d.ts +32 -1
- package/dist/codegen/generate.d.ts.map +1 -1
- package/dist/codegen/generate.js +129 -28
- package/dist/codegen/generate.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/runtime/error-codes.d.ts +1 -0
- package/dist/runtime/error-codes.d.ts.map +1 -1
- package/dist/runtime/error-codes.js +1 -0
- package/dist/runtime/error-codes.js.map +1 -1
- package/dist/seed/runner.d.ts +46 -0
- package/dist/seed/runner.d.ts.map +1 -0
- package/dist/seed/runner.js +99 -0
- package/dist/seed/runner.js.map +1 -0
- package/docs/cli.md +32 -1
- package/docs/configuration.md +2 -0
- package/docs/migrations.md +14 -4
- package/docs/seeding.md +67 -0
- package/llms-full.txt +3457 -0
- package/llms.txt +40 -0
- package/package.json +6 -2
package/llms.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# NeoOrm
|
|
2
|
+
|
|
3
|
+
> TypeScript-first SQL ORM: schema → codegen → typed client for PostgreSQL, SQLite, MySQL, and MariaDB. You own the SQL; it handles the boilerplate.
|
|
4
|
+
|
|
5
|
+
## Guide
|
|
6
|
+
|
|
7
|
+
- [Getting started](docs/getting-started.md): install, scaffold a project, first migration, Studio.
|
|
8
|
+
- [Examples](docs/examples.md): end-to-end schema and query patterns, including the blog example.
|
|
9
|
+
- [CLI](docs/cli.md): `init`, `generate`, `migrate`, and `studio` commands.
|
|
10
|
+
- [Configuration](docs/configuration.md): `neoorm.config.ts` and datasource setup.
|
|
11
|
+
- [Studio](docs/studio.md): local data browser and schema explorer.
|
|
12
|
+
- [Migrations](docs/migrations.md): migration workflow and `dbPush`.
|
|
13
|
+
- [Seeding](docs/seeding.md): `neoorm seed`, environments, idempotent seeds.
|
|
14
|
+
|
|
15
|
+
## Schema and validation
|
|
16
|
+
|
|
17
|
+
- [Schema DSL](docs/schema.md): tables, columns, indexes (including partial), relations.
|
|
18
|
+
- [Zod](docs/zod.md): Zod validation schemas from the schema.
|
|
19
|
+
- [TypeBox](docs/typebox.md): TypeBox validation schemas from the schema.
|
|
20
|
+
- [Elysia](docs/elysia.md): Elysia integration.
|
|
21
|
+
|
|
22
|
+
## Queries
|
|
23
|
+
|
|
24
|
+
- [Queries](docs/queries.md): `findMany`, `findUnique`, writes, filters, pagination, aggregations.
|
|
25
|
+
- [Relations](docs/relations.md): `with` reads, nested writes, many-to-many.
|
|
26
|
+
- [Transactions](docs/transactions.md): interactive transactions and isolation.
|
|
27
|
+
|
|
28
|
+
## Dialects
|
|
29
|
+
|
|
30
|
+
- [SQLite](docs/sqlite.md): SQLite specifics and limitations.
|
|
31
|
+
- [MySQL](docs/mysql.md): MySQL 8 specifics and limitations.
|
|
32
|
+
- [MariaDB](docs/mariadb.md): MariaDB 10.11 specifics and limitations.
|
|
33
|
+
|
|
34
|
+
## Reference
|
|
35
|
+
|
|
36
|
+
- [Errors](docs/errors.md): error codes and handling.
|
|
37
|
+
- [Plugins](docs/plugins.md): column-type plugins (PostGIS and custom).
|
|
38
|
+
- [API docstring conventions](docs/api-docstrings.md): TSDoc rules for contributors (docstrings ship in IDE hovers and `.d.ts`).
|
|
39
|
+
|
|
40
|
+
Full contents in one file: [llms-full.txt](llms-full.txt) (generated from `docs/` — do not edit; run `bun run docs:llms`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neoorm",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "TypeScript-first PostgreSQL, SQLite, MySQL, and MariaDB ORM with schema DSL, codegen, and typed relations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
"dist",
|
|
61
61
|
"docs",
|
|
62
62
|
"README.md",
|
|
63
|
-
"LICENSE"
|
|
63
|
+
"LICENSE",
|
|
64
|
+
"llms.txt",
|
|
65
|
+
"llms-full.txt",
|
|
66
|
+
"AGENTS.md"
|
|
64
67
|
],
|
|
65
68
|
"keywords": [
|
|
66
69
|
"orm",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"studio:typecheck": "bunx tsc -p studio-web/tsconfig.json --noEmit",
|
|
85
88
|
"studio:dev": "bun scripts/studio-dev.ts",
|
|
86
89
|
"dev": "bunx tsc -w -p tsconfig.build.json",
|
|
90
|
+
"docs:llms": "bun scripts/generate-llms.ts",
|
|
87
91
|
"lint": "biome check .",
|
|
88
92
|
"format": "biome format --write .",
|
|
89
93
|
"test": "bunx vitest run",
|