Skip to content

Dev#20

Merged
Sauvikn98 merged 5 commits intomainfrom
dev
Apr 16, 2026
Merged

Dev#20
Sauvikn98 merged 5 commits intomainfrom
dev

Conversation

@Sauvikn98
Copy link
Copy Markdown
Contributor

No description provided.

Sauvikn98 and others added 5 commits April 17, 2026 00:07
- Implement DynamoDBAdapter for AWS DynamoDB support
- Implement SQLServerAdapter for Microsoft SQL Server support
- Implement RedisAdapter for Redis cache support
- Export new adapters in generator index
- Add new database types to CLI (-d dynamodb, -d sqlserver, -d redis)
- Add database types to DATABASE_TYPES schema definition
- Add new dependencies: tedious, ioredis

New database support: 3 additional adapters for comprehensive coverage
feat: Add DynamoDB, SQL Server, and Redis adapters
- Add ColumnDependencyGraph for field dependency tracking
- Implement topological sorting for evaluation order
- Add ConstraintEngine for constraint validation
- Support for minColumn/maxColumn/gtColumn/ltColumn constraints
- Cycle detection and auto-break for circular dependencies
- Tests for temporal, numeric, and pricing constraints

Cross-column constraints supported:
- created_at <= updated_at
- start_date <= end_date
- discount_price < original_price
- quantity_available <= total_quantity

Refs: #9
- Import ConstraintEngine and ColumnDependencyGraph into BaseAdapter
- Refactor sortFieldsByDependency() to use ColumnDependencyGraph
- Remove duplicate topological sort implementation
- Now uses cycle-safe sorting from ConstraintEngine

This eliminates code duplication between BaseAdapter and ConstraintEngine.
@Sauvikn98 Sauvikn98 merged commit 5b98ad7 into main Apr 16, 2026
4 checks passed
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