@crvouga/mockingbird-service-sqlite 0.1.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/AGENTS.md +170 -0
- package/COMPATIBILITY-AUDIT.md +236 -0
- package/COMPATIBILITY.md +102 -0
- package/LICENSE +21 -0
- package/README.md +405 -0
- package/compat/coverage.json +22231 -0
- package/compat/divergences.json +145 -0
- package/compat/fts-oracle-surface.json +198 -0
- package/compat/requirements.json +20929 -0
- package/compat/scenario-types.ts +63 -0
- package/compat/scenarios.ts +871 -0
- package/compat/smoke-baseline.json +3 -0
- package/compat/sqllogictest-skip.json +5 -0
- package/dist/api/database.d.ts +112 -0
- package/dist/api/snapshot.d.ts +21 -0
- package/dist/api/statement.d.ts +75 -0
- package/dist/ast/nodes.d.ts +476 -0
- package/dist/constraints/check.d.ts +11 -0
- package/dist/errors/index.d.ts +45 -0
- package/dist/executor/attach.d.ts +5 -0
- package/dist/executor/ddl.d.ts +10 -0
- package/dist/executor/dml.d.ts +7 -0
- package/dist/executor/env.d.ts +66 -0
- package/dist/executor/execute.d.ts +4 -0
- package/dist/executor/pragma-engine.d.ts +31 -0
- package/dist/executor/pragma.d.ts +4 -0
- package/dist/executor/result.d.ts +22 -0
- package/dist/executor/select.d.ts +7 -0
- package/dist/executor/simple-select.d.ts +9 -0
- package/dist/executor/triggers.d.ts +11 -0
- package/dist/executor/vtable.d.ts +12 -0
- package/dist/expressions/context.d.ts +30 -0
- package/dist/expressions/equals.d.ts +3 -0
- package/dist/expressions/eval.d.ts +12 -0
- package/dist/expressions/index.d.ts +3 -0
- package/dist/expressions/like.d.ts +16 -0
- package/dist/functions/aggregate.d.ts +8 -0
- package/dist/functions/datetime.d.ts +2 -0
- package/dist/functions/extensions.d.ts +7 -0
- package/dist/functions/index.d.ts +8 -0
- package/dist/functions/json.d.ts +6 -0
- package/dist/functions/math.d.ts +2 -0
- package/dist/functions/pragma-tvf.d.ts +8 -0
- package/dist/functions/registry.d.ts +39 -0
- package/dist/functions/scalar.d.ts +9 -0
- package/dist/functions/table-valued-registry.d.ts +11 -0
- package/dist/functions/table-valued.d.ts +13 -0
- package/dist/functions/window.d.ts +23 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +16010 -0
- package/dist/index.js.map +7 -0
- package/dist/indexes/index.d.ts +48 -0
- package/dist/indexes/keys.d.ts +15 -0
- package/dist/json/index.d.ts +7 -0
- package/dist/json/jsonb.d.ts +42 -0
- package/dist/json/ops.d.ts +24 -0
- package/dist/json/parse.d.ts +13 -0
- package/dist/json/path.d.ts +26 -0
- package/dist/json/stringify.d.ts +4 -0
- package/dist/json/tvf.d.ts +13 -0
- package/dist/json/types.d.ts +29 -0
- package/dist/lexer/tokenize.d.ts +23 -0
- package/dist/parser/index.d.ts +17 -0
- package/dist/parser/parser.d.ts +115 -0
- package/dist/planner/access.d.ts +50 -0
- package/dist/planner/index.d.ts +3 -0
- package/dist/runtime/assert.d.ts +11 -0
- package/dist/runtime/catch.d.ts +3 -0
- package/dist/runtime/clock.d.ts +14 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/options.d.ts +25 -0
- package/dist/runtime/prng.d.ts +42 -0
- package/dist/schema/catalog.d.ts +14 -0
- package/dist/schema/master-sql.d.ts +10 -0
- package/dist/serialization/codec.d.ts +19 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/wire.d.ts +61 -0
- package/dist/storage/columnar-slab.d.ts +58 -0
- package/dist/storage/database-state.d.ts +96 -0
- package/dist/storage/index.d.ts +6 -0
- package/dist/storage/row.d.ts +13 -0
- package/dist/storage/table.d.ts +119 -0
- package/dist/transactions/manager.d.ts +19 -0
- package/dist/types/collation.d.ts +4 -0
- package/dist/types/sqlite-atof.d.ts +4 -0
- package/dist/types/sqlite-real-format.d.ts +5 -0
- package/dist/types/strict.d.ts +6 -0
- package/dist/types/value.d.ts +88 -0
- package/dist/unstable.d.ts +20 -0
- package/dist/unstable.js +10343 -0
- package/dist/unstable.js.map +7 -0
- package/dist/vtable/fts/options.d.ts +34 -0
- package/dist/vtable/fts/porter.d.ts +2 -0
- package/dist/vtable/fts/query.d.ts +39 -0
- package/dist/vtable/fts/table.d.ts +78 -0
- package/dist/vtable/fts/tokenize.d.ts +20 -0
- package/dist/vtable/fts5.d.ts +1 -0
- package/dist/vtable/index.d.ts +2 -0
- package/dist/vtable/modules.d.ts +65 -0
- package/package.json +122 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** Construct-level drop-in parity catalog types. */
|
|
2
|
+
|
|
3
|
+
export const SECTION_CODES = [
|
|
4
|
+
"TOK",
|
|
5
|
+
"PAR",
|
|
6
|
+
"TYP",
|
|
7
|
+
"EXP",
|
|
8
|
+
"FUN",
|
|
9
|
+
"DAT",
|
|
10
|
+
"JSN",
|
|
11
|
+
"AGG",
|
|
12
|
+
"WIN",
|
|
13
|
+
"SEL",
|
|
14
|
+
"JOI",
|
|
15
|
+
"CTE",
|
|
16
|
+
"DDL",
|
|
17
|
+
"DML",
|
|
18
|
+
"CON",
|
|
19
|
+
"TRG",
|
|
20
|
+
"TXN",
|
|
21
|
+
"PRG",
|
|
22
|
+
"COL",
|
|
23
|
+
"FTS",
|
|
24
|
+
"ATT",
|
|
25
|
+
"API",
|
|
26
|
+
"SNP",
|
|
27
|
+
"DET",
|
|
28
|
+
"ERR",
|
|
29
|
+
"UNI",
|
|
30
|
+
"LIM",
|
|
31
|
+
"FZZ",
|
|
32
|
+
"ECO",
|
|
33
|
+
] as const;
|
|
34
|
+
|
|
35
|
+
export type SectionCode = (typeof SECTION_CODES)[number];
|
|
36
|
+
|
|
37
|
+
export type ScenarioKind = "differential" | "documented_divergence" | "fuzz" | "property" | "ecosystem";
|
|
38
|
+
|
|
39
|
+
export type ProofStrength = "proves" | "smoke";
|
|
40
|
+
|
|
41
|
+
export interface Scenario {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
kind: ScenarioKind;
|
|
45
|
+
evidence: string[];
|
|
46
|
+
notes?: string;
|
|
47
|
+
divergenceId?: string;
|
|
48
|
+
strength?: ProofStrength;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface CatalogSection {
|
|
52
|
+
code: SectionCode;
|
|
53
|
+
title: string;
|
|
54
|
+
promoted: boolean;
|
|
55
|
+
scenarios: Scenario[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** IDs look like `TOK-01`, `WIN-frame-04`, `DET-negzero-01`. */
|
|
59
|
+
export const SCENARIO_ID_RE = /^([A-Z]{3})(?:-[a-z0-9]+)*-\d{2,}$/;
|
|
60
|
+
|
|
61
|
+
export function catalogTestFile(code: SectionCode): string {
|
|
62
|
+
return `tests/contract/catalog/${code.toLowerCase()}.test.ts`;
|
|
63
|
+
}
|