an5-orm 1.0.13__tar.gz → 1.2.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: an5-orm
3
- Version: 1.0.13
3
+ Version: 1.2.0
4
4
  Summary: Lightweight ORM for SQL Server with Python support.
5
5
  Author: an5ORM
6
6
  License: MIT
@@ -154,6 +154,13 @@ await db.$disconnect();
154
154
 
155
155
  ## Schema Definition (`.an5`)
156
156
 
157
+ Field types are validated against the database you are generating for. The provider
158
+ comes from the connection string (`DATABASE_URL` first, then `connectionString` in
159
+ `an5Orm.config.js`): `sqlserver://` (and the fallback) is SQL Server, `postgres://`
160
+ PostgreSQL, `mysql://` MySQL, `sqlite://` SQLite, `googlesheets://` Google Sheets.
161
+ A type the provider does not have stops generation with every offending field
162
+ listed at once — see `PROVIDER_FIELD_TYPES` in `generator/src/field-types.ts`.
163
+
157
164
  ```an5
158
165
  model User {
159
166
  id NVARCHAR(1000) @id @default(uuid())
@@ -178,3 +185,7 @@ model Order {
178
185
  ## License
179
186
 
180
187
  MIT
188
+
189
+ ## Schema-grounded code requests
190
+
191
+ The `@an5/orm/generator` export `prepareCodeRequest({ request, projectRoot, schemaPath, language: 'auto' })` returns `context_ready` with schema models and real generated API references for the caller's AI model. It generates reference files in temporary storage and cleans them afterward. `detectCodeLanguage` reads language manifests in the selected project directory and rejects ambiguous or missing markers. This API does not call an LLM, execute queries, or write application code.
@@ -141,6 +141,13 @@ await db.$disconnect();
141
141
 
142
142
  ## Schema Definition (`.an5`)
143
143
 
144
+ Field types are validated against the database you are generating for. The provider
145
+ comes from the connection string (`DATABASE_URL` first, then `connectionString` in
146
+ `an5Orm.config.js`): `sqlserver://` (and the fallback) is SQL Server, `postgres://`
147
+ PostgreSQL, `mysql://` MySQL, `sqlite://` SQLite, `googlesheets://` Google Sheets.
148
+ A type the provider does not have stops generation with every offending field
149
+ listed at once — see `PROVIDER_FIELD_TYPES` in `generator/src/field-types.ts`.
150
+
144
151
  ```an5
145
152
  model User {
146
153
  id NVARCHAR(1000) @id @default(uuid())
@@ -165,3 +172,7 @@ model Order {
165
172
  ## License
166
173
 
167
174
  MIT
175
+
176
+ ## Schema-grounded code requests
177
+
178
+ The `@an5/orm/generator` export `prepareCodeRequest({ request, projectRoot, schemaPath, language: 'auto' })` returns `context_ready` with schema models and real generated API references for the caller's AI model. It generates reference files in temporary storage and cleans them afterward. `detectCodeLanguage` reads language manifests in the selected project directory and rejects ambiguous or missing markers. This API does not call an LLM, execute queries, or write application code.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "an5-orm"
7
- version = "1.0.13"
7
+ version = "1.2.0"
8
8
  description = "Lightweight ORM for SQL Server with Python support."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: an5-orm
3
- Version: 1.0.13
3
+ Version: 1.2.0
4
4
  Summary: Lightweight ORM for SQL Server with Python support.
5
5
  Author: an5ORM
6
6
  License: MIT
@@ -154,6 +154,13 @@ await db.$disconnect();
154
154
 
155
155
  ## Schema Definition (`.an5`)
156
156
 
157
+ Field types are validated against the database you are generating for. The provider
158
+ comes from the connection string (`DATABASE_URL` first, then `connectionString` in
159
+ `an5Orm.config.js`): `sqlserver://` (and the fallback) is SQL Server, `postgres://`
160
+ PostgreSQL, `mysql://` MySQL, `sqlite://` SQLite, `googlesheets://` Google Sheets.
161
+ A type the provider does not have stops generation with every offending field
162
+ listed at once — see `PROVIDER_FIELD_TYPES` in `generator/src/field-types.ts`.
163
+
157
164
  ```an5
158
165
  model User {
159
166
  id NVARCHAR(1000) @id @default(uuid())
@@ -178,3 +185,7 @@ model Order {
178
185
  ## License
179
186
 
180
187
  MIT
188
+
189
+ ## Schema-grounded code requests
190
+
191
+ The `@an5/orm/generator` export `prepareCodeRequest({ request, projectRoot, schemaPath, language: 'auto' })` returns `context_ready` with schema models and real generated API references for the caller's AI model. It generates reference files in temporary storage and cleans them afterward. `detectCodeLanguage` reads language manifests in the selected project directory and rejects ambiguous or missing markers. This API does not call an LLM, execute queries, or write application code.
File without changes
File without changes