How teslafly01/smartsqlt works
Main Components Architecture
a) Frontend Layer (WPF Application)
• User Interface Components (/SmartSQL/UserControl/)
• View Models (/SmartSQL/ViewModels/)
• Resources and Themes (/SmartSQL/Resources/)
b) Core Framework Layer (/SmartSQL/SmartSQL.Framework/)
• Database Exporters
• SQL Formatters
• Language Generators
• Physical Data Models
c) Documentation Utils Layer (/SmartSQL/SmartSQL.DocUtils/)
• Document Generators
• Templates Engine
• Export Formats
Component Relationships
[UI Layer] → [Core Framework] → [Doc Utils]
• ↓ ↓ ↓
[Database Connections] → [Data Models] → [Document Output]
Key Architectural Elements
Specific components:
a) Database Support
• Connections to supported databases (SQLServer, MySQL, Oracle, PostgreSQL, SQLite, DM)
• Database exporters for each type
b) Document Generation Pipeline
• Input: Database Schema
• Processing: Template Engine
• Output: Multiple formats (CHM, Excel, Word, PDF, HTML, XML, JSON, Markdown)
c) Core Features
• Management
• Quick Search
• Comment Management
• Code Generation
Detailed Component Breakdown
Frontend (WPF):
• Main Window
• Connect Management
• Group Management
• Document Export
• Tools
Core Framework:
• Database Exporters
• SQL Formatters
• Model Generators
• Data Models
Doc Utils:
• Template Engine
• Document Generators
• Export Formats
Data Flow
Following flows:
Integration Points
Highlight:
• Database Connectivity
• Template Engine Integration
• Document Format Converters
• Export Handlers
Key Technologies to Highlight:
• WPF/.NET 4.7.2
• SQL Database Connectors
• Document Generation Libraries
• Template Engine (Razor)
This architecture emphasizes the tool's primary purpose of database documentation while showing its extensibility for multiple database types and document formats.