@ronin/compiler 0.12.8-leo-ron-1071-experimental-263 → 0.12.8-leo-ron-1071-experimental-265
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 +3 -0
- package/dist/index.d.ts +18 -3
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# RONIN Compiler
|
2
2
|
|
3
|
+
[](https://github.com/ronin-co/compiler/actions/workflows/validate.yml)
|
4
|
+
[](https://packagephobia.com/result?p=@ronin/compiler)
|
5
|
+
|
3
6
|
This package compiles [RONIN queries](https://ronin.co/docs/queries) to [SQLite](https://www.sqlite.org) statements.
|
4
7
|
|
5
8
|
## Setup
|
package/dist/index.d.ts
CHANGED
@@ -103,9 +103,24 @@ type CreateQuery = {
|
|
103
103
|
type AlterQuery = {
|
104
104
|
model: string;
|
105
105
|
to?: Partial<PublicModel>;
|
106
|
-
create?:
|
107
|
-
|
108
|
-
|
106
|
+
create?: {
|
107
|
+
field?: ModelField;
|
108
|
+
index?: ModelIndex;
|
109
|
+
trigger?: ModelTrigger;
|
110
|
+
preset?: ModelPreset;
|
111
|
+
};
|
112
|
+
alter?: {
|
113
|
+
field?: string;
|
114
|
+
to?: Partial<ModelField>;
|
115
|
+
} | {
|
116
|
+
index?: string;
|
117
|
+
to?: Partial<ModelIndex>;
|
118
|
+
} | {
|
119
|
+
trigger?: string;
|
120
|
+
to?: Partial<ModelTrigger>;
|
121
|
+
} | {
|
122
|
+
preset?: string;
|
123
|
+
to?: Partial<ModelPreset>;
|
109
124
|
};
|
110
125
|
drop?: Partial<Record<ModelEntityEnum, string>>;
|
111
126
|
};
|
package/package.json
CHANGED