Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 14:03
· 15 commits to main since this release

New

  • custom("type") for columns of any type mizzle has no helper for: domains, composites,
    ranges, citext, extension types. Use decode= and encode= to convert values.
  • mizzle generate --custom --record-schema for changes you write by hand, such as
    renaming an enum value.
  • New docs pages: All features and
    Known gaps.

Changed

  • mizzle now manages tables, columns, indexes, constraints, enums, views, policies and
    roles. Functions, triggers, extensions, domains, partitions and grants are left alone:
    write them in a custom migration.
  • Range, geometry, citext, hstore, ltree, xml, money and text-search column types
    moved to custom("type").
  • A savepoint belongs to the task that opened it. Other tasks cannot use the transaction
    while it is open.
  • values(model) and set(model) run Pydantic serializers and keep nested defaults.

Removed

  • Database.listen() and notify(). Use asyncpg's add_listener on your own connection.
  • copy_into() and copy_from(). Use insert_many().

Fixed

  • Changing the type of a column that a generated column uses.
  • Filters on CTE, subquery and coalesce() columns now convert enum and custom values.
  • Exact Decimal values inside json and jsonb.
  • Clearer errors for bad database URLs, which never show the password.
  • Many smaller fixes in migrations, Studio and queries.