@ronin/compiler 0.12.1 → 0.12.2-readme-experimental-252
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
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
|
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;
|