Say goodbye to manual PocketBase model generation and let Pocketbase Plus do the heavy lifting! 😎
install as dev dependency with:
dart pub add 'dev:pocketbase_plus:{"git":"https://github.com/seifalmotaz/pocketbase_plus"}'
or
dart pub add dev:pocketbase_plus
- Create a
pocketbase.yaml
in your project or directly inside yourpubspec.yaml
. - Fill it with your secret sauce like this:
pocketbase:
hosting:
domain: 'https://your-pocketbase-domain.com'
email: '[email protected]'
password: 'your-password'
output_directory: './lib/models' # Optional, default is './lib/models'
- Run the magic:
dart run pocketbase_plus:main
You can specify the configuration file path (e.g.: your pubspec.yaml) using the --config or -c option:
dart run pocketbase_plus:main --config pubspec.yaml
Quick help: (-h or --help)
dart run pocketbase_plus:main --help
And boom 💥! Your models are ready to roll!
Happy coding! ✨
- Support for additional file types.
- Auto-generate CRUD functions directly within the models.
- Implement static
list
functions for fetching multiple records from the model.
More awesome features coming soon... Stay tuned!