Skip to content

fix/dali-orm-generic#7

Open
woss wants to merge 7 commits into
mainfrom
fix/dali-orm-generic
Open

fix/dali-orm-generic#7
woss wants to merge 7 commits into
mainfrom
fix/dali-orm-generic

Conversation

@woss

@woss woss commented Jun 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

woss added 4 commits June 27, 2026 16:31
- add generateAnalyzerDefinition() and generateRemoveAnalyzer() to SurrealQLGenerator
- add SerializedAnalyzer type + serializeAnalyzer()/restoreAnalyzer() in snapshot
- pass analyzers through generateMigration, fullMigration, snapshotMigration, liveMigration paths
- add analyzers param to generateAndApplyMigration public API
- emit analyzers UP before tables, DOWN after tables (indexes depend on analyzers)
- add section separators (-- ---- Analyzers ----) in generated migration files
- add tests: unit, integration (against live SurrealDB), analyzer-definition
@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 86.85% 5181 / 5965
🔵 Statements 85.94% 5583 / 6496
🔵 Functions 90.87% 1076 / 1184
🔵 Branches 78.46% 3309 / 4217
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/dali-orm/src/migration/api.ts 69.42% 53.19% 83.33% 69.71% 169-216, 246-272, 339, 388, 414, 453, 505-514, 518, 525-526, 533
packages/dali-orm/src/migration/cli.ts 92.5% 85.34% 75% 92.42% 59-63, 241, 244-246, 358-369, 536-538
packages/dali-orm/src/migration/cli/generate.ts 73.79% 64.79% 64.89% 76.71% 103, 108-121, 181-185, 201, 287-297, 334, 337, 340, 343, 368, 375, 510, 525, 528-531, 554, 570-574, 598-603, 621, 634, 646, 649-653, 661, 664-667, 767-790, 809, 837, 840, 846, 855-860, 872, 878-896, 906, 930-940, 948-963, 971-994, 1004-1029, 1080, 1086, 1102, 1103, 1118, 1119, 1154-1156, 1188, 1191, 1193, 1194, 1196, 1197, 1199, 1200, 1201, 1202, 1204, 1205, 1206, 1207, 1286, 1495, 1502, 1510-1512, 1564, 1587-1593, 1603-1621, 1632, 1681, 1744-1749, 1771-1777, 1787-1805
packages/dali-orm/src/migration/cli/migrate.ts 68.22% 54.79% 100% 67.89% 50-58, 67-70, 75-77, 83-90, 96, 183-200, 227, 241-242, 297, 301-304, 336, 344-379, 452-456
packages/dali-orm/src/migration/cli/pull.ts 88.81% 71.71% 100% 87.96% 100, 131-132, 179-180, 185-186, 196-198, 224, 381, 384, 387, 390, 399-400, 405
packages/dali-orm/src/migration/core/generator.ts 92.81% 90.94% 91.66% 92.83% 163, 219, 269, 608-642, 722, 764, 774-776, 786, 813, 848
packages/dali-orm/src/migration/core/runner.ts 94.93% 92% 100% 95.11% 154-155, 318, 469, 493, 539, 565, 588-589, 595-602, 634
packages/dali-orm/src/migration/core/snapshot.ts 92.98% 70% 86.2% 94.33% 288, 355-363, 419-423, 482-490
packages/dali-orm/src/migration/ddl/diff.ts 91.47% 80.41% 92.85% 92.23% 39, 40, 41, 42, 50, 56, 677-695, 700-701, 706-707, 713-717, 723-732, 832-834
packages/dali-orm/src/migration/ddl/journal.ts 96.87% 80% 100% 96.42% 107-108, 318
packages/dali-orm/src/sdk/orm-schema.ts 55.55% 87.5% 33.33% 55.55% 71-92, 106-127
packages/dali-orm/src/sdk/table.ts 92.85% 100% 83.33% 91.66% 97
Generated in workflow #27 for commit e9c7a8a by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant