pocketbase_helpers_cli 0.11.1 copy "pocketbase_helpers_cli: ^0.11.1" to clipboard
pocketbase_helpers_cli: ^0.11.1 copied to clipboard

A cli for pocketbase_helpers, can automatically generate models from a pocketbase schema json.

0.11.1 #

  • the CLI can now fetch collections directly from a PocketBase API running on localhost, by passing --port/-p, --email/-e and --password/-w (superuser login) instead of a schema file.
  • for safety, API mode always connects to http://localhost:<port>: specifying a hostname or URL is impossible.
  • added a pb_generate.yaml config file that fills in any missing flags (source, port, email, password, output).
  • renamed the --schema flag to --source (the -s shorthand is unchanged).

0.10.1 #

  • list fields (relation/file/select with maxSelect > 1) now get a default empty list (const []) instead of being required constructor parameters.
  • removed unused test data files.
  • bumped analyzer dependency to ^14.4.0.

0.10.0 #

  • removed pocketbase import declaration because version 0.11.0 of pocketbase_helpers re-exports it.

0.9.0 #

  • Changed behavior of the --with-from-map and --with-from-json flags to require a three part file name. This makes the part of directive dynamic instead of static.

0.8.0 #

  • Made parameters in the generated realtime helper builder named.
  • Added pocketbase instance optional unnamed parameter to the generated file apis

0.7.0 #

  • Added support for json fields.

0.6.0 #

  • Made number fields take type int if "onlyInt" is true.

0.5.0 #

  • Fixed a breaking bug where fromMap wouldnt generate as static.
  • Added realtime generator static method.

0.4.0 #

  • Changed internal implementation to use code_builder
  • Fixed edge cases and added more tests to catch edgecases
  • Added PocketBaseCollection and PocketBaseField classes to improve testability, readability and use of this package as a dependency.
  • Added collections static class to the generated library and also added collectionname static to each helper class.
  • Added static authentication methods to auth collection generated entity models.

0.3.0 #

  • Changed the generator to match the new [pocketbase_helpers] api.

0.2.0 #

  • Restructured files to follow standard package format
  • Removed the output dir field from the generator since it was not used internally anyway.
  • Added exaustive tests
  • Added GeoPoint
  • fixed various edgecases

0.1.0 #

  • Initial version.
1
likes
140
points
29
downloads

Documentation

API reference

Publisher

verified publishervanzwolsoftware.nl

Weekly Downloads

A cli for pocketbase_helpers, can automatically generate models from a pocketbase schema json.

Repository (GitHub)
View/report issues

Topics

#pocketbase #models

License

MIT (license)

Dependencies

args, change_case, code_builder, dart_style, path, pocketbase, yaml

More

Packages that depend on pocketbase_helpers_cli