Commit Graph

2606 Commits

Author SHA1 Message Date
Simon Binder 72fb1fa60c
Fix version constraint in drift_dev 2022-08-13 22:15:40 +02:00
Simon Binder bcd51b357c
Fix lint in drift_sqflite test 2022-08-13 22:12:18 +02:00
Simon Binder 1035fe9d1d
Bump version numbers 2022-08-13 22:11:20 +02:00
Simon Binder b66fb13407
Prepare drift 2.0 release 2022-08-13 21:55:22 +02:00
Simon Binder 83c7c1ab43
Remove deprecated options, re-run build 2022-08-13 15:14:09 +02:00
Simon Binder a4fe582f25
Collect documentation for 2.0 release 2022-08-13 14:18:17 +02:00
Simon Binder 721b894141
Remove unecessary call / typo (#1883) 2022-08-12 23:00:24 +02:00
Simon Binder b9a605ed25
Allow async mappings from SQL to row classes
When existing, custom row classes are used, drift now supports using a
(potentially asynchronous) static method to load them instead of just
a named constructor like before.
Tables are also changed to support the `map` method being async for
cases where that is needed. The same applies to custom queries which
may have to be async now.
2022-08-12 22:55:02 +02:00
Simon Binder 799db04daa
Merge pull request #1977 from scheglov/analyzer-4.5.0
Require analyzer 4.5.0, stop using deprecated APIs.
2022-08-10 13:51:06 +02:00
Simon Binder ffeb3ef045
Add foreign key example to migration test 2022-08-10 13:50:00 +02:00
Konstantin Shcheglov 23c8502c34 Require analyzer 4.5.0, stop using deprecated APIs. 2022-08-09 16:19:23 -07:00
Simon Binder 092a427a94
Prepare 1.7.1 drift_dev patch release 2022-08-09 23:17:59 +02:00
Simon Binder 2b5fdbc0b1
Upgrade to latest analyzer 2022-08-09 23:16:29 +02:00
Simon Binder 68df9c3197
Upgrade to new analysis plugin API 2022-08-09 22:46:30 +02:00
Simon Binder 1edeb4fe45
Merge pull request #1958 from simolus3/fix-toColumns-null-check
Remove null check when parameter is not nullable in dart
2022-08-08 22:25:19 +02:00
Simon Binder 4856ba4c5b
Skip complex datetime test on old versions 2022-08-08 22:22:58 +02:00
Simon Binder eea63cb5c9
Skip some broken datetime tests on the web 2022-08-08 13:59:37 +02:00
Simon Binder 5063afb8a4
Merge pull request #1959 from simolus3/fix-lint-warning
Fix lint warnings when strict type check enabled
2022-08-08 13:32:58 +02:00
westito 40554c8166 Merge remote-tracking branch 'simolus3/develop' into fix-lint-warning 2022-08-08 11:30:57 +02:00
westito e65c4d15d0 Regenerate database files 2022-08-08 11:30:47 +02:00
westito 5c05b4e375
Update drift_dev/lib/src/writer/database_writer.dart
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2022-08-08 11:27:03 +02:00
westito 940ecd2ec4 Merge remote-tracking branch 'simolus3/develop' into fix-toColumns-null-check 2022-08-08 11:18:49 +02:00
westito ea5cb2e85f Regenerate databases 2022-08-08 11:14:50 +02:00
westito 936656b6cc Add docker test 2022-08-08 10:26:51 +02:00
Simon Binder d5b8d5f1f6
Update docs license and home page 2022-08-07 17:13:59 +02:00
Simon Binder a735e91f30
Test to ensure text datetimes preserve millis 2022-08-07 13:35:27 +02:00
Simon Binder 50a65b236a
Upgrade to latest analyzer 2022-08-06 22:11:44 +02:00
Simon Binder 8cc85de5f7
Improve error message for schema difference 2022-08-06 21:35:05 +02:00
Simon Binder b6f6156407
Support datetime -> string serialization 2022-08-03 20:31:19 +02:00
westito 26333eafb5 Fix lint warnings when strict type check enabled 2022-08-01 12:15:42 +02:00
westito 4bb36488e1 Remove null check when parameter is not nullable in dart 2022-08-01 12:03:43 +02:00
Simon Binder b2cb0f6000
Forbid whereSamePrimaryKey for null values (#1956) 2022-07-31 23:26:00 +02:00
Simon Binder c69b34278b
Fix overly long line 2022-07-29 19:05:42 +02:00
Simon Binder cf95ed6f05
Re-generate migration tests in app example 2022-07-29 18:54:41 +02:00
Simon Binder 10eb6b9a9c
Fix test for collate expressions 2022-07-27 20:46:54 +02:00
Simon Binder bc61288bed
Support custom collations 2022-07-27 18:01:13 +02:00
Simon Binder a9026fef3a
Remove `DateTimeWeekday` 2022-07-26 19:25:59 +02:00
Simon Binder 0cb3527680
Schema tool: Store whether dates are text 2022-07-26 19:18:17 +02:00
Simon Binder 9158c31240
Respect db options in runtime schema validation 2022-07-26 18:33:09 +02:00
Simon Binder 77e7b99f2f
Fix equality for datetime expressions 2022-07-26 18:24:06 +02:00
Simon Binder 080ef7210c
Add `RETURNING` variants of update and delete 2022-07-25 22:27:57 +02:00
Simon Binder d79c7e07ba
Lints for probable text datetime misuses 2022-07-25 20:58:39 +02:00
Simon Binder 1ff7ddbd82
Document dates as text on website 2022-07-25 15:26:16 +02:00
Simon Binder 6c0e27b24c
SQL analysis for text datetimes 2022-07-24 19:19:18 +02:00
Simon Binder 68e6deb9c2
Run integration tests on date time expressions 2022-07-24 17:50:54 +02:00
Simon Binder 9eb37ba243
Support text datetimes in expression builder 2022-07-24 17:50:54 +02:00
Simon Binder 44e360e28d
Properly store text date time values 2022-07-24 17:50:54 +02:00
Simon Binder 592e2cdd5d
Add build option for dates as text 2022-07-24 17:50:48 +02:00
Simon Binder efb4c5f503
Fix deprecation warning 2022-07-23 23:20:07 +02:00
Simon Binder c1a2e1ec43
Remove test for the native database tracker
Ideally, finalizers added in the `sqlite3` package should replace this
functionality.  Currently, it seems like finalizers are not triggered by
hot restarts which is unfortunate, but we also can't test the feature
reliably since it now causes databases to be closed twice (once by
the test and once because sqlite3's finalizer runs).
2022-07-23 23:10:52 +02:00