@crvouga/sqlite-mem 1.5.0 → 1.6.0
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/compat/scenarios.ts +5 -0
- package/dist/index.js +46 -12
- package/dist/index.js.map +2 -2
- package/dist/unstable.js +9 -0
- package/dist/unstable.js.map +2 -2
- package/package.json +1 -1
package/dist/unstable.js
CHANGED
|
@@ -4957,10 +4957,19 @@ var Parser = class {
|
|
|
4957
4957
|
parseFkActions() {
|
|
4958
4958
|
let onDelete = null;
|
|
4959
4959
|
let onUpdate = null;
|
|
4960
|
+
while (this.match("MATCH")) {
|
|
4961
|
+
this.parseIdent();
|
|
4962
|
+
}
|
|
4960
4963
|
while (this.at("ON")) {
|
|
4961
4964
|
if (this.peek().kind === "DELETE") onDelete = this.parseFkAction("DELETE");
|
|
4962
4965
|
else if (this.peek().kind === "UPDATE") onUpdate = this.parseFkAction("UPDATE");
|
|
4963
4966
|
else this.syntaxError("expected ON DELETE or ON UPDATE");
|
|
4967
|
+
while (this.match("MATCH")) {
|
|
4968
|
+
this.parseIdent();
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
while (this.match("MATCH")) {
|
|
4972
|
+
this.parseIdent();
|
|
4964
4973
|
}
|
|
4965
4974
|
return { onDelete, onUpdate };
|
|
4966
4975
|
}
|