Skip to content

Releases: simolus3/drift

Drift 1.4.0

09 Feb 15:54
c58c93c
Compare
Choose a tag to compare

1.4.0

  • Most methods to compose statements are now available as an extension on tables. As an alternative to update(todos).replace(newEntry), you can now write todos.replaceOne(newEntry).
  • Deprecate the from(table) API introduced in 1.3.0. Having the methods on the table instances turned out to be even easier!
  • In drift files, you can now use LIST(SELECT ...) as a result column to get all results of the inner select as a List in the result set.

Drift 1.3.0

14 Jan 18:44
41472d6
Compare
Choose a tag to compare
  • Add the from(table) method to generated databases. It can be used to write common queries more concisely.
  • Make groupConcat nullable in the Dart API.
  • Throw an exception in a NativeDatabase when multiple statements are run in a single call. In previous versions, parts of the SQL string would otherwise be ignored.
  • Close the underlying database when a drift isolate is shut down.

drift_dev 1.2.1

10 Jan 15:38
6555523
Compare
Choose a tag to compare
  • Support the latest versions of analyzer and analyzer_plugin.

Drift 1.2.0

30 Dec 18:36
ddede9a
Compare
Choose a tag to compare

This minor release implements changes in the generated code necessary to support streams from views in the Dart API.

Additionally,

  • Reading blobs from the database is more lenient now.
  • watchSingle() and watchSingleOrNull() now throws an error with a stack trace when used on a query emitting multiple rows.
  • With sqlparser 0.19.1, group_concat was made nullable as evaluates to NULL for empty groups.

Drift 1.1.1

23 Dec 17:05
286612d
Compare
Choose a tag to compare

This patch release contains the following changes:

  • Rollback transactions when a commit fails.
  • Revert a change from 1.1.0 to stop serializing messages over isolates. Instead, please set the serialize parameter to false on the DriftIsolate methods.

The generator, released as drift_dev version 1.1.1 contains a fix related to custom row classes with generateInsertable: true.

Drift 1.1.0

11 Dec 13:24
c4e2600
Compare
Choose a tag to compare

This release consists of drift version 1.1.0, drift_dev version 1.1.0 and sqlparser version 0.19.0:

  • Add the references method to BuildColumn to reference a column declared in another Dart table.
  • Add the generateInsertable option to @UseRowClass. When enabled, the generator will emit an extension to use the row class as an Insertable.
  • Allow the generator to emit correct SQL code when using arrays with the new_sql_code_generation option in specific scenarios.
  • Add support for strict tables in .drift files.
  • Add the generatedAs method to declare generated columns for Dart tables.
  • Add OrderingTerm.random to fetch rows in a random order.
  • Improved support for pausing query stream subscriptions. Instead of buffering events, query streams will suspend fetching data if all listeners are paused.
  • Drift isolates no longer serialize messages into a primitive format. This will reduce the overhead of using isolates with Drift.
  • Initial support for STRICT tables defined in .drift files.
  • Support for generated columns for tables defined in .drift files.

Big thanks to everyone who contributed to this release!

sqlparser-0.18.1

02 Dec 12:19
877a349
Compare
Choose a tag to compare

This hotfix release fixes a bug when comparing AST nodes with a different amount of children (#1575). The broken comparison may have caused false-positives in migration tests.

Drift-dev 1.0.2

13 Oct 21:00
b574cb0
Compare
Choose a tag to compare

With this release, running moor_generator migrate will also rewrite usages of the moor plugin in an analysis_options.yaml file.

Drift 1.0.1, Moor 4.6.0

12 Oct 13:34
6b03003
Compare
Choose a tag to compare
  • Add DoUpdate.withExcluded to refer to the excluded row in an upsert clause.
  • Add optional where clause to DoUpdate constructors

Please note

With this release, moor has been renamed to drift. No immediate action is necessary, the moor package will continue to work until the next breaking release. The functionality of moor 4.6.0 is identical to drift 1.0.1.

An automatic migration tool can help you make the switch from moor to drift in minutes. See the documentation for all the details. Thanks!

Moor ffi 0.3.0

18 Dec 22:01
e983e4d
Compare
Choose a tag to compare

0.3.0

  • Better setup for compiling sqlite3 on Android
    • Compilation options to increase runtime performance, enable fts5 and json1
    • We no longer download sqlite sources on the first run, they now ship with the plugin