inibase 3.7.0 → 3.8.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/README.md +67 -4
- package/dist/file.d.ts +12 -5
- package/dist/file.js +27 -10
- package/dist/format.d.ts +60 -0
- package/dist/format.js +126 -0
- package/dist/index.d.ts +114 -1
- package/dist/index.js +668 -22
- package/dist/overlay.d.ts +59 -0
- package/dist/overlay.js +106 -0
- package/dist/updatelog.d.ts +115 -0
- package/dist/updatelog.js +377 -0
- package/dist/utils.js +16 -0
- package/package.json +4 -2
package/dist/utils.js
CHANGED
|
@@ -673,6 +673,10 @@ export const ERROR_MESSAGES = {
|
|
|
673
673
|
COMPUTED_FIELD_SETTABLE: "Field {variable} is computed and cannot be set directly",
|
|
674
674
|
COMPUTED_FIELD_DANGLING_LINK: "Computed field {variable} references a missing row in table {variable}",
|
|
675
675
|
COMPUTED_FIELD_ARITHMETIC: "Computed field {variable} failed evaluation ({variable})",
|
|
676
|
+
UPDATE_LOG_CORRUPT: "Update log for table {variable} is corrupt and needs manual recovery",
|
|
677
|
+
UPDATE_LOG_FRAME_TOO_LARGE: "Update log frame for table {variable} exceeds the maximum frame size",
|
|
678
|
+
MAINTENANCE_REQUIRED: "Table {variable} needs compaction before it can accept more writes",
|
|
679
|
+
UNSUPPORTED_FORMAT: "Unsupported database format (requires {variable})",
|
|
676
680
|
},
|
|
677
681
|
ar: {
|
|
678
682
|
TABLE_EMPTY: "الجدول {variable} فارغ",
|
|
@@ -697,6 +701,10 @@ export const ERROR_MESSAGES = {
|
|
|
697
701
|
COMPUTED_FIELD_SETTABLE: "الحقل {variable} محسوب ولا يمكن تعيينه مباشرة",
|
|
698
702
|
COMPUTED_FIELD_DANGLING_LINK: "الحقل المحسوب {variable} يشير إلى صف غير موجود في الجدول {variable}",
|
|
699
703
|
COMPUTED_FIELD_ARITHMETIC: "فشل تقييم الحقل المحسوب {variable} ({variable})",
|
|
704
|
+
UPDATE_LOG_CORRUPT: "سجل التحديثات للجدول {variable} تالف ويحتاج إلى استرداد يدوي",
|
|
705
|
+
UPDATE_LOG_FRAME_TOO_LARGE: "إطار سجل التحديثات للجدول {variable} يتجاوز الحجم الأقصى للإطار",
|
|
706
|
+
MAINTENANCE_REQUIRED: "يحتاج الجدول {variable} إلى ضغط قبل أن يتمكن من قبول المزيد من الكتابات",
|
|
707
|
+
UNSUPPORTED_FORMAT: "تنسيق قاعدة بيانات غير مدعوم (يتطلب {variable})",
|
|
700
708
|
},
|
|
701
709
|
fr: {
|
|
702
710
|
TABLE_EMPTY: "La table {variable} est vide",
|
|
@@ -721,6 +729,10 @@ export const ERROR_MESSAGES = {
|
|
|
721
729
|
COMPUTED_FIELD_SETTABLE: "Le champ {variable} est calculé et ne peut pas être défini directement",
|
|
722
730
|
COMPUTED_FIELD_DANGLING_LINK: "Le champ calculé {variable} référence une ligne manquante dans la table {variable}",
|
|
723
731
|
COMPUTED_FIELD_ARITHMETIC: "L'évaluation du champ calculé {variable} a échoué ({variable})",
|
|
732
|
+
UPDATE_LOG_CORRUPT: "Le journal de mises à jour de la table {variable} est corrompu et nécessite une récupération manuelle",
|
|
733
|
+
UPDATE_LOG_FRAME_TOO_LARGE: "Une trame du journal de mises à jour de la table {variable} dépasse la taille maximale",
|
|
734
|
+
MAINTENANCE_REQUIRED: "La table {variable} doit être compactée avant de pouvoir accepter d'autres écritures",
|
|
735
|
+
UNSUPPORTED_FORMAT: "Format de base de données non pris en charge (nécessite {variable})",
|
|
724
736
|
},
|
|
725
737
|
es: {
|
|
726
738
|
TABLE_EMPTY: "La tabla {variable} está vacía",
|
|
@@ -745,6 +757,10 @@ export const ERROR_MESSAGES = {
|
|
|
745
757
|
COMPUTED_FIELD_SETTABLE: "El campo {variable} es calculado y no puede establecerse directamente",
|
|
746
758
|
COMPUTED_FIELD_DANGLING_LINK: "El campo calculado {variable} referencia una fila inexistente en la tabla {variable}",
|
|
747
759
|
COMPUTED_FIELD_ARITHMETIC: "Falló la evaluación del campo calculado {variable} ({variable})",
|
|
760
|
+
UPDATE_LOG_CORRUPT: "El registro de actualizaciones de la tabla {variable} está corrupto y necesita recuperación manual",
|
|
761
|
+
UPDATE_LOG_FRAME_TOO_LARGE: "Un marco del registro de actualizaciones de la tabla {variable} supera el tamaño máximo",
|
|
762
|
+
MAINTENANCE_REQUIRED: "La tabla {variable} necesita compactarse antes de aceptar más escrituras",
|
|
763
|
+
UNSUPPORTED_FORMAT: "Formato de base de datos no compatible (requiere {variable})",
|
|
748
764
|
},
|
|
749
765
|
};
|
|
750
766
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inibase",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Karim Amahtil",
|
|
@@ -88,8 +88,10 @@
|
|
|
88
88
|
"benchmark": "./benchmark/run.js",
|
|
89
89
|
"benchmark:durability": "tsx ./benchmark/durability.ts",
|
|
90
90
|
"benchmark:computed": "tsx ./benchmark/computed.ts",
|
|
91
|
-
"
|
|
91
|
+
"benchmark:updatelog": "tsx ./benchmark/updatelog.ts",
|
|
92
|
+
"test": "tsx ./tests/inibase.test.ts && tsx ./tests/inibase.advanced.test.ts && tsx ./tests/transaction.test.ts && tsx ./tests/durability.test.ts && tsx ./tests/expression.test.ts && tsx ./tests/utils.test.ts && tsx ./tests/sum.nested.test.ts && tsx ./tests/computed.child.test.ts && tsx ./tests/hardening.test.ts && tsx ./tests/string.roundtrip.test.ts && tsx ./tests/updatelog.test.ts && tsx ./tests/updatelog.engine.test.ts && tsx ./tests/compaction.test.ts",
|
|
92
93
|
"test:durability": "tsx ./tests/durability.test.ts",
|
|
94
|
+
"test:updatelog": "tsx ./tests/updatelog.test.ts && tsx ./tests/updatelog.engine.test.ts && tsx ./tests/compaction.test.ts",
|
|
93
95
|
"test:transaction": "tsx ./tests/transaction.test.ts",
|
|
94
96
|
"test:utils": "tsx ./tests/utils.test.ts",
|
|
95
97
|
"test:expression": "tsx ./tests/expression.test.ts",
|