sonicdb_generator 0.1.0
sonicdb_generator: ^0.1.0 copied to clipboard
Code generator for SonicDb.
SonicDB Generator #
SonicDB Generator is the core Dart library extracted from the original flutter_sonicdb project.
It contains all Dart-dependent logic for SonicDB, while Flutter-specific integrations remain in flutter_sonicdb.
✨ Overview #
- Core functionality: Provides the database generation, schema handling, and query utilities that power SonicDB.
- Flutter separation: Anything related to Flutter widgets, UI bindings, or platform channels is kept in
flutter_sonicdb. - Pure Dart: Designed to run in any Dart environment (CLI, server, or cross-platform apps) without Flutter dependencies.
📦 Installation #
Add sonicdb_generator to your pubspec.yaml:
dependencies:
sonicdb_generator: ^0.1.0
Then run
dart pub get
🔗 Relationship to flutter_sonicdb #
sonicdb_generator: Pure Dart core library (schema, queries, database logic).flutter_sonicdb: Flutter wrapper that integrates SonicDB with Flutter apps (platform support).
This split ensures clean separation of concerns:
- Use
sonicdb_generatorfor backend logic, CLI tools, or server-side Dart. - Use
flutter_sonicdbwhen building Flutter apps that need SonicDB integration.
🛠 Development #
Clone the repo and run tests:
git clone https://github.com/your-repo/sonicdb_generator.git
cd sonicdb_generator
dart test
📄 License #
This project is licensed under the MIT License.
🤝 Contributing Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a pull request