pocketbase_helpers_cli 0.11.1
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/-eand--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.yamlconfig file that fills in any missing flags (source,port,email,password,output). - renamed the
--schemaflag to--source(the-sshorthand 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.0ofpocketbase_helpersre-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
PocketBaseCollectionandPocketBaseFieldclasses 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.