sonicdb_generator 0.1.0 copy "sonicdb_generator: ^0.1.0" to clipboard
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_generator for backend logic, CLI tools, or server-side Dart.
  • Use flutter_sonicdb when 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
0
likes
85
points
115
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for SonicDb.

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, built_collection, code_builder, dart_style, meta, source_gen

More

Packages that depend on sonicdb_generator