Skip to content

v0.10.0

Latest

Choose a tag to compare

@LHolten LHolten released this 21 Sep 21:54
  • Added #[rename] attribute to rename any table or column to be different from
    the Rust struct or field.
  • Optimized migrations to never load all rows at once.
  • Fixed a bug where a custom primary key name was not used when decorrelating nested queries.
  • Fixed a migration bug with custom primary keys.
  • Fixed missing unraw on column and struct names (the r# prefix would previously be kept).

Breaking

  • Changed TransactionMigrate::migrate_optional to return MigratedOptional.

    • Migrated::map_fk_err is replaced by MigratedOptional::map_fk_err.
    • Schema generic is removed from Migrated type.
    • Changed generics on TransactionMigrate methods to the new table type.
  • Added TransactionScope to handle mutable table rows without a Drop impl.
    This means that the Mutable type will now automatically have a non lexical lifetime, which
    makes it easier to use.

    • The Transaction::mutable and Transaction::mutable_vec have moved to TransactionScope.
    • Mutable::into_table_row is renamed to Mutable::table_row and takes self by reference.