synquill_gen library
Code generator for synquill package.
This library provides builders for generating database tables, DAOs, repositories, and other synced storage code.
Classes
- AdapterInfo
- Information about an adapter that can be applied to models
- AggregateBuilder
- Builder that scans all annotated models and generates the main synced_storage.generated.dart file with imports and part directives and all modular generated files
- BuilderUtils
- Utility functions shared across builder files
- DaoGenerator
- Generates DAO classes for Drift database operations
- DatabaseGenerator
- Generates the main SynquillDatabase class
- FieldInfo
- Information about a field in a model
- FieldValidator
- Validates that models meet the requirements for code generation
- FileAggregator
- Generates the complete synced_storage.generated.dart file content
- ForeignKeyInfo
- Helper class for foreign key information
- ModelAnalyzer
- Analyzes Dart source files to extract model information
- ModelExtensionGenerator
- Generates model extension methods for loading related objects
- ModelInfo
- Information about a model with @SynquillDataRepository annotation
- ModelInfoRegistryGenerator
- Generates model info registry code for cascade delete and foreign key
- RelationInfo
- Information about a class-level relationship defined in @SynquillRepository
- RepositoryGenerator
- Generates concrete repository implementations that extend SynquillRepositoryBase
- TableGenerator
- Generates Drift table classes from model information
Enums
- RelationType
- Type of relation
Functions
-
aggregateBuilder(
BuilderOptions options) → Builder - Builder for generating the aggregate synced_storage.generated.dart file
-
proxyBuilder(
dynamic _) → Builder - Creates a no-op builder that does nothing during the build process.