@ronin/compiler 0.12.1 → 0.12.2-readme-experimental-252

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 CHANGED
@@ -76,7 +76,7 @@ const results: Array<Result> = transaction.formatResults(objectResults, false);
76
76
 
77
77
  Before you can run any statements generated by the compiler that are altering the database schema, you need to create the table of the so-called "root model", which is used to store metadata for all other models.
78
78
 
79
- This table is called `ronin_schema`, which mimics the default `sqlite_schema` table provided by SQLite. You can generate its respective SQL statements like so:
79
+ This table is called `ronin_schema`, which mimics the default `sqlite_schema` table provided by SQLite. You can generate its respective SQL statements like this:
80
80
 
81
81
  ```typescript
82
82
  import { Transaction, ROOT_MODEL } from '@ronin/compiler';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const QueryTypeEnum: z.ZodEnum<["get", "set", "add", "remove", "count"]>;
4
+ declare const ModelQueryTypeEnum: z.ZodEnum<["create", "alter", "drop"]>;
4
5
  declare const ExpressionSchema: z.ZodObject<{
5
6
  __RONIN_EXPRESSION: z.ZodString;
6
7
  }, "strip", z.ZodTypeAny, {
@@ -15406,7 +15407,7 @@ type QueryInstructionType = z.infer<typeof InstructionSchema>;
15406
15407
  */
15407
15408
  type CombinedInstructions = z.infer<typeof InstructionsSchema>;
15408
15409
  type Query = z.infer<typeof QuerySchema>;
15409
- type QueryType = z.infer<typeof QueryTypeEnum>;
15410
+ type QueryType = z.infer<typeof QueryTypeEnum> | z.infer<typeof ModelQueryTypeEnum>;
15410
15411
  type QuerySchemaType = z.infer<typeof QuerySchemaSchema>;
15411
15412
  interface Statement {
15412
15413
  statement: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.12.1",
3
+ "version": "0.12.2-readme-experimental-252",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {