Skip to content

v0.10.0

Compare
Choose a tag to compare
@schultek schultek released this 23 Jan 10:02
· 64 commits to main since this release
  • [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.