datapod_generator 0.2.0 copy "datapod_generator: ^0.2.0" to clipboard
datapod_generator: ^0.2.0 copied to clipboard

Code generator for Datapod ORM.

datapod_generator #

The code generation engine for the Datapod ORM. This package provides the build_runner builders that transform your annotated classes into fully functional database implementations.

✨ Features #

  • Entity Generation: Generates managed entity implementations with lazy loading support.
  • Repository Generation: Implements repository interfaces based on method naming conventions.
  • Initializer Generation:
    • Discovers all entities, repositories, and plugins.
    • Generates DatapodInitializer.initialize() which supports both file-based and string-based (Flutter) configuration loading.
  • Plugin Discovery: Automatically detects local plugins annotated with @DatapodPluginDef.

📖 Usage #

Add this package to your dev_dependencies. The generator will automatically detect your entities and repositories.

# Generate the boilerplate (datapod_init.dart) and implementations
dart run build_runner build

This will generate a datapod_init.dart file in your lib folder, which you use to bootstrap the ORM.

For full documentation, see the root README.

0
likes
120
points
58
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for Datapod ORM.

Repository (GitHub)
View/report issues

Topics

#orm #database #codegen

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

analyzer, build, code_builder, datapod_api, datapod_engine, glob, path, source_gen, yaml

More

Packages that depend on datapod_generator