@rivetkit/engine-envoy-protocol 0.0.0-pr.4879.d508104 → 0.0.0-pr.4880.b43a278
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/dist/index.d.ts +308 -2
- package/dist/index.js +1025 -191
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -484,6 +484,22 @@ function writeSqliteGetPagesRequest(bc, x) {
|
|
|
484
484
|
writeSqliteGeneration(bc, x.generation);
|
|
485
485
|
write6(bc, x.pgnos);
|
|
486
486
|
}
|
|
487
|
+
function readSqliteGetPageRangeRequest(bc) {
|
|
488
|
+
return {
|
|
489
|
+
actorId: readId(bc),
|
|
490
|
+
generation: readSqliteGeneration(bc),
|
|
491
|
+
startPgno: readSqlitePgno(bc),
|
|
492
|
+
maxPages: bare.readU32(bc),
|
|
493
|
+
maxBytes: bare.readU64(bc)
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
function writeSqliteGetPageRangeRequest(bc, x) {
|
|
497
|
+
writeId(bc, x.actorId);
|
|
498
|
+
writeSqliteGeneration(bc, x.generation);
|
|
499
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
500
|
+
bare.writeU32(bc, x.maxPages);
|
|
501
|
+
bare.writeU64(bc, x.maxBytes);
|
|
502
|
+
}
|
|
487
503
|
function read7(bc) {
|
|
488
504
|
const len = bare.readUintSafe(bc);
|
|
489
505
|
if (len === 0) {
|
|
@@ -511,6 +527,18 @@ function writeSqliteGetPagesOk(bc, x) {
|
|
|
511
527
|
write7(bc, x.pages);
|
|
512
528
|
writeSqliteMeta(bc, x.meta);
|
|
513
529
|
}
|
|
530
|
+
function readSqliteGetPageRangeOk(bc) {
|
|
531
|
+
return {
|
|
532
|
+
startPgno: readSqlitePgno(bc),
|
|
533
|
+
pages: read7(bc),
|
|
534
|
+
meta: readSqliteMeta(bc)
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
function writeSqliteGetPageRangeOk(bc, x) {
|
|
538
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
539
|
+
write7(bc, x.pages);
|
|
540
|
+
writeSqliteMeta(bc, x.meta);
|
|
541
|
+
}
|
|
514
542
|
function readSqliteErrorResponse(bc) {
|
|
515
543
|
return {
|
|
516
544
|
message: bare.readString(bc)
|
|
@@ -554,6 +582,41 @@ function writeSqliteGetPagesResponse(bc, x) {
|
|
|
554
582
|
}
|
|
555
583
|
}
|
|
556
584
|
}
|
|
585
|
+
function readSqliteGetPageRangeResponse(bc) {
|
|
586
|
+
const offset = bc.offset;
|
|
587
|
+
const tag = bare.readU8(bc);
|
|
588
|
+
switch (tag) {
|
|
589
|
+
case 0:
|
|
590
|
+
return { tag: "SqliteGetPageRangeOk", val: readSqliteGetPageRangeOk(bc) };
|
|
591
|
+
case 1:
|
|
592
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
593
|
+
case 2:
|
|
594
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
595
|
+
default: {
|
|
596
|
+
bc.offset = offset;
|
|
597
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
function writeSqliteGetPageRangeResponse(bc, x) {
|
|
602
|
+
switch (x.tag) {
|
|
603
|
+
case "SqliteGetPageRangeOk": {
|
|
604
|
+
bare.writeU8(bc, 0);
|
|
605
|
+
writeSqliteGetPageRangeOk(bc, x.val);
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
case "SqliteFenceMismatch": {
|
|
609
|
+
bare.writeU8(bc, 1);
|
|
610
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
case "SqliteErrorResponse": {
|
|
614
|
+
bare.writeU8(bc, 2);
|
|
615
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
557
620
|
function read8(bc) {
|
|
558
621
|
const len = bare.readUintSafe(bc);
|
|
559
622
|
if (len === 0) {
|
|
@@ -659,20 +722,638 @@ function writeSqliteCommitStageBeginRequest(bc, x) {
|
|
|
659
722
|
writeId(bc, x.actorId);
|
|
660
723
|
writeSqliteGeneration(bc, x.generation);
|
|
661
724
|
}
|
|
662
|
-
function readSqliteCommitStageBeginOk(bc) {
|
|
725
|
+
function readSqliteCommitStageBeginOk(bc) {
|
|
726
|
+
return {
|
|
727
|
+
txid: readSqliteTxid(bc)
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
function writeSqliteCommitStageBeginOk(bc, x) {
|
|
731
|
+
writeSqliteTxid(bc, x.txid);
|
|
732
|
+
}
|
|
733
|
+
function readSqliteCommitStageBeginResponse(bc) {
|
|
734
|
+
const offset = bc.offset;
|
|
735
|
+
const tag = bare.readU8(bc);
|
|
736
|
+
switch (tag) {
|
|
737
|
+
case 0:
|
|
738
|
+
return { tag: "SqliteCommitStageBeginOk", val: readSqliteCommitStageBeginOk(bc) };
|
|
739
|
+
case 1:
|
|
740
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
741
|
+
case 2:
|
|
742
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
743
|
+
default: {
|
|
744
|
+
bc.offset = offset;
|
|
745
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
function writeSqliteCommitStageBeginResponse(bc, x) {
|
|
750
|
+
switch (x.tag) {
|
|
751
|
+
case "SqliteCommitStageBeginOk": {
|
|
752
|
+
bare.writeU8(bc, 0);
|
|
753
|
+
writeSqliteCommitStageBeginOk(bc, x.val);
|
|
754
|
+
break;
|
|
755
|
+
}
|
|
756
|
+
case "SqliteFenceMismatch": {
|
|
757
|
+
bare.writeU8(bc, 1);
|
|
758
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
case "SqliteErrorResponse": {
|
|
762
|
+
bare.writeU8(bc, 2);
|
|
763
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
function readSqliteCommitStageRequest(bc) {
|
|
769
|
+
return {
|
|
770
|
+
actorId: readId(bc),
|
|
771
|
+
generation: readSqliteGeneration(bc),
|
|
772
|
+
txid: readSqliteTxid(bc),
|
|
773
|
+
chunkIdx: bare.readU32(bc),
|
|
774
|
+
bytes: bare.readData(bc),
|
|
775
|
+
isLast: bare.readBool(bc)
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
function writeSqliteCommitStageRequest(bc, x) {
|
|
779
|
+
writeId(bc, x.actorId);
|
|
780
|
+
writeSqliteGeneration(bc, x.generation);
|
|
781
|
+
writeSqliteTxid(bc, x.txid);
|
|
782
|
+
bare.writeU32(bc, x.chunkIdx);
|
|
783
|
+
bare.writeData(bc, x.bytes);
|
|
784
|
+
bare.writeBool(bc, x.isLast);
|
|
785
|
+
}
|
|
786
|
+
function readSqliteCommitStageOk(bc) {
|
|
787
|
+
return {
|
|
788
|
+
chunkIdxCommitted: bare.readU32(bc)
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
function writeSqliteCommitStageOk(bc, x) {
|
|
792
|
+
bare.writeU32(bc, x.chunkIdxCommitted);
|
|
793
|
+
}
|
|
794
|
+
function readSqliteCommitStageResponse(bc) {
|
|
795
|
+
const offset = bc.offset;
|
|
796
|
+
const tag = bare.readU8(bc);
|
|
797
|
+
switch (tag) {
|
|
798
|
+
case 0:
|
|
799
|
+
return { tag: "SqliteCommitStageOk", val: readSqliteCommitStageOk(bc) };
|
|
800
|
+
case 1:
|
|
801
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
802
|
+
case 2:
|
|
803
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
804
|
+
default: {
|
|
805
|
+
bc.offset = offset;
|
|
806
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
function writeSqliteCommitStageResponse(bc, x) {
|
|
811
|
+
switch (x.tag) {
|
|
812
|
+
case "SqliteCommitStageOk": {
|
|
813
|
+
bare.writeU8(bc, 0);
|
|
814
|
+
writeSqliteCommitStageOk(bc, x.val);
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
case "SqliteFenceMismatch": {
|
|
818
|
+
bare.writeU8(bc, 1);
|
|
819
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
820
|
+
break;
|
|
821
|
+
}
|
|
822
|
+
case "SqliteErrorResponse": {
|
|
823
|
+
bare.writeU8(bc, 2);
|
|
824
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
function readSqliteCommitFinalizeRequest(bc) {
|
|
830
|
+
return {
|
|
831
|
+
actorId: readId(bc),
|
|
832
|
+
generation: readSqliteGeneration(bc),
|
|
833
|
+
expectedHeadTxid: readSqliteTxid(bc),
|
|
834
|
+
txid: readSqliteTxid(bc),
|
|
835
|
+
newDbSizePages: bare.readU32(bc)
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
839
|
+
writeId(bc, x.actorId);
|
|
840
|
+
writeSqliteGeneration(bc, x.generation);
|
|
841
|
+
writeSqliteTxid(bc, x.expectedHeadTxid);
|
|
842
|
+
writeSqliteTxid(bc, x.txid);
|
|
843
|
+
bare.writeU32(bc, x.newDbSizePages);
|
|
844
|
+
}
|
|
845
|
+
function readSqliteCommitFinalizeOk(bc) {
|
|
846
|
+
return {
|
|
847
|
+
newHeadTxid: readSqliteTxid(bc),
|
|
848
|
+
meta: readSqliteMeta(bc)
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
function writeSqliteCommitFinalizeOk(bc, x) {
|
|
852
|
+
writeSqliteTxid(bc, x.newHeadTxid);
|
|
853
|
+
writeSqliteMeta(bc, x.meta);
|
|
854
|
+
}
|
|
855
|
+
function readSqliteStageNotFound(bc) {
|
|
856
|
+
return {
|
|
857
|
+
stageId: readSqliteStageId(bc)
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function writeSqliteStageNotFound(bc, x) {
|
|
861
|
+
writeSqliteStageId(bc, x.stageId);
|
|
862
|
+
}
|
|
863
|
+
function readSqliteCommitFinalizeResponse(bc) {
|
|
864
|
+
const offset = bc.offset;
|
|
865
|
+
const tag = bare.readU8(bc);
|
|
866
|
+
switch (tag) {
|
|
867
|
+
case 0:
|
|
868
|
+
return { tag: "SqliteCommitFinalizeOk", val: readSqliteCommitFinalizeOk(bc) };
|
|
869
|
+
case 1:
|
|
870
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
871
|
+
case 2:
|
|
872
|
+
return { tag: "SqliteStageNotFound", val: readSqliteStageNotFound(bc) };
|
|
873
|
+
case 3:
|
|
874
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
875
|
+
default: {
|
|
876
|
+
bc.offset = offset;
|
|
877
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
882
|
+
switch (x.tag) {
|
|
883
|
+
case "SqliteCommitFinalizeOk": {
|
|
884
|
+
bare.writeU8(bc, 0);
|
|
885
|
+
writeSqliteCommitFinalizeOk(bc, x.val);
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
case "SqliteFenceMismatch": {
|
|
889
|
+
bare.writeU8(bc, 1);
|
|
890
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
891
|
+
break;
|
|
892
|
+
}
|
|
893
|
+
case "SqliteStageNotFound": {
|
|
894
|
+
bare.writeU8(bc, 2);
|
|
895
|
+
writeSqliteStageNotFound(bc, x.val);
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
case "SqliteErrorResponse": {
|
|
899
|
+
bare.writeU8(bc, 3);
|
|
900
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function readSqlitePreloadHintRange(bc) {
|
|
906
|
+
return {
|
|
907
|
+
startPgno: readSqlitePgno(bc),
|
|
908
|
+
pageCount: bare.readU32(bc)
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
function writeSqlitePreloadHintRange(bc, x) {
|
|
912
|
+
writeSqlitePgno(bc, x.startPgno);
|
|
913
|
+
bare.writeU32(bc, x.pageCount);
|
|
914
|
+
}
|
|
915
|
+
function read9(bc) {
|
|
916
|
+
const len = bare.readUintSafe(bc);
|
|
917
|
+
if (len === 0) {
|
|
918
|
+
return [];
|
|
919
|
+
}
|
|
920
|
+
const result = [readSqlitePreloadHintRange(bc)];
|
|
921
|
+
for (let i = 1; i < len; i++) {
|
|
922
|
+
result[i] = readSqlitePreloadHintRange(bc);
|
|
923
|
+
}
|
|
924
|
+
return result;
|
|
925
|
+
}
|
|
926
|
+
function write9(bc, x) {
|
|
927
|
+
bare.writeUintSafe(bc, x.length);
|
|
928
|
+
for (let i = 0; i < x.length; i++) {
|
|
929
|
+
writeSqlitePreloadHintRange(bc, x[i]);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function readSqlitePreloadHints(bc) {
|
|
933
|
+
return {
|
|
934
|
+
pgnos: read6(bc),
|
|
935
|
+
ranges: read9(bc)
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function writeSqlitePreloadHints(bc, x) {
|
|
939
|
+
write6(bc, x.pgnos);
|
|
940
|
+
write9(bc, x.ranges);
|
|
941
|
+
}
|
|
942
|
+
function readSqlitePersistPreloadHintsRequest(bc) {
|
|
943
|
+
return {
|
|
944
|
+
actorId: readId(bc),
|
|
945
|
+
generation: readSqliteGeneration(bc),
|
|
946
|
+
hints: readSqlitePreloadHints(bc)
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
function writeSqlitePersistPreloadHintsRequest(bc, x) {
|
|
950
|
+
writeId(bc, x.actorId);
|
|
951
|
+
writeSqliteGeneration(bc, x.generation);
|
|
952
|
+
writeSqlitePreloadHints(bc, x.hints);
|
|
953
|
+
}
|
|
954
|
+
function readSqlitePersistPreloadHintsResponse(bc) {
|
|
955
|
+
const offset = bc.offset;
|
|
956
|
+
const tag = bare.readU8(bc);
|
|
957
|
+
switch (tag) {
|
|
958
|
+
case 0:
|
|
959
|
+
return { tag: "SqlitePersistPreloadHintsOk", val: null };
|
|
960
|
+
case 1:
|
|
961
|
+
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
962
|
+
case 2:
|
|
963
|
+
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
964
|
+
default: {
|
|
965
|
+
bc.offset = offset;
|
|
966
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
function writeSqlitePersistPreloadHintsResponse(bc, x) {
|
|
971
|
+
switch (x.tag) {
|
|
972
|
+
case "SqlitePersistPreloadHintsOk": {
|
|
973
|
+
bare.writeU8(bc, 0);
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
case "SqliteFenceMismatch": {
|
|
977
|
+
bare.writeU8(bc, 1);
|
|
978
|
+
writeSqliteFenceMismatch(bc, x.val);
|
|
979
|
+
break;
|
|
980
|
+
}
|
|
981
|
+
case "SqliteErrorResponse": {
|
|
982
|
+
bare.writeU8(bc, 2);
|
|
983
|
+
writeSqliteErrorResponse(bc, x.val);
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
function readSqliteStartupData(bc) {
|
|
989
|
+
return {
|
|
990
|
+
generation: readSqliteGeneration(bc),
|
|
991
|
+
meta: readSqliteMeta(bc),
|
|
992
|
+
preloadedPages: read7(bc)
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
function writeSqliteStartupData(bc, x) {
|
|
996
|
+
writeSqliteGeneration(bc, x.generation);
|
|
997
|
+
writeSqliteMeta(bc, x.meta);
|
|
998
|
+
write7(bc, x.preloadedPages);
|
|
999
|
+
}
|
|
1000
|
+
function readSqliteValueInteger(bc) {
|
|
1001
|
+
return {
|
|
1002
|
+
value: bare.readI64(bc)
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
1005
|
+
function writeSqliteValueInteger(bc, x) {
|
|
1006
|
+
bare.writeI64(bc, x.value);
|
|
1007
|
+
}
|
|
1008
|
+
function readSqliteValueFloat(bc) {
|
|
1009
|
+
return {
|
|
1010
|
+
value: bare.readFixedData(bc, 8)
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
function writeSqliteValueFloat(bc, x) {
|
|
1014
|
+
{
|
|
1015
|
+
assert(x.value.byteLength === 8);
|
|
1016
|
+
bare.writeFixedData(bc, x.value);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
function readSqliteValueText(bc) {
|
|
1020
|
+
return {
|
|
1021
|
+
value: bare.readString(bc)
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
function writeSqliteValueText(bc, x) {
|
|
1025
|
+
bare.writeString(bc, x.value);
|
|
1026
|
+
}
|
|
1027
|
+
function readSqliteValueBlob(bc) {
|
|
1028
|
+
return {
|
|
1029
|
+
value: bare.readData(bc)
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
function writeSqliteValueBlob(bc, x) {
|
|
1033
|
+
bare.writeData(bc, x.value);
|
|
1034
|
+
}
|
|
1035
|
+
function readSqliteBindParam(bc) {
|
|
1036
|
+
const offset = bc.offset;
|
|
1037
|
+
const tag = bare.readU8(bc);
|
|
1038
|
+
switch (tag) {
|
|
1039
|
+
case 0:
|
|
1040
|
+
return { tag: "SqliteValueNull", val: null };
|
|
1041
|
+
case 1:
|
|
1042
|
+
return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
|
|
1043
|
+
case 2:
|
|
1044
|
+
return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
|
|
1045
|
+
case 3:
|
|
1046
|
+
return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
|
|
1047
|
+
case 4:
|
|
1048
|
+
return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
|
|
1049
|
+
default: {
|
|
1050
|
+
bc.offset = offset;
|
|
1051
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
function writeSqliteBindParam(bc, x) {
|
|
1056
|
+
switch (x.tag) {
|
|
1057
|
+
case "SqliteValueNull": {
|
|
1058
|
+
bare.writeU8(bc, 0);
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
case "SqliteValueInteger": {
|
|
1062
|
+
bare.writeU8(bc, 1);
|
|
1063
|
+
writeSqliteValueInteger(bc, x.val);
|
|
1064
|
+
break;
|
|
1065
|
+
}
|
|
1066
|
+
case "SqliteValueFloat": {
|
|
1067
|
+
bare.writeU8(bc, 2);
|
|
1068
|
+
writeSqliteValueFloat(bc, x.val);
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
case "SqliteValueText": {
|
|
1072
|
+
bare.writeU8(bc, 3);
|
|
1073
|
+
writeSqliteValueText(bc, x.val);
|
|
1074
|
+
break;
|
|
1075
|
+
}
|
|
1076
|
+
case "SqliteValueBlob": {
|
|
1077
|
+
bare.writeU8(bc, 4);
|
|
1078
|
+
writeSqliteValueBlob(bc, x.val);
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
function readSqliteColumnValue(bc) {
|
|
1084
|
+
const offset = bc.offset;
|
|
1085
|
+
const tag = bare.readU8(bc);
|
|
1086
|
+
switch (tag) {
|
|
1087
|
+
case 0:
|
|
1088
|
+
return { tag: "SqliteValueNull", val: null };
|
|
1089
|
+
case 1:
|
|
1090
|
+
return { tag: "SqliteValueInteger", val: readSqliteValueInteger(bc) };
|
|
1091
|
+
case 2:
|
|
1092
|
+
return { tag: "SqliteValueFloat", val: readSqliteValueFloat(bc) };
|
|
1093
|
+
case 3:
|
|
1094
|
+
return { tag: "SqliteValueText", val: readSqliteValueText(bc) };
|
|
1095
|
+
case 4:
|
|
1096
|
+
return { tag: "SqliteValueBlob", val: readSqliteValueBlob(bc) };
|
|
1097
|
+
default: {
|
|
1098
|
+
bc.offset = offset;
|
|
1099
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
function writeSqliteColumnValue(bc, x) {
|
|
1104
|
+
switch (x.tag) {
|
|
1105
|
+
case "SqliteValueNull": {
|
|
1106
|
+
bare.writeU8(bc, 0);
|
|
1107
|
+
break;
|
|
1108
|
+
}
|
|
1109
|
+
case "SqliteValueInteger": {
|
|
1110
|
+
bare.writeU8(bc, 1);
|
|
1111
|
+
writeSqliteValueInteger(bc, x.val);
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
case "SqliteValueFloat": {
|
|
1115
|
+
bare.writeU8(bc, 2);
|
|
1116
|
+
writeSqliteValueFloat(bc, x.val);
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
case "SqliteValueText": {
|
|
1120
|
+
bare.writeU8(bc, 3);
|
|
1121
|
+
writeSqliteValueText(bc, x.val);
|
|
1122
|
+
break;
|
|
1123
|
+
}
|
|
1124
|
+
case "SqliteValueBlob": {
|
|
1125
|
+
bare.writeU8(bc, 4);
|
|
1126
|
+
writeSqliteValueBlob(bc, x.val);
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
function read10(bc) {
|
|
1132
|
+
const len = bare.readUintSafe(bc);
|
|
1133
|
+
if (len === 0) {
|
|
1134
|
+
return [];
|
|
1135
|
+
}
|
|
1136
|
+
const result = [bare.readString(bc)];
|
|
1137
|
+
for (let i = 1; i < len; i++) {
|
|
1138
|
+
result[i] = bare.readString(bc);
|
|
1139
|
+
}
|
|
1140
|
+
return result;
|
|
1141
|
+
}
|
|
1142
|
+
function write10(bc, x) {
|
|
1143
|
+
bare.writeUintSafe(bc, x.length);
|
|
1144
|
+
for (let i = 0; i < x.length; i++) {
|
|
1145
|
+
bare.writeString(bc, x[i]);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
function read11(bc) {
|
|
1149
|
+
const len = bare.readUintSafe(bc);
|
|
1150
|
+
if (len === 0) {
|
|
1151
|
+
return [];
|
|
1152
|
+
}
|
|
1153
|
+
const result = [readSqliteColumnValue(bc)];
|
|
1154
|
+
for (let i = 1; i < len; i++) {
|
|
1155
|
+
result[i] = readSqliteColumnValue(bc);
|
|
1156
|
+
}
|
|
1157
|
+
return result;
|
|
1158
|
+
}
|
|
1159
|
+
function write11(bc, x) {
|
|
1160
|
+
bare.writeUintSafe(bc, x.length);
|
|
1161
|
+
for (let i = 0; i < x.length; i++) {
|
|
1162
|
+
writeSqliteColumnValue(bc, x[i]);
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
function read12(bc) {
|
|
1166
|
+
const len = bare.readUintSafe(bc);
|
|
1167
|
+
if (len === 0) {
|
|
1168
|
+
return [];
|
|
1169
|
+
}
|
|
1170
|
+
const result = [read11(bc)];
|
|
1171
|
+
for (let i = 1; i < len; i++) {
|
|
1172
|
+
result[i] = read11(bc);
|
|
1173
|
+
}
|
|
1174
|
+
return result;
|
|
1175
|
+
}
|
|
1176
|
+
function write12(bc, x) {
|
|
1177
|
+
bare.writeUintSafe(bc, x.length);
|
|
1178
|
+
for (let i = 0; i < x.length; i++) {
|
|
1179
|
+
write11(bc, x[i]);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
function readSqliteQueryResult(bc) {
|
|
1183
|
+
return {
|
|
1184
|
+
columns: read10(bc),
|
|
1185
|
+
rows: read12(bc)
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
function writeSqliteQueryResult(bc, x) {
|
|
1189
|
+
write10(bc, x.columns);
|
|
1190
|
+
write12(bc, x.rows);
|
|
1191
|
+
}
|
|
1192
|
+
var SqliteExecuteRoute = /* @__PURE__ */ ((SqliteExecuteRoute2) => {
|
|
1193
|
+
SqliteExecuteRoute2["Read"] = "Read";
|
|
1194
|
+
SqliteExecuteRoute2["Write"] = "Write";
|
|
1195
|
+
SqliteExecuteRoute2["WriteFallback"] = "WriteFallback";
|
|
1196
|
+
return SqliteExecuteRoute2;
|
|
1197
|
+
})(SqliteExecuteRoute || {});
|
|
1198
|
+
function readSqliteExecuteRoute(bc) {
|
|
1199
|
+
const offset = bc.offset;
|
|
1200
|
+
const tag = bare.readU8(bc);
|
|
1201
|
+
switch (tag) {
|
|
1202
|
+
case 0:
|
|
1203
|
+
return "Read" /* Read */;
|
|
1204
|
+
case 1:
|
|
1205
|
+
return "Write" /* Write */;
|
|
1206
|
+
case 2:
|
|
1207
|
+
return "WriteFallback" /* WriteFallback */;
|
|
1208
|
+
default: {
|
|
1209
|
+
bc.offset = offset;
|
|
1210
|
+
throw new bare.BareError(offset, "invalid tag");
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
function writeSqliteExecuteRoute(bc, x) {
|
|
1215
|
+
switch (x) {
|
|
1216
|
+
case "Read" /* Read */: {
|
|
1217
|
+
bare.writeU8(bc, 0);
|
|
1218
|
+
break;
|
|
1219
|
+
}
|
|
1220
|
+
case "Write" /* Write */: {
|
|
1221
|
+
bare.writeU8(bc, 1);
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
case "WriteFallback" /* WriteFallback */: {
|
|
1225
|
+
bare.writeU8(bc, 2);
|
|
1226
|
+
break;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
function read13(bc) {
|
|
1231
|
+
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
1232
|
+
}
|
|
1233
|
+
function write13(bc, x) {
|
|
1234
|
+
bare.writeBool(bc, x != null);
|
|
1235
|
+
if (x != null) {
|
|
1236
|
+
bare.writeI64(bc, x);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
function readSqliteExecuteResult(bc) {
|
|
1240
|
+
return {
|
|
1241
|
+
columns: read10(bc),
|
|
1242
|
+
rows: read12(bc),
|
|
1243
|
+
changes: bare.readI64(bc),
|
|
1244
|
+
lastInsertRowId: read13(bc),
|
|
1245
|
+
route: readSqliteExecuteRoute(bc)
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
function writeSqliteExecuteResult(bc, x) {
|
|
1249
|
+
write10(bc, x.columns);
|
|
1250
|
+
write12(bc, x.rows);
|
|
1251
|
+
bare.writeI64(bc, x.changes);
|
|
1252
|
+
write13(bc, x.lastInsertRowId);
|
|
1253
|
+
writeSqliteExecuteRoute(bc, x.route);
|
|
1254
|
+
}
|
|
1255
|
+
function readSqliteExecRequest(bc) {
|
|
1256
|
+
return {
|
|
1257
|
+
namespaceId: readId(bc),
|
|
1258
|
+
actorId: readId(bc),
|
|
1259
|
+
generation: readSqliteGeneration(bc),
|
|
1260
|
+
sql: bare.readString(bc)
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
function writeSqliteExecRequest(bc, x) {
|
|
1264
|
+
writeId(bc, x.namespaceId);
|
|
1265
|
+
writeId(bc, x.actorId);
|
|
1266
|
+
writeSqliteGeneration(bc, x.generation);
|
|
1267
|
+
bare.writeString(bc, x.sql);
|
|
1268
|
+
}
|
|
1269
|
+
function read14(bc) {
|
|
1270
|
+
const len = bare.readUintSafe(bc);
|
|
1271
|
+
if (len === 0) {
|
|
1272
|
+
return [];
|
|
1273
|
+
}
|
|
1274
|
+
const result = [readSqliteBindParam(bc)];
|
|
1275
|
+
for (let i = 1; i < len; i++) {
|
|
1276
|
+
result[i] = readSqliteBindParam(bc);
|
|
1277
|
+
}
|
|
1278
|
+
return result;
|
|
1279
|
+
}
|
|
1280
|
+
function write14(bc, x) {
|
|
1281
|
+
bare.writeUintSafe(bc, x.length);
|
|
1282
|
+
for (let i = 0; i < x.length; i++) {
|
|
1283
|
+
writeSqliteBindParam(bc, x[i]);
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
function read15(bc) {
|
|
1287
|
+
return bare.readBool(bc) ? read14(bc) : null;
|
|
1288
|
+
}
|
|
1289
|
+
function write15(bc, x) {
|
|
1290
|
+
bare.writeBool(bc, x != null);
|
|
1291
|
+
if (x != null) {
|
|
1292
|
+
write14(bc, x);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
function readSqliteExecuteRequest(bc) {
|
|
1296
|
+
return {
|
|
1297
|
+
namespaceId: readId(bc),
|
|
1298
|
+
actorId: readId(bc),
|
|
1299
|
+
generation: readSqliteGeneration(bc),
|
|
1300
|
+
sql: bare.readString(bc),
|
|
1301
|
+
params: read15(bc)
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
function writeSqliteExecuteRequest(bc, x) {
|
|
1305
|
+
writeId(bc, x.namespaceId);
|
|
1306
|
+
writeId(bc, x.actorId);
|
|
1307
|
+
writeSqliteGeneration(bc, x.generation);
|
|
1308
|
+
bare.writeString(bc, x.sql);
|
|
1309
|
+
write15(bc, x.params);
|
|
1310
|
+
}
|
|
1311
|
+
function readSqliteExecuteWriteRequest(bc) {
|
|
1312
|
+
return {
|
|
1313
|
+
namespaceId: readId(bc),
|
|
1314
|
+
actorId: readId(bc),
|
|
1315
|
+
generation: readSqliteGeneration(bc),
|
|
1316
|
+
sql: bare.readString(bc),
|
|
1317
|
+
params: read15(bc)
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
function writeSqliteExecuteWriteRequest(bc, x) {
|
|
1321
|
+
writeId(bc, x.namespaceId);
|
|
1322
|
+
writeId(bc, x.actorId);
|
|
1323
|
+
writeSqliteGeneration(bc, x.generation);
|
|
1324
|
+
bare.writeString(bc, x.sql);
|
|
1325
|
+
write15(bc, x.params);
|
|
1326
|
+
}
|
|
1327
|
+
function readSqliteExecOk(bc) {
|
|
1328
|
+
return {
|
|
1329
|
+
result: readSqliteQueryResult(bc)
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
function writeSqliteExecOk(bc, x) {
|
|
1333
|
+
writeSqliteQueryResult(bc, x.result);
|
|
1334
|
+
}
|
|
1335
|
+
function readSqliteExecuteOk(bc) {
|
|
1336
|
+
return {
|
|
1337
|
+
result: readSqliteExecuteResult(bc)
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
function writeSqliteExecuteOk(bc, x) {
|
|
1341
|
+
writeSqliteExecuteResult(bc, x.result);
|
|
1342
|
+
}
|
|
1343
|
+
function readSqliteExecuteWriteOk(bc) {
|
|
663
1344
|
return {
|
|
664
|
-
|
|
1345
|
+
result: readSqliteExecuteResult(bc)
|
|
665
1346
|
};
|
|
666
1347
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
1348
|
+
function writeSqliteExecuteWriteOk(bc, x) {
|
|
1349
|
+
writeSqliteExecuteResult(bc, x.result);
|
|
669
1350
|
}
|
|
670
|
-
function
|
|
1351
|
+
function readSqliteExecResponse(bc) {
|
|
671
1352
|
const offset = bc.offset;
|
|
672
1353
|
const tag = bare.readU8(bc);
|
|
673
1354
|
switch (tag) {
|
|
674
1355
|
case 0:
|
|
675
|
-
return { tag: "
|
|
1356
|
+
return { tag: "SqliteExecOk", val: readSqliteExecOk(bc) };
|
|
676
1357
|
case 1:
|
|
677
1358
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
678
1359
|
case 2:
|
|
@@ -683,11 +1364,11 @@ function readSqliteCommitStageBeginResponse(bc) {
|
|
|
683
1364
|
}
|
|
684
1365
|
}
|
|
685
1366
|
}
|
|
686
|
-
function
|
|
1367
|
+
function writeSqliteExecResponse(bc, x) {
|
|
687
1368
|
switch (x.tag) {
|
|
688
|
-
case "
|
|
1369
|
+
case "SqliteExecOk": {
|
|
689
1370
|
bare.writeU8(bc, 0);
|
|
690
|
-
|
|
1371
|
+
writeSqliteExecOk(bc, x.val);
|
|
691
1372
|
break;
|
|
692
1373
|
}
|
|
693
1374
|
case "SqliteFenceMismatch": {
|
|
@@ -702,38 +1383,12 @@ function writeSqliteCommitStageBeginResponse(bc, x) {
|
|
|
702
1383
|
}
|
|
703
1384
|
}
|
|
704
1385
|
}
|
|
705
|
-
function
|
|
706
|
-
return {
|
|
707
|
-
actorId: readId(bc),
|
|
708
|
-
generation: readSqliteGeneration(bc),
|
|
709
|
-
txid: readSqliteTxid(bc),
|
|
710
|
-
chunkIdx: bare.readU32(bc),
|
|
711
|
-
bytes: bare.readData(bc),
|
|
712
|
-
isLast: bare.readBool(bc)
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
function writeSqliteCommitStageRequest(bc, x) {
|
|
716
|
-
writeId(bc, x.actorId);
|
|
717
|
-
writeSqliteGeneration(bc, x.generation);
|
|
718
|
-
writeSqliteTxid(bc, x.txid);
|
|
719
|
-
bare.writeU32(bc, x.chunkIdx);
|
|
720
|
-
bare.writeData(bc, x.bytes);
|
|
721
|
-
bare.writeBool(bc, x.isLast);
|
|
722
|
-
}
|
|
723
|
-
function readSqliteCommitStageOk(bc) {
|
|
724
|
-
return {
|
|
725
|
-
chunkIdxCommitted: bare.readU32(bc)
|
|
726
|
-
};
|
|
727
|
-
}
|
|
728
|
-
function writeSqliteCommitStageOk(bc, x) {
|
|
729
|
-
bare.writeU32(bc, x.chunkIdxCommitted);
|
|
730
|
-
}
|
|
731
|
-
function readSqliteCommitStageResponse(bc) {
|
|
1386
|
+
function readSqliteExecuteResponse(bc) {
|
|
732
1387
|
const offset = bc.offset;
|
|
733
1388
|
const tag = bare.readU8(bc);
|
|
734
1389
|
switch (tag) {
|
|
735
1390
|
case 0:
|
|
736
|
-
return { tag: "
|
|
1391
|
+
return { tag: "SqliteExecuteOk", val: readSqliteExecuteOk(bc) };
|
|
737
1392
|
case 1:
|
|
738
1393
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
739
1394
|
case 2:
|
|
@@ -744,11 +1399,11 @@ function readSqliteCommitStageResponse(bc) {
|
|
|
744
1399
|
}
|
|
745
1400
|
}
|
|
746
1401
|
}
|
|
747
|
-
function
|
|
1402
|
+
function writeSqliteExecuteResponse(bc, x) {
|
|
748
1403
|
switch (x.tag) {
|
|
749
|
-
case "
|
|
1404
|
+
case "SqliteExecuteOk": {
|
|
750
1405
|
bare.writeU8(bc, 0);
|
|
751
|
-
|
|
1406
|
+
writeSqliteExecuteOk(bc, x.val);
|
|
752
1407
|
break;
|
|
753
1408
|
}
|
|
754
1409
|
case "SqliteFenceMismatch": {
|
|
@@ -763,51 +1418,15 @@ function writeSqliteCommitStageResponse(bc, x) {
|
|
|
763
1418
|
}
|
|
764
1419
|
}
|
|
765
1420
|
}
|
|
766
|
-
function
|
|
767
|
-
return {
|
|
768
|
-
actorId: readId(bc),
|
|
769
|
-
generation: readSqliteGeneration(bc),
|
|
770
|
-
expectedHeadTxid: readSqliteTxid(bc),
|
|
771
|
-
txid: readSqliteTxid(bc),
|
|
772
|
-
newDbSizePages: bare.readU32(bc)
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
function writeSqliteCommitFinalizeRequest(bc, x) {
|
|
776
|
-
writeId(bc, x.actorId);
|
|
777
|
-
writeSqliteGeneration(bc, x.generation);
|
|
778
|
-
writeSqliteTxid(bc, x.expectedHeadTxid);
|
|
779
|
-
writeSqliteTxid(bc, x.txid);
|
|
780
|
-
bare.writeU32(bc, x.newDbSizePages);
|
|
781
|
-
}
|
|
782
|
-
function readSqliteCommitFinalizeOk(bc) {
|
|
783
|
-
return {
|
|
784
|
-
newHeadTxid: readSqliteTxid(bc),
|
|
785
|
-
meta: readSqliteMeta(bc)
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
function writeSqliteCommitFinalizeOk(bc, x) {
|
|
789
|
-
writeSqliteTxid(bc, x.newHeadTxid);
|
|
790
|
-
writeSqliteMeta(bc, x.meta);
|
|
791
|
-
}
|
|
792
|
-
function readSqliteStageNotFound(bc) {
|
|
793
|
-
return {
|
|
794
|
-
stageId: readSqliteStageId(bc)
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
function writeSqliteStageNotFound(bc, x) {
|
|
798
|
-
writeSqliteStageId(bc, x.stageId);
|
|
799
|
-
}
|
|
800
|
-
function readSqliteCommitFinalizeResponse(bc) {
|
|
1421
|
+
function readSqliteExecuteWriteResponse(bc) {
|
|
801
1422
|
const offset = bc.offset;
|
|
802
1423
|
const tag = bare.readU8(bc);
|
|
803
1424
|
switch (tag) {
|
|
804
1425
|
case 0:
|
|
805
|
-
return { tag: "
|
|
1426
|
+
return { tag: "SqliteExecuteWriteOk", val: readSqliteExecuteWriteOk(bc) };
|
|
806
1427
|
case 1:
|
|
807
1428
|
return { tag: "SqliteFenceMismatch", val: readSqliteFenceMismatch(bc) };
|
|
808
1429
|
case 2:
|
|
809
|
-
return { tag: "SqliteStageNotFound", val: readSqliteStageNotFound(bc) };
|
|
810
|
-
case 3:
|
|
811
1430
|
return { tag: "SqliteErrorResponse", val: readSqliteErrorResponse(bc) };
|
|
812
1431
|
default: {
|
|
813
1432
|
bc.offset = offset;
|
|
@@ -815,11 +1434,11 @@ function readSqliteCommitFinalizeResponse(bc) {
|
|
|
815
1434
|
}
|
|
816
1435
|
}
|
|
817
1436
|
}
|
|
818
|
-
function
|
|
1437
|
+
function writeSqliteExecuteWriteResponse(bc, x) {
|
|
819
1438
|
switch (x.tag) {
|
|
820
|
-
case "
|
|
1439
|
+
case "SqliteExecuteWriteOk": {
|
|
821
1440
|
bare.writeU8(bc, 0);
|
|
822
|
-
|
|
1441
|
+
writeSqliteExecuteWriteOk(bc, x.val);
|
|
823
1442
|
break;
|
|
824
1443
|
}
|
|
825
1444
|
case "SqliteFenceMismatch": {
|
|
@@ -827,30 +1446,13 @@ function writeSqliteCommitFinalizeResponse(bc, x) {
|
|
|
827
1446
|
writeSqliteFenceMismatch(bc, x.val);
|
|
828
1447
|
break;
|
|
829
1448
|
}
|
|
830
|
-
case "SqliteStageNotFound": {
|
|
831
|
-
bare.writeU8(bc, 2);
|
|
832
|
-
writeSqliteStageNotFound(bc, x.val);
|
|
833
|
-
break;
|
|
834
|
-
}
|
|
835
1449
|
case "SqliteErrorResponse": {
|
|
836
|
-
bare.writeU8(bc,
|
|
1450
|
+
bare.writeU8(bc, 2);
|
|
837
1451
|
writeSqliteErrorResponse(bc, x.val);
|
|
838
1452
|
break;
|
|
839
1453
|
}
|
|
840
1454
|
}
|
|
841
1455
|
}
|
|
842
|
-
function readSqliteStartupData(bc) {
|
|
843
|
-
return {
|
|
844
|
-
generation: readSqliteGeneration(bc),
|
|
845
|
-
meta: readSqliteMeta(bc),
|
|
846
|
-
preloadedPages: read7(bc)
|
|
847
|
-
};
|
|
848
|
-
}
|
|
849
|
-
function writeSqliteStartupData(bc, x) {
|
|
850
|
-
writeSqliteGeneration(bc, x.generation);
|
|
851
|
-
writeSqliteMeta(bc, x.meta);
|
|
852
|
-
write7(bc, x.preloadedPages);
|
|
853
|
-
}
|
|
854
1456
|
var StopCode = /* @__PURE__ */ ((StopCode2) => {
|
|
855
1457
|
StopCode2["Ok"] = "Ok";
|
|
856
1458
|
StopCode2["Error"] = "Error";
|
|
@@ -890,19 +1492,19 @@ function readActorName(bc) {
|
|
|
890
1492
|
function writeActorName(bc, x) {
|
|
891
1493
|
writeJson(bc, x.metadata);
|
|
892
1494
|
}
|
|
893
|
-
function
|
|
1495
|
+
function read16(bc) {
|
|
894
1496
|
return bare.readBool(bc) ? bare.readString(bc) : null;
|
|
895
1497
|
}
|
|
896
|
-
function
|
|
1498
|
+
function write16(bc, x) {
|
|
897
1499
|
bare.writeBool(bc, x != null);
|
|
898
1500
|
if (x != null) {
|
|
899
1501
|
bare.writeString(bc, x);
|
|
900
1502
|
}
|
|
901
1503
|
}
|
|
902
|
-
function
|
|
1504
|
+
function read17(bc) {
|
|
903
1505
|
return bare.readBool(bc) ? bare.readData(bc) : null;
|
|
904
1506
|
}
|
|
905
|
-
function
|
|
1507
|
+
function write17(bc, x) {
|
|
906
1508
|
bare.writeBool(bc, x != null);
|
|
907
1509
|
if (x != null) {
|
|
908
1510
|
bare.writeData(bc, x);
|
|
@@ -911,16 +1513,16 @@ function write10(bc, x) {
|
|
|
911
1513
|
function readActorConfig(bc) {
|
|
912
1514
|
return {
|
|
913
1515
|
name: bare.readString(bc),
|
|
914
|
-
key:
|
|
1516
|
+
key: read16(bc),
|
|
915
1517
|
createTs: bare.readI64(bc),
|
|
916
|
-
input:
|
|
1518
|
+
input: read17(bc)
|
|
917
1519
|
};
|
|
918
1520
|
}
|
|
919
1521
|
function writeActorConfig(bc, x) {
|
|
920
1522
|
bare.writeString(bc, x.name);
|
|
921
|
-
|
|
1523
|
+
write16(bc, x.key);
|
|
922
1524
|
bare.writeI64(bc, x.createTs);
|
|
923
|
-
|
|
1525
|
+
write17(bc, x.input);
|
|
924
1526
|
}
|
|
925
1527
|
function readActorCheckpoint(bc) {
|
|
926
1528
|
return {
|
|
@@ -963,12 +1565,12 @@ function writeActorIntent(bc, x) {
|
|
|
963
1565
|
function readActorStateStopped(bc) {
|
|
964
1566
|
return {
|
|
965
1567
|
code: readStopCode(bc),
|
|
966
|
-
message:
|
|
1568
|
+
message: read16(bc)
|
|
967
1569
|
};
|
|
968
1570
|
}
|
|
969
1571
|
function writeActorStateStopped(bc, x) {
|
|
970
1572
|
writeStopCode(bc, x.code);
|
|
971
|
-
|
|
1573
|
+
write16(bc, x.message);
|
|
972
1574
|
}
|
|
973
1575
|
function readActorState(bc) {
|
|
974
1576
|
const offset = bc.offset;
|
|
@@ -1013,22 +1615,13 @@ function readEventActorStateUpdate(bc) {
|
|
|
1013
1615
|
function writeEventActorStateUpdate(bc, x) {
|
|
1014
1616
|
writeActorState(bc, x.state);
|
|
1015
1617
|
}
|
|
1016
|
-
function read11(bc) {
|
|
1017
|
-
return bare.readBool(bc) ? bare.readI64(bc) : null;
|
|
1018
|
-
}
|
|
1019
|
-
function write11(bc, x) {
|
|
1020
|
-
bare.writeBool(bc, x != null);
|
|
1021
|
-
if (x != null) {
|
|
1022
|
-
bare.writeI64(bc, x);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
1618
|
function readEventActorSetAlarm(bc) {
|
|
1026
1619
|
return {
|
|
1027
|
-
alarmTs:
|
|
1620
|
+
alarmTs: read13(bc)
|
|
1028
1621
|
};
|
|
1029
1622
|
}
|
|
1030
1623
|
function writeEventActorSetAlarm(bc, x) {
|
|
1031
|
-
|
|
1624
|
+
write13(bc, x.alarmTs);
|
|
1032
1625
|
}
|
|
1033
1626
|
function readEvent(bc) {
|
|
1034
1627
|
const offset = bc.offset;
|
|
@@ -1087,7 +1680,7 @@ function writePreloadedKvEntry(bc, x) {
|
|
|
1087
1680
|
writeKvValue(bc, x.value);
|
|
1088
1681
|
writeKvMetadata(bc, x.metadata);
|
|
1089
1682
|
}
|
|
1090
|
-
function
|
|
1683
|
+
function read18(bc) {
|
|
1091
1684
|
const len = bare.readUintSafe(bc);
|
|
1092
1685
|
if (len === 0) {
|
|
1093
1686
|
return [];
|
|
@@ -1098,7 +1691,7 @@ function read12(bc) {
|
|
|
1098
1691
|
}
|
|
1099
1692
|
return result;
|
|
1100
1693
|
}
|
|
1101
|
-
function
|
|
1694
|
+
function write18(bc, x) {
|
|
1102
1695
|
bare.writeUintSafe(bc, x.length);
|
|
1103
1696
|
for (let i = 0; i < x.length; i++) {
|
|
1104
1697
|
writePreloadedKvEntry(bc, x[i]);
|
|
@@ -1106,13 +1699,13 @@ function write12(bc, x) {
|
|
|
1106
1699
|
}
|
|
1107
1700
|
function readPreloadedKv(bc) {
|
|
1108
1701
|
return {
|
|
1109
|
-
entries:
|
|
1702
|
+
entries: read18(bc),
|
|
1110
1703
|
requestedGetKeys: read0(bc),
|
|
1111
1704
|
requestedPrefixes: read0(bc)
|
|
1112
1705
|
};
|
|
1113
1706
|
}
|
|
1114
1707
|
function writePreloadedKv(bc, x) {
|
|
1115
|
-
|
|
1708
|
+
write18(bc, x.entries);
|
|
1116
1709
|
write0(bc, x.requestedGetKeys);
|
|
1117
1710
|
write0(bc, x.requestedPrefixes);
|
|
1118
1711
|
}
|
|
@@ -1126,7 +1719,7 @@ function writeHibernatingRequest(bc, x) {
|
|
|
1126
1719
|
writeGatewayId(bc, x.gatewayId);
|
|
1127
1720
|
writeRequestId(bc, x.requestId);
|
|
1128
1721
|
}
|
|
1129
|
-
function
|
|
1722
|
+
function read19(bc) {
|
|
1130
1723
|
const len = bare.readUintSafe(bc);
|
|
1131
1724
|
if (len === 0) {
|
|
1132
1725
|
return [];
|
|
@@ -1137,25 +1730,25 @@ function read13(bc) {
|
|
|
1137
1730
|
}
|
|
1138
1731
|
return result;
|
|
1139
1732
|
}
|
|
1140
|
-
function
|
|
1733
|
+
function write19(bc, x) {
|
|
1141
1734
|
bare.writeUintSafe(bc, x.length);
|
|
1142
1735
|
for (let i = 0; i < x.length; i++) {
|
|
1143
1736
|
writeHibernatingRequest(bc, x[i]);
|
|
1144
1737
|
}
|
|
1145
1738
|
}
|
|
1146
|
-
function
|
|
1739
|
+
function read20(bc) {
|
|
1147
1740
|
return bare.readBool(bc) ? readPreloadedKv(bc) : null;
|
|
1148
1741
|
}
|
|
1149
|
-
function
|
|
1742
|
+
function write20(bc, x) {
|
|
1150
1743
|
bare.writeBool(bc, x != null);
|
|
1151
1744
|
if (x != null) {
|
|
1152
1745
|
writePreloadedKv(bc, x);
|
|
1153
1746
|
}
|
|
1154
1747
|
}
|
|
1155
|
-
function
|
|
1748
|
+
function read21(bc) {
|
|
1156
1749
|
return bare.readBool(bc) ? readSqliteStartupData(bc) : null;
|
|
1157
1750
|
}
|
|
1158
|
-
function
|
|
1751
|
+
function write21(bc, x) {
|
|
1159
1752
|
bare.writeBool(bc, x != null);
|
|
1160
1753
|
if (x != null) {
|
|
1161
1754
|
writeSqliteStartupData(bc, x);
|
|
@@ -1164,16 +1757,16 @@ function write15(bc, x) {
|
|
|
1164
1757
|
function readCommandStartActor(bc) {
|
|
1165
1758
|
return {
|
|
1166
1759
|
config: readActorConfig(bc),
|
|
1167
|
-
hibernatingRequests:
|
|
1168
|
-
preloadedKv:
|
|
1169
|
-
sqliteStartupData:
|
|
1760
|
+
hibernatingRequests: read19(bc),
|
|
1761
|
+
preloadedKv: read20(bc),
|
|
1762
|
+
sqliteStartupData: read21(bc)
|
|
1170
1763
|
};
|
|
1171
1764
|
}
|
|
1172
1765
|
function writeCommandStartActor(bc, x) {
|
|
1173
1766
|
writeActorConfig(bc, x.config);
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1767
|
+
write19(bc, x.hibernatingRequests);
|
|
1768
|
+
write20(bc, x.preloadedKv);
|
|
1769
|
+
write21(bc, x.sqliteStartupData);
|
|
1177
1770
|
}
|
|
1178
1771
|
var StopActorReason = /* @__PURE__ */ ((StopActorReason2) => {
|
|
1179
1772
|
StopActorReason2["SleepIntent"] = "SleepIntent";
|
|
@@ -1330,7 +1923,7 @@ function writeMessageId(bc, x) {
|
|
|
1330
1923
|
writeRequestId(bc, x.requestId);
|
|
1331
1924
|
writeMessageIndex(bc, x.messageIndex);
|
|
1332
1925
|
}
|
|
1333
|
-
function
|
|
1926
|
+
function read22(bc) {
|
|
1334
1927
|
const len = bare.readUintSafe(bc);
|
|
1335
1928
|
const result = /* @__PURE__ */ new Map();
|
|
1336
1929
|
for (let i = 0; i < len; i++) {
|
|
@@ -1344,7 +1937,7 @@ function read16(bc) {
|
|
|
1344
1937
|
}
|
|
1345
1938
|
return result;
|
|
1346
1939
|
}
|
|
1347
|
-
function
|
|
1940
|
+
function write22(bc, x) {
|
|
1348
1941
|
bare.writeUintSafe(bc, x.size);
|
|
1349
1942
|
for (const kv of x) {
|
|
1350
1943
|
bare.writeString(bc, kv[0]);
|
|
@@ -1356,8 +1949,8 @@ function readToEnvoyRequestStart(bc) {
|
|
|
1356
1949
|
actorId: readId(bc),
|
|
1357
1950
|
method: bare.readString(bc),
|
|
1358
1951
|
path: bare.readString(bc),
|
|
1359
|
-
headers:
|
|
1360
|
-
body:
|
|
1952
|
+
headers: read22(bc),
|
|
1953
|
+
body: read17(bc),
|
|
1361
1954
|
stream: bare.readBool(bc)
|
|
1362
1955
|
};
|
|
1363
1956
|
}
|
|
@@ -1365,8 +1958,8 @@ function writeToEnvoyRequestStart(bc, x) {
|
|
|
1365
1958
|
writeId(bc, x.actorId);
|
|
1366
1959
|
bare.writeString(bc, x.method);
|
|
1367
1960
|
bare.writeString(bc, x.path);
|
|
1368
|
-
|
|
1369
|
-
|
|
1961
|
+
write22(bc, x.headers);
|
|
1962
|
+
write17(bc, x.body);
|
|
1370
1963
|
bare.writeBool(bc, x.stream);
|
|
1371
1964
|
}
|
|
1372
1965
|
function readToEnvoyRequestChunk(bc) {
|
|
@@ -1382,15 +1975,15 @@ function writeToEnvoyRequestChunk(bc, x) {
|
|
|
1382
1975
|
function readToRivetResponseStart(bc) {
|
|
1383
1976
|
return {
|
|
1384
1977
|
status: bare.readU16(bc),
|
|
1385
|
-
headers:
|
|
1386
|
-
body:
|
|
1978
|
+
headers: read22(bc),
|
|
1979
|
+
body: read17(bc),
|
|
1387
1980
|
stream: bare.readBool(bc)
|
|
1388
1981
|
};
|
|
1389
1982
|
}
|
|
1390
1983
|
function writeToRivetResponseStart(bc, x) {
|
|
1391
1984
|
bare.writeU16(bc, x.status);
|
|
1392
|
-
|
|
1393
|
-
|
|
1985
|
+
write22(bc, x.headers);
|
|
1986
|
+
write17(bc, x.body);
|
|
1394
1987
|
bare.writeBool(bc, x.stream);
|
|
1395
1988
|
}
|
|
1396
1989
|
function readToRivetResponseChunk(bc) {
|
|
@@ -1407,13 +2000,13 @@ function readToEnvoyWebSocketOpen(bc) {
|
|
|
1407
2000
|
return {
|
|
1408
2001
|
actorId: readId(bc),
|
|
1409
2002
|
path: bare.readString(bc),
|
|
1410
|
-
headers:
|
|
2003
|
+
headers: read22(bc)
|
|
1411
2004
|
};
|
|
1412
2005
|
}
|
|
1413
2006
|
function writeToEnvoyWebSocketOpen(bc, x) {
|
|
1414
2007
|
writeId(bc, x.actorId);
|
|
1415
2008
|
bare.writeString(bc, x.path);
|
|
1416
|
-
|
|
2009
|
+
write22(bc, x.headers);
|
|
1417
2010
|
}
|
|
1418
2011
|
function readToEnvoyWebSocketMessage(bc) {
|
|
1419
2012
|
return {
|
|
@@ -1425,10 +2018,10 @@ function writeToEnvoyWebSocketMessage(bc, x) {
|
|
|
1425
2018
|
bare.writeData(bc, x.data);
|
|
1426
2019
|
bare.writeBool(bc, x.binary);
|
|
1427
2020
|
}
|
|
1428
|
-
function
|
|
2021
|
+
function read23(bc) {
|
|
1429
2022
|
return bare.readBool(bc) ? bare.readU16(bc) : null;
|
|
1430
2023
|
}
|
|
1431
|
-
function
|
|
2024
|
+
function write23(bc, x) {
|
|
1432
2025
|
bare.writeBool(bc, x != null);
|
|
1433
2026
|
if (x != null) {
|
|
1434
2027
|
bare.writeU16(bc, x);
|
|
@@ -1436,13 +2029,13 @@ function write17(bc, x) {
|
|
|
1436
2029
|
}
|
|
1437
2030
|
function readToEnvoyWebSocketClose(bc) {
|
|
1438
2031
|
return {
|
|
1439
|
-
code:
|
|
1440
|
-
reason:
|
|
2032
|
+
code: read23(bc),
|
|
2033
|
+
reason: read16(bc)
|
|
1441
2034
|
};
|
|
1442
2035
|
}
|
|
1443
2036
|
function writeToEnvoyWebSocketClose(bc, x) {
|
|
1444
|
-
|
|
1445
|
-
|
|
2037
|
+
write23(bc, x.code);
|
|
2038
|
+
write16(bc, x.reason);
|
|
1446
2039
|
}
|
|
1447
2040
|
function readToRivetWebSocketOpen(bc) {
|
|
1448
2041
|
return {
|
|
@@ -1472,14 +2065,14 @@ function writeToRivetWebSocketMessageAck(bc, x) {
|
|
|
1472
2065
|
}
|
|
1473
2066
|
function readToRivetWebSocketClose(bc) {
|
|
1474
2067
|
return {
|
|
1475
|
-
code:
|
|
1476
|
-
reason:
|
|
2068
|
+
code: read23(bc),
|
|
2069
|
+
reason: read16(bc),
|
|
1477
2070
|
hibernate: bare.readBool(bc)
|
|
1478
2071
|
};
|
|
1479
2072
|
}
|
|
1480
2073
|
function writeToRivetWebSocketClose(bc, x) {
|
|
1481
|
-
|
|
1482
|
-
|
|
2074
|
+
write23(bc, x.code);
|
|
2075
|
+
write16(bc, x.reason);
|
|
1483
2076
|
bare.writeBool(bc, x.hibernate);
|
|
1484
2077
|
}
|
|
1485
2078
|
function readToRivetTunnelMessageKind(bc) {
|
|
@@ -1627,7 +2220,7 @@ function readToEnvoyPing(bc) {
|
|
|
1627
2220
|
function writeToEnvoyPing(bc, x) {
|
|
1628
2221
|
bare.writeI64(bc, x.ts);
|
|
1629
2222
|
}
|
|
1630
|
-
function
|
|
2223
|
+
function read24(bc) {
|
|
1631
2224
|
const len = bare.readUintSafe(bc);
|
|
1632
2225
|
const result = /* @__PURE__ */ new Map();
|
|
1633
2226
|
for (let i = 0; i < len; i++) {
|
|
@@ -1641,26 +2234,26 @@ function read18(bc) {
|
|
|
1641
2234
|
}
|
|
1642
2235
|
return result;
|
|
1643
2236
|
}
|
|
1644
|
-
function
|
|
2237
|
+
function write24(bc, x) {
|
|
1645
2238
|
bare.writeUintSafe(bc, x.size);
|
|
1646
2239
|
for (const kv of x) {
|
|
1647
2240
|
bare.writeString(bc, kv[0]);
|
|
1648
2241
|
writeActorName(bc, kv[1]);
|
|
1649
2242
|
}
|
|
1650
2243
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return bare.readBool(bc) ?
|
|
2244
|
+
function read25(bc) {
|
|
2245
|
+
return bare.readBool(bc) ? read24(bc) : null;
|
|
1653
2246
|
}
|
|
1654
|
-
function
|
|
2247
|
+
function write25(bc, x) {
|
|
1655
2248
|
bare.writeBool(bc, x != null);
|
|
1656
2249
|
if (x != null) {
|
|
1657
|
-
|
|
2250
|
+
write24(bc, x);
|
|
1658
2251
|
}
|
|
1659
2252
|
}
|
|
1660
|
-
function
|
|
2253
|
+
function read26(bc) {
|
|
1661
2254
|
return bare.readBool(bc) ? readJson(bc) : null;
|
|
1662
2255
|
}
|
|
1663
|
-
function
|
|
2256
|
+
function write26(bc, x) {
|
|
1664
2257
|
bare.writeBool(bc, x != null);
|
|
1665
2258
|
if (x != null) {
|
|
1666
2259
|
writeJson(bc, x);
|
|
@@ -1668,13 +2261,13 @@ function write20(bc, x) {
|
|
|
1668
2261
|
}
|
|
1669
2262
|
function readToRivetMetadata(bc) {
|
|
1670
2263
|
return {
|
|
1671
|
-
prepopulateActorNames:
|
|
1672
|
-
metadata:
|
|
2264
|
+
prepopulateActorNames: read25(bc),
|
|
2265
|
+
metadata: read26(bc)
|
|
1673
2266
|
};
|
|
1674
2267
|
}
|
|
1675
2268
|
function writeToRivetMetadata(bc, x) {
|
|
1676
|
-
|
|
1677
|
-
|
|
2269
|
+
write25(bc, x.prepopulateActorNames);
|
|
2270
|
+
write26(bc, x.metadata);
|
|
1678
2271
|
}
|
|
1679
2272
|
function readToRivetEvents(bc) {
|
|
1680
2273
|
const len = bare.readUintSafe(bc);
|
|
@@ -1693,7 +2286,7 @@ function writeToRivetEvents(bc, x) {
|
|
|
1693
2286
|
writeEventWrapper(bc, x[i]);
|
|
1694
2287
|
}
|
|
1695
2288
|
}
|
|
1696
|
-
function
|
|
2289
|
+
function read27(bc) {
|
|
1697
2290
|
const len = bare.readUintSafe(bc);
|
|
1698
2291
|
if (len === 0) {
|
|
1699
2292
|
return [];
|
|
@@ -1704,7 +2297,7 @@ function read21(bc) {
|
|
|
1704
2297
|
}
|
|
1705
2298
|
return result;
|
|
1706
2299
|
}
|
|
1707
|
-
function
|
|
2300
|
+
function write27(bc, x) {
|
|
1708
2301
|
bare.writeUintSafe(bc, x.length);
|
|
1709
2302
|
for (let i = 0; i < x.length; i++) {
|
|
1710
2303
|
writeActorCheckpoint(bc, x[i]);
|
|
@@ -1712,11 +2305,11 @@ function write21(bc, x) {
|
|
|
1712
2305
|
}
|
|
1713
2306
|
function readToRivetAckCommands(bc) {
|
|
1714
2307
|
return {
|
|
1715
|
-
lastCommandCheckpoints:
|
|
2308
|
+
lastCommandCheckpoints: read27(bc)
|
|
1716
2309
|
};
|
|
1717
2310
|
}
|
|
1718
2311
|
function writeToRivetAckCommands(bc, x) {
|
|
1719
|
-
|
|
2312
|
+
write27(bc, x.lastCommandCheckpoints);
|
|
1720
2313
|
}
|
|
1721
2314
|
function readToRivetPong(bc) {
|
|
1722
2315
|
return {
|
|
@@ -1748,6 +2341,16 @@ function writeToRivetSqliteGetPagesRequest(bc, x) {
|
|
|
1748
2341
|
bare.writeU32(bc, x.requestId);
|
|
1749
2342
|
writeSqliteGetPagesRequest(bc, x.data);
|
|
1750
2343
|
}
|
|
2344
|
+
function readToRivetSqliteGetPageRangeRequest(bc) {
|
|
2345
|
+
return {
|
|
2346
|
+
requestId: bare.readU32(bc),
|
|
2347
|
+
data: readSqliteGetPageRangeRequest(bc)
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
function writeToRivetSqliteGetPageRangeRequest(bc, x) {
|
|
2351
|
+
bare.writeU32(bc, x.requestId);
|
|
2352
|
+
writeSqliteGetPageRangeRequest(bc, x.data);
|
|
2353
|
+
}
|
|
1751
2354
|
function readToRivetSqliteCommitRequest(bc) {
|
|
1752
2355
|
return {
|
|
1753
2356
|
requestId: bare.readU32(bc),
|
|
@@ -1788,6 +2391,46 @@ function writeToRivetSqliteCommitFinalizeRequest(bc, x) {
|
|
|
1788
2391
|
bare.writeU32(bc, x.requestId);
|
|
1789
2392
|
writeSqliteCommitFinalizeRequest(bc, x.data);
|
|
1790
2393
|
}
|
|
2394
|
+
function readToRivetSqlitePersistPreloadHintsRequest(bc) {
|
|
2395
|
+
return {
|
|
2396
|
+
requestId: bare.readU32(bc),
|
|
2397
|
+
data: readSqlitePersistPreloadHintsRequest(bc)
|
|
2398
|
+
};
|
|
2399
|
+
}
|
|
2400
|
+
function writeToRivetSqlitePersistPreloadHintsRequest(bc, x) {
|
|
2401
|
+
bare.writeU32(bc, x.requestId);
|
|
2402
|
+
writeSqlitePersistPreloadHintsRequest(bc, x.data);
|
|
2403
|
+
}
|
|
2404
|
+
function readToRivetSqliteExecRequest(bc) {
|
|
2405
|
+
return {
|
|
2406
|
+
requestId: bare.readU32(bc),
|
|
2407
|
+
data: readSqliteExecRequest(bc)
|
|
2408
|
+
};
|
|
2409
|
+
}
|
|
2410
|
+
function writeToRivetSqliteExecRequest(bc, x) {
|
|
2411
|
+
bare.writeU32(bc, x.requestId);
|
|
2412
|
+
writeSqliteExecRequest(bc, x.data);
|
|
2413
|
+
}
|
|
2414
|
+
function readToRivetSqliteExecuteRequest(bc) {
|
|
2415
|
+
return {
|
|
2416
|
+
requestId: bare.readU32(bc),
|
|
2417
|
+
data: readSqliteExecuteRequest(bc)
|
|
2418
|
+
};
|
|
2419
|
+
}
|
|
2420
|
+
function writeToRivetSqliteExecuteRequest(bc, x) {
|
|
2421
|
+
bare.writeU32(bc, x.requestId);
|
|
2422
|
+
writeSqliteExecuteRequest(bc, x.data);
|
|
2423
|
+
}
|
|
2424
|
+
function readToRivetSqliteExecuteWriteRequest(bc) {
|
|
2425
|
+
return {
|
|
2426
|
+
requestId: bare.readU32(bc),
|
|
2427
|
+
data: readSqliteExecuteWriteRequest(bc)
|
|
2428
|
+
};
|
|
2429
|
+
}
|
|
2430
|
+
function writeToRivetSqliteExecuteWriteRequest(bc, x) {
|
|
2431
|
+
bare.writeU32(bc, x.requestId);
|
|
2432
|
+
writeSqliteExecuteWriteRequest(bc, x.data);
|
|
2433
|
+
}
|
|
1791
2434
|
function readToRivet(bc) {
|
|
1792
2435
|
const offset = bc.offset;
|
|
1793
2436
|
const tag = bare.readU8(bc);
|
|
@@ -1809,13 +2452,23 @@ function readToRivet(bc) {
|
|
|
1809
2452
|
case 7:
|
|
1810
2453
|
return { tag: "ToRivetSqliteGetPagesRequest", val: readToRivetSqliteGetPagesRequest(bc) };
|
|
1811
2454
|
case 8:
|
|
1812
|
-
return { tag: "
|
|
2455
|
+
return { tag: "ToRivetSqliteGetPageRangeRequest", val: readToRivetSqliteGetPageRangeRequest(bc) };
|
|
1813
2456
|
case 9:
|
|
1814
|
-
return { tag: "
|
|
2457
|
+
return { tag: "ToRivetSqliteCommitRequest", val: readToRivetSqliteCommitRequest(bc) };
|
|
1815
2458
|
case 10:
|
|
1816
|
-
return { tag: "
|
|
2459
|
+
return { tag: "ToRivetSqliteCommitStageBeginRequest", val: readToRivetSqliteCommitStageBeginRequest(bc) };
|
|
1817
2460
|
case 11:
|
|
2461
|
+
return { tag: "ToRivetSqliteCommitStageRequest", val: readToRivetSqliteCommitStageRequest(bc) };
|
|
2462
|
+
case 12:
|
|
1818
2463
|
return { tag: "ToRivetSqliteCommitFinalizeRequest", val: readToRivetSqliteCommitFinalizeRequest(bc) };
|
|
2464
|
+
case 13:
|
|
2465
|
+
return { tag: "ToRivetSqlitePersistPreloadHintsRequest", val: readToRivetSqlitePersistPreloadHintsRequest(bc) };
|
|
2466
|
+
case 14:
|
|
2467
|
+
return { tag: "ToRivetSqliteExecRequest", val: readToRivetSqliteExecRequest(bc) };
|
|
2468
|
+
case 15:
|
|
2469
|
+
return { tag: "ToRivetSqliteExecuteRequest", val: readToRivetSqliteExecuteRequest(bc) };
|
|
2470
|
+
case 16:
|
|
2471
|
+
return { tag: "ToRivetSqliteExecuteWriteRequest", val: readToRivetSqliteExecuteWriteRequest(bc) };
|
|
1819
2472
|
default: {
|
|
1820
2473
|
bc.offset = offset;
|
|
1821
2474
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -1863,26 +2516,51 @@ function writeToRivet(bc, x) {
|
|
|
1863
2516
|
writeToRivetSqliteGetPagesRequest(bc, x.val);
|
|
1864
2517
|
break;
|
|
1865
2518
|
}
|
|
1866
|
-
case "
|
|
2519
|
+
case "ToRivetSqliteGetPageRangeRequest": {
|
|
1867
2520
|
bare.writeU8(bc, 8);
|
|
2521
|
+
writeToRivetSqliteGetPageRangeRequest(bc, x.val);
|
|
2522
|
+
break;
|
|
2523
|
+
}
|
|
2524
|
+
case "ToRivetSqliteCommitRequest": {
|
|
2525
|
+
bare.writeU8(bc, 9);
|
|
1868
2526
|
writeToRivetSqliteCommitRequest(bc, x.val);
|
|
1869
2527
|
break;
|
|
1870
2528
|
}
|
|
1871
2529
|
case "ToRivetSqliteCommitStageBeginRequest": {
|
|
1872
|
-
bare.writeU8(bc,
|
|
2530
|
+
bare.writeU8(bc, 10);
|
|
1873
2531
|
writeToRivetSqliteCommitStageBeginRequest(bc, x.val);
|
|
1874
2532
|
break;
|
|
1875
2533
|
}
|
|
1876
2534
|
case "ToRivetSqliteCommitStageRequest": {
|
|
1877
|
-
bare.writeU8(bc,
|
|
2535
|
+
bare.writeU8(bc, 11);
|
|
1878
2536
|
writeToRivetSqliteCommitStageRequest(bc, x.val);
|
|
1879
2537
|
break;
|
|
1880
2538
|
}
|
|
1881
2539
|
case "ToRivetSqliteCommitFinalizeRequest": {
|
|
1882
|
-
bare.writeU8(bc,
|
|
2540
|
+
bare.writeU8(bc, 12);
|
|
1883
2541
|
writeToRivetSqliteCommitFinalizeRequest(bc, x.val);
|
|
1884
2542
|
break;
|
|
1885
2543
|
}
|
|
2544
|
+
case "ToRivetSqlitePersistPreloadHintsRequest": {
|
|
2545
|
+
bare.writeU8(bc, 13);
|
|
2546
|
+
writeToRivetSqlitePersistPreloadHintsRequest(bc, x.val);
|
|
2547
|
+
break;
|
|
2548
|
+
}
|
|
2549
|
+
case "ToRivetSqliteExecRequest": {
|
|
2550
|
+
bare.writeU8(bc, 14);
|
|
2551
|
+
writeToRivetSqliteExecRequest(bc, x.val);
|
|
2552
|
+
break;
|
|
2553
|
+
}
|
|
2554
|
+
case "ToRivetSqliteExecuteRequest": {
|
|
2555
|
+
bare.writeU8(bc, 15);
|
|
2556
|
+
writeToRivetSqliteExecuteRequest(bc, x.val);
|
|
2557
|
+
break;
|
|
2558
|
+
}
|
|
2559
|
+
case "ToRivetSqliteExecuteWriteRequest": {
|
|
2560
|
+
bare.writeU8(bc, 16);
|
|
2561
|
+
writeToRivetSqliteExecuteWriteRequest(bc, x.val);
|
|
2562
|
+
break;
|
|
2563
|
+
}
|
|
1886
2564
|
}
|
|
1887
2565
|
}
|
|
1888
2566
|
function encodeToRivet(x, config) {
|
|
@@ -1941,11 +2619,11 @@ function writeToEnvoyCommands(bc, x) {
|
|
|
1941
2619
|
}
|
|
1942
2620
|
function readToEnvoyAckEvents(bc) {
|
|
1943
2621
|
return {
|
|
1944
|
-
lastEventCheckpoints:
|
|
2622
|
+
lastEventCheckpoints: read27(bc)
|
|
1945
2623
|
};
|
|
1946
2624
|
}
|
|
1947
2625
|
function writeToEnvoyAckEvents(bc, x) {
|
|
1948
|
-
|
|
2626
|
+
write27(bc, x.lastEventCheckpoints);
|
|
1949
2627
|
}
|
|
1950
2628
|
function readToEnvoyKvResponse(bc) {
|
|
1951
2629
|
return {
|
|
@@ -1967,6 +2645,16 @@ function writeToEnvoySqliteGetPagesResponse(bc, x) {
|
|
|
1967
2645
|
bare.writeU32(bc, x.requestId);
|
|
1968
2646
|
writeSqliteGetPagesResponse(bc, x.data);
|
|
1969
2647
|
}
|
|
2648
|
+
function readToEnvoySqliteGetPageRangeResponse(bc) {
|
|
2649
|
+
return {
|
|
2650
|
+
requestId: bare.readU32(bc),
|
|
2651
|
+
data: readSqliteGetPageRangeResponse(bc)
|
|
2652
|
+
};
|
|
2653
|
+
}
|
|
2654
|
+
function writeToEnvoySqliteGetPageRangeResponse(bc, x) {
|
|
2655
|
+
bare.writeU32(bc, x.requestId);
|
|
2656
|
+
writeSqliteGetPageRangeResponse(bc, x.data);
|
|
2657
|
+
}
|
|
1970
2658
|
function readToEnvoySqliteCommitResponse(bc) {
|
|
1971
2659
|
return {
|
|
1972
2660
|
requestId: bare.readU32(bc),
|
|
@@ -2007,6 +2695,46 @@ function writeToEnvoySqliteCommitFinalizeResponse(bc, x) {
|
|
|
2007
2695
|
bare.writeU32(bc, x.requestId);
|
|
2008
2696
|
writeSqliteCommitFinalizeResponse(bc, x.data);
|
|
2009
2697
|
}
|
|
2698
|
+
function readToEnvoySqlitePersistPreloadHintsResponse(bc) {
|
|
2699
|
+
return {
|
|
2700
|
+
requestId: bare.readU32(bc),
|
|
2701
|
+
data: readSqlitePersistPreloadHintsResponse(bc)
|
|
2702
|
+
};
|
|
2703
|
+
}
|
|
2704
|
+
function writeToEnvoySqlitePersistPreloadHintsResponse(bc, x) {
|
|
2705
|
+
bare.writeU32(bc, x.requestId);
|
|
2706
|
+
writeSqlitePersistPreloadHintsResponse(bc, x.data);
|
|
2707
|
+
}
|
|
2708
|
+
function readToEnvoySqliteExecResponse(bc) {
|
|
2709
|
+
return {
|
|
2710
|
+
requestId: bare.readU32(bc),
|
|
2711
|
+
data: readSqliteExecResponse(bc)
|
|
2712
|
+
};
|
|
2713
|
+
}
|
|
2714
|
+
function writeToEnvoySqliteExecResponse(bc, x) {
|
|
2715
|
+
bare.writeU32(bc, x.requestId);
|
|
2716
|
+
writeSqliteExecResponse(bc, x.data);
|
|
2717
|
+
}
|
|
2718
|
+
function readToEnvoySqliteExecuteResponse(bc) {
|
|
2719
|
+
return {
|
|
2720
|
+
requestId: bare.readU32(bc),
|
|
2721
|
+
data: readSqliteExecuteResponse(bc)
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2724
|
+
function writeToEnvoySqliteExecuteResponse(bc, x) {
|
|
2725
|
+
bare.writeU32(bc, x.requestId);
|
|
2726
|
+
writeSqliteExecuteResponse(bc, x.data);
|
|
2727
|
+
}
|
|
2728
|
+
function readToEnvoySqliteExecuteWriteResponse(bc) {
|
|
2729
|
+
return {
|
|
2730
|
+
requestId: bare.readU32(bc),
|
|
2731
|
+
data: readSqliteExecuteWriteResponse(bc)
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
function writeToEnvoySqliteExecuteWriteResponse(bc, x) {
|
|
2735
|
+
bare.writeU32(bc, x.requestId);
|
|
2736
|
+
writeSqliteExecuteWriteResponse(bc, x.data);
|
|
2737
|
+
}
|
|
2010
2738
|
function readToEnvoy(bc) {
|
|
2011
2739
|
const offset = bc.offset;
|
|
2012
2740
|
const tag = bare.readU8(bc);
|
|
@@ -2026,13 +2754,23 @@ function readToEnvoy(bc) {
|
|
|
2026
2754
|
case 6:
|
|
2027
2755
|
return { tag: "ToEnvoySqliteGetPagesResponse", val: readToEnvoySqliteGetPagesResponse(bc) };
|
|
2028
2756
|
case 7:
|
|
2029
|
-
return { tag: "
|
|
2757
|
+
return { tag: "ToEnvoySqliteGetPageRangeResponse", val: readToEnvoySqliteGetPageRangeResponse(bc) };
|
|
2030
2758
|
case 8:
|
|
2031
|
-
return { tag: "
|
|
2759
|
+
return { tag: "ToEnvoySqliteCommitResponse", val: readToEnvoySqliteCommitResponse(bc) };
|
|
2032
2760
|
case 9:
|
|
2033
|
-
return { tag: "
|
|
2761
|
+
return { tag: "ToEnvoySqliteCommitStageBeginResponse", val: readToEnvoySqliteCommitStageBeginResponse(bc) };
|
|
2034
2762
|
case 10:
|
|
2763
|
+
return { tag: "ToEnvoySqliteCommitStageResponse", val: readToEnvoySqliteCommitStageResponse(bc) };
|
|
2764
|
+
case 11:
|
|
2035
2765
|
return { tag: "ToEnvoySqliteCommitFinalizeResponse", val: readToEnvoySqliteCommitFinalizeResponse(bc) };
|
|
2766
|
+
case 12:
|
|
2767
|
+
return { tag: "ToEnvoySqlitePersistPreloadHintsResponse", val: readToEnvoySqlitePersistPreloadHintsResponse(bc) };
|
|
2768
|
+
case 13:
|
|
2769
|
+
return { tag: "ToEnvoySqliteExecResponse", val: readToEnvoySqliteExecResponse(bc) };
|
|
2770
|
+
case 14:
|
|
2771
|
+
return { tag: "ToEnvoySqliteExecuteResponse", val: readToEnvoySqliteExecuteResponse(bc) };
|
|
2772
|
+
case 15:
|
|
2773
|
+
return { tag: "ToEnvoySqliteExecuteWriteResponse", val: readToEnvoySqliteExecuteWriteResponse(bc) };
|
|
2036
2774
|
default: {
|
|
2037
2775
|
bc.offset = offset;
|
|
2038
2776
|
throw new bare.BareError(offset, "invalid tag");
|
|
@@ -2076,26 +2814,51 @@ function writeToEnvoy(bc, x) {
|
|
|
2076
2814
|
writeToEnvoySqliteGetPagesResponse(bc, x.val);
|
|
2077
2815
|
break;
|
|
2078
2816
|
}
|
|
2079
|
-
case "
|
|
2817
|
+
case "ToEnvoySqliteGetPageRangeResponse": {
|
|
2080
2818
|
bare.writeU8(bc, 7);
|
|
2819
|
+
writeToEnvoySqliteGetPageRangeResponse(bc, x.val);
|
|
2820
|
+
break;
|
|
2821
|
+
}
|
|
2822
|
+
case "ToEnvoySqliteCommitResponse": {
|
|
2823
|
+
bare.writeU8(bc, 8);
|
|
2081
2824
|
writeToEnvoySqliteCommitResponse(bc, x.val);
|
|
2082
2825
|
break;
|
|
2083
2826
|
}
|
|
2084
2827
|
case "ToEnvoySqliteCommitStageBeginResponse": {
|
|
2085
|
-
bare.writeU8(bc,
|
|
2828
|
+
bare.writeU8(bc, 9);
|
|
2086
2829
|
writeToEnvoySqliteCommitStageBeginResponse(bc, x.val);
|
|
2087
2830
|
break;
|
|
2088
2831
|
}
|
|
2089
2832
|
case "ToEnvoySqliteCommitStageResponse": {
|
|
2090
|
-
bare.writeU8(bc,
|
|
2833
|
+
bare.writeU8(bc, 10);
|
|
2091
2834
|
writeToEnvoySqliteCommitStageResponse(bc, x.val);
|
|
2092
2835
|
break;
|
|
2093
2836
|
}
|
|
2094
2837
|
case "ToEnvoySqliteCommitFinalizeResponse": {
|
|
2095
|
-
bare.writeU8(bc,
|
|
2838
|
+
bare.writeU8(bc, 11);
|
|
2096
2839
|
writeToEnvoySqliteCommitFinalizeResponse(bc, x.val);
|
|
2097
2840
|
break;
|
|
2098
2841
|
}
|
|
2842
|
+
case "ToEnvoySqlitePersistPreloadHintsResponse": {
|
|
2843
|
+
bare.writeU8(bc, 12);
|
|
2844
|
+
writeToEnvoySqlitePersistPreloadHintsResponse(bc, x.val);
|
|
2845
|
+
break;
|
|
2846
|
+
}
|
|
2847
|
+
case "ToEnvoySqliteExecResponse": {
|
|
2848
|
+
bare.writeU8(bc, 13);
|
|
2849
|
+
writeToEnvoySqliteExecResponse(bc, x.val);
|
|
2850
|
+
break;
|
|
2851
|
+
}
|
|
2852
|
+
case "ToEnvoySqliteExecuteResponse": {
|
|
2853
|
+
bare.writeU8(bc, 14);
|
|
2854
|
+
writeToEnvoySqliteExecuteResponse(bc, x.val);
|
|
2855
|
+
break;
|
|
2856
|
+
}
|
|
2857
|
+
case "ToEnvoySqliteExecuteWriteResponse": {
|
|
2858
|
+
bare.writeU8(bc, 15);
|
|
2859
|
+
writeToEnvoySqliteExecuteWriteResponse(bc, x.val);
|
|
2860
|
+
break;
|
|
2861
|
+
}
|
|
2099
2862
|
}
|
|
2100
2863
|
}
|
|
2101
2864
|
function encodeToEnvoy(x, config) {
|
|
@@ -2302,8 +3065,9 @@ function decodeToOutbound(bytes) {
|
|
|
2302
3065
|
function assert(condition, message) {
|
|
2303
3066
|
if (!condition) throw new Error(message ?? "Assertion failed");
|
|
2304
3067
|
}
|
|
2305
|
-
var VERSION =
|
|
3068
|
+
var VERSION = 4;
|
|
2306
3069
|
export {
|
|
3070
|
+
SqliteExecuteRoute,
|
|
2307
3071
|
StopActorReason,
|
|
2308
3072
|
StopCode,
|
|
2309
3073
|
VERSION,
|
|
@@ -2361,6 +3125,8 @@ export {
|
|
|
2361
3125
|
readPreloadedKvEntry,
|
|
2362
3126
|
readProtocolMetadata,
|
|
2363
3127
|
readRequestId,
|
|
3128
|
+
readSqliteBindParam,
|
|
3129
|
+
readSqliteColumnValue,
|
|
2364
3130
|
readSqliteCommitFinalizeOk,
|
|
2365
3131
|
readSqliteCommitFinalizeRequest,
|
|
2366
3132
|
readSqliteCommitFinalizeResponse,
|
|
@@ -2376,19 +3142,42 @@ export {
|
|
|
2376
3142
|
readSqliteCommitTooLarge,
|
|
2377
3143
|
readSqliteDirtyPage,
|
|
2378
3144
|
readSqliteErrorResponse,
|
|
3145
|
+
readSqliteExecOk,
|
|
3146
|
+
readSqliteExecRequest,
|
|
3147
|
+
readSqliteExecResponse,
|
|
3148
|
+
readSqliteExecuteOk,
|
|
3149
|
+
readSqliteExecuteRequest,
|
|
3150
|
+
readSqliteExecuteResponse,
|
|
3151
|
+
readSqliteExecuteResult,
|
|
3152
|
+
readSqliteExecuteRoute,
|
|
3153
|
+
readSqliteExecuteWriteOk,
|
|
3154
|
+
readSqliteExecuteWriteRequest,
|
|
3155
|
+
readSqliteExecuteWriteResponse,
|
|
2379
3156
|
readSqliteFenceMismatch,
|
|
2380
3157
|
readSqliteFetchedPage,
|
|
2381
3158
|
readSqliteGeneration,
|
|
3159
|
+
readSqliteGetPageRangeOk,
|
|
3160
|
+
readSqliteGetPageRangeRequest,
|
|
3161
|
+
readSqliteGetPageRangeResponse,
|
|
2382
3162
|
readSqliteGetPagesOk,
|
|
2383
3163
|
readSqliteGetPagesRequest,
|
|
2384
3164
|
readSqliteGetPagesResponse,
|
|
2385
3165
|
readSqliteMeta,
|
|
2386
3166
|
readSqlitePageBytes,
|
|
3167
|
+
readSqlitePersistPreloadHintsRequest,
|
|
3168
|
+
readSqlitePersistPreloadHintsResponse,
|
|
2387
3169
|
readSqlitePgno,
|
|
3170
|
+
readSqlitePreloadHintRange,
|
|
3171
|
+
readSqlitePreloadHints,
|
|
3172
|
+
readSqliteQueryResult,
|
|
2388
3173
|
readSqliteStageId,
|
|
2389
3174
|
readSqliteStageNotFound,
|
|
2390
3175
|
readSqliteStartupData,
|
|
2391
3176
|
readSqliteTxid,
|
|
3177
|
+
readSqliteValueBlob,
|
|
3178
|
+
readSqliteValueFloat,
|
|
3179
|
+
readSqliteValueInteger,
|
|
3180
|
+
readSqliteValueText,
|
|
2392
3181
|
readStopActorReason,
|
|
2393
3182
|
readStopCode,
|
|
2394
3183
|
readToEnvoy,
|
|
@@ -2405,7 +3194,12 @@ export {
|
|
|
2405
3194
|
readToEnvoySqliteCommitResponse,
|
|
2406
3195
|
readToEnvoySqliteCommitStageBeginResponse,
|
|
2407
3196
|
readToEnvoySqliteCommitStageResponse,
|
|
3197
|
+
readToEnvoySqliteExecResponse,
|
|
3198
|
+
readToEnvoySqliteExecuteResponse,
|
|
3199
|
+
readToEnvoySqliteExecuteWriteResponse,
|
|
3200
|
+
readToEnvoySqliteGetPageRangeResponse,
|
|
2408
3201
|
readToEnvoySqliteGetPagesResponse,
|
|
3202
|
+
readToEnvoySqlitePersistPreloadHintsResponse,
|
|
2409
3203
|
readToEnvoyTunnelMessage,
|
|
2410
3204
|
readToEnvoyTunnelMessageKind,
|
|
2411
3205
|
readToEnvoyWebSocketClose,
|
|
@@ -2427,7 +3221,12 @@ export {
|
|
|
2427
3221
|
readToRivetSqliteCommitRequest,
|
|
2428
3222
|
readToRivetSqliteCommitStageBeginRequest,
|
|
2429
3223
|
readToRivetSqliteCommitStageRequest,
|
|
3224
|
+
readToRivetSqliteExecRequest,
|
|
3225
|
+
readToRivetSqliteExecuteRequest,
|
|
3226
|
+
readToRivetSqliteExecuteWriteRequest,
|
|
3227
|
+
readToRivetSqliteGetPageRangeRequest,
|
|
2430
3228
|
readToRivetSqliteGetPagesRequest,
|
|
3229
|
+
readToRivetSqlitePersistPreloadHintsRequest,
|
|
2431
3230
|
readToRivetTunnelMessage,
|
|
2432
3231
|
readToRivetTunnelMessageKind,
|
|
2433
3232
|
readToRivetWebSocketClose,
|
|
@@ -2476,6 +3275,8 @@ export {
|
|
|
2476
3275
|
writePreloadedKvEntry,
|
|
2477
3276
|
writeProtocolMetadata,
|
|
2478
3277
|
writeRequestId,
|
|
3278
|
+
writeSqliteBindParam,
|
|
3279
|
+
writeSqliteColumnValue,
|
|
2479
3280
|
writeSqliteCommitFinalizeOk,
|
|
2480
3281
|
writeSqliteCommitFinalizeRequest,
|
|
2481
3282
|
writeSqliteCommitFinalizeResponse,
|
|
@@ -2491,19 +3292,42 @@ export {
|
|
|
2491
3292
|
writeSqliteCommitTooLarge,
|
|
2492
3293
|
writeSqliteDirtyPage,
|
|
2493
3294
|
writeSqliteErrorResponse,
|
|
3295
|
+
writeSqliteExecOk,
|
|
3296
|
+
writeSqliteExecRequest,
|
|
3297
|
+
writeSqliteExecResponse,
|
|
3298
|
+
writeSqliteExecuteOk,
|
|
3299
|
+
writeSqliteExecuteRequest,
|
|
3300
|
+
writeSqliteExecuteResponse,
|
|
3301
|
+
writeSqliteExecuteResult,
|
|
3302
|
+
writeSqliteExecuteRoute,
|
|
3303
|
+
writeSqliteExecuteWriteOk,
|
|
3304
|
+
writeSqliteExecuteWriteRequest,
|
|
3305
|
+
writeSqliteExecuteWriteResponse,
|
|
2494
3306
|
writeSqliteFenceMismatch,
|
|
2495
3307
|
writeSqliteFetchedPage,
|
|
2496
3308
|
writeSqliteGeneration,
|
|
3309
|
+
writeSqliteGetPageRangeOk,
|
|
3310
|
+
writeSqliteGetPageRangeRequest,
|
|
3311
|
+
writeSqliteGetPageRangeResponse,
|
|
2497
3312
|
writeSqliteGetPagesOk,
|
|
2498
3313
|
writeSqliteGetPagesRequest,
|
|
2499
3314
|
writeSqliteGetPagesResponse,
|
|
2500
3315
|
writeSqliteMeta,
|
|
2501
3316
|
writeSqlitePageBytes,
|
|
3317
|
+
writeSqlitePersistPreloadHintsRequest,
|
|
3318
|
+
writeSqlitePersistPreloadHintsResponse,
|
|
2502
3319
|
writeSqlitePgno,
|
|
3320
|
+
writeSqlitePreloadHintRange,
|
|
3321
|
+
writeSqlitePreloadHints,
|
|
3322
|
+
writeSqliteQueryResult,
|
|
2503
3323
|
writeSqliteStageId,
|
|
2504
3324
|
writeSqliteStageNotFound,
|
|
2505
3325
|
writeSqliteStartupData,
|
|
2506
3326
|
writeSqliteTxid,
|
|
3327
|
+
writeSqliteValueBlob,
|
|
3328
|
+
writeSqliteValueFloat,
|
|
3329
|
+
writeSqliteValueInteger,
|
|
3330
|
+
writeSqliteValueText,
|
|
2507
3331
|
writeStopActorReason,
|
|
2508
3332
|
writeStopCode,
|
|
2509
3333
|
writeToEnvoy,
|
|
@@ -2520,7 +3344,12 @@ export {
|
|
|
2520
3344
|
writeToEnvoySqliteCommitResponse,
|
|
2521
3345
|
writeToEnvoySqliteCommitStageBeginResponse,
|
|
2522
3346
|
writeToEnvoySqliteCommitStageResponse,
|
|
3347
|
+
writeToEnvoySqliteExecResponse,
|
|
3348
|
+
writeToEnvoySqliteExecuteResponse,
|
|
3349
|
+
writeToEnvoySqliteExecuteWriteResponse,
|
|
3350
|
+
writeToEnvoySqliteGetPageRangeResponse,
|
|
2523
3351
|
writeToEnvoySqliteGetPagesResponse,
|
|
3352
|
+
writeToEnvoySqlitePersistPreloadHintsResponse,
|
|
2524
3353
|
writeToEnvoyTunnelMessage,
|
|
2525
3354
|
writeToEnvoyTunnelMessageKind,
|
|
2526
3355
|
writeToEnvoyWebSocketClose,
|
|
@@ -2542,7 +3371,12 @@ export {
|
|
|
2542
3371
|
writeToRivetSqliteCommitRequest,
|
|
2543
3372
|
writeToRivetSqliteCommitStageBeginRequest,
|
|
2544
3373
|
writeToRivetSqliteCommitStageRequest,
|
|
3374
|
+
writeToRivetSqliteExecRequest,
|
|
3375
|
+
writeToRivetSqliteExecuteRequest,
|
|
3376
|
+
writeToRivetSqliteExecuteWriteRequest,
|
|
3377
|
+
writeToRivetSqliteGetPageRangeRequest,
|
|
2545
3378
|
writeToRivetSqliteGetPagesRequest,
|
|
3379
|
+
writeToRivetSqlitePersistPreloadHintsRequest,
|
|
2546
3380
|
writeToRivetTunnelMessage,
|
|
2547
3381
|
writeToRivetTunnelMessageKind,
|
|
2548
3382
|
writeToRivetWebSocketClose,
|