GRDB.swift v2.2.0 Release Notes

  • ๐Ÿš€ Released October 31, 2017 • diff

    ๐Ÿ†• New

    • Database.viewExists(_:) returns whether a view exists in the database.
    • Database.triggerExists(_:) returns whether a trigger exists in the database.

    ๐Ÿ›  Fixed

    • DROP VIEW statements would not drop views (#267)
    • GRDB used to incorrectly send incomplete transaction notifications to transaction observers in the case of empty deferred transactions. This is no longer the case. Since empty deferred transactions have SQLite consider that no transaction started at all, they are no longer notified to transaction observers:

      -- Nothing happens, and thus no notification is sent
      BEGIN TRANSACTION
      COMMIT
      

      Those empty deferred transactions still count for the afterNextTransactionCommit database method, and the .nextTransaction observation extent.