stormberry 0.11.0 copy "stormberry: ^0.11.0" to clipboard
stormberry: ^0.11.0 copied to clipboard

Access your postgres database effortlessly from dart code.

0.11.0 #

  • Fixed wrong column types in update query.
  • Improved handling of auto-increment ids.
  • Added ModelMeta annotation to customize generated entity classes.

0.10.0 #

  • [BREAKING] Switched to generating part files for each model.
    • Migrate by adding part <myfile>.schema.dart on top of each model file.
  • [BREAKING] Changed how Views are defined.
    • The @Model() annotation now only defines the names of existing views as Symbols: @Model(views: [#Full, #Reduced, #Other]).
    • Field modifications are done by annotating the specific field with either @HiddenIn(#MyView), @ViewedIn(#MyView, as: #OtherView) and @TransformedIn(#MyView, by: MyTransformer()).
  • The CLI supports setting connection values via command args or prompts missing values.
  • Views are now virtual (queries) and not written to the database. This enables more flexibility for queries and fixes some migration issues.
  • All query inputs are now properly parameterized to prevent sql injections.
  • [BREAKING] The on conflict clause for inserts is removed. Inserts now fail when a given key already exists.
  • Added proper testing.

0.9.2 #

  • Fixed bug with email encoding.

0.9.1 #

  • Fixed bug with one-to-many relations.
  • Added DB_SOCKET environment connection variable.

0.9.0 #

  • Added support for enum serialization in models (by @TimWhiting)
  • Api and documentation fixes

0.8.0 #

  • Added support for serialization through custom annotations
  • Improved migration cli and added support for manual migration output to .sql files
  • Fixed bug with default views and value decoding

0.7.0 #

  • Added @AutoIncrement() annotation for auto incrementing values
  • Added support for multiple schemas when using the migration tool
  • Fixed escaping of strings

0.6.4 #

  • Fix data encoding

0.6.3 #

  • Move QueryParams to public library

0.6.2 #

  • Allow models to inherit fields from other classes

0.6.1 #

  • Fix deep insert bug

0.6.0 #

  • Update dependencies
  • Cleanup lints

0.5.0 #

  • Internal rewrite (again)
  • Added documentation to README

0.4.0 #

  • Rewrote view system
  • Internal refactoring

0.3.0 #

  • Update dependencies

0.2.3 #

  • Fix encoding bug

0.2.2 #

  • Update tool: Read json schema location from build.yaml

0.2.1 #

  • Added delete actions

0.2.0 #

  • Refactor and cleanup, first published version
  • Added first README draft

0.1.1 #

  • Use joins only for many-to-many
  • Fix some generation bugs

0.1.0 #

  • Initial development release