Commit Graph

2354 Commits

Author SHA1 Message Date
Simon Binder 7073b3f04d
Maybe this yaml works 2022-02-14 23:02:21 +01:00
Simon Binder d1d7900cd8
Fix docs build script 2022-02-14 22:52:37 +01:00
Simon Binder de6a083c69
Fix typo in routeWithPoints example 2022-02-14 22:17:03 +01:00
Simon Binder 101db403c6
Merge pull request #1682 from westito/type-converter-workaround
TypeConverter not existent type argument class workaround
2022-02-14 22:15:57 +01:00
Simon Binder 48041512cb
Use sqlparser for drift snippets 2022-02-14 22:13:00 +01:00
Simon Binder 79d88cee6d
Merge pull request #1680 from westito/view_dsl_parse_fix
Add error check for ViewDSL as() declaration
2022-02-14 20:00:42 +01:00
westito d6692b13c2 Fix dynamic type check 2022-02-14 19:59:46 +01:00
westito 062b00d635 TypeConverter not existent type argument class workaround
(cherry picked from commit fe193e037bc51dc34d65507c8df6fba66759d54e)
2022-02-14 19:29:24 +01:00
westito 3872f14d2f Fix error message in parent class parse 2022-02-14 14:24:22 +01:00
westito bfc4921809 Allow dynamic as type parameter 2022-02-14 14:20:21 +01:00
westito affac25a77 Add view dsl as() expression parse error 2022-02-14 10:15:31 +01:00
westito 46ca0462bf Add type checks to parent class option 2022-02-14 10:03:46 +01:00
Simon Binder 99172c1216
Extract snippets for documentation
This makes it easier to test the validity of snippets
2022-02-13 16:55:57 +01:00
westito 4c2e74d5e0 Add generics to parent class option 2022-02-13 08:13:42 +01:00
westito afb5e8157c Add custom parent class option to generated data classes 2022-02-12 19:36:54 +01:00
Simon Binder 5e06f8dfa0
Merge pull request #1675 from saliouseck2009/patch-1
change name of the update method to avoid confusion
2022-02-12 00:03:36 +01:00
Simon Binder 1bfc410788
Docs: Suggest editing state from `develop` 2022-02-11 23:13:48 +01:00
ckroot b9070ef6a2
change name of the update method
The name of the method update in line 140 Cause exceptions for the methods `moveImportantTasksIntoCategory` and `update` method itself .
The problem is when these two methods try to call the native update method on `package:drift/src/runtime/api/runtime_api.dart` the program use the update method define in this page and trigger exceptions . It takes me lots of time .
2022-02-11 13:04:02 +00:00
Simon Binder c58c93c348
Prepare changelogs for 1.4 release 2022-02-09 16:47:22 +01:00
Simon Binder fca9db2052
Back to `dartdoc` due to missing options 2022-02-09 16:43:39 +01:00
Simon Binder 51f61a884f
Suggest using transactions in migrations 2022-02-09 16:24:07 +01:00
Simon Binder 661227c4c3
Prepare release 2022-02-09 16:23:43 +01:00
Simon Binder 2486e66e05
Fix docs build, retire master branch 2022-02-09 16:08:08 +01:00
Simon Binder 7055486c22
Merge pull request #1674 from MathieuPierfitte/patch-1
Improve migration guidelines
2022-02-09 15:44:57 +01:00
Mathieu Pierfitte b829e70507
Improve migration guidelines 2022-02-09 14:15:01 +01:00
Mathieu Pierfitte 6113bb3dc8
Improve migration guidelines 2022-02-09 14:13:45 +01:00
Mathieu Pierfitte 1ced978f86
Improve migration guidelines
The migration docs using `if (from == 1)` mislead me to think skipping version would still run intermediate migrations. However, if a user goes straight from v1 to v3, the migration process won't be 1 -> 2 + 2 -> 3, but 1 -> 3 directly, thus the code in `if (from == 2)` will never run, skipping a necessary migration.

I think the proposed change might prevent others from doing the same mistake as I did.
2022-02-09 12:13:37 +01:00
Simon Binder d0ff3b8baf
Merge pull request #1673 from prestoaghitato/develop
Chance error message
2022-02-08 21:22:06 +01:00
Marcel Ruland 3001fc065e
Chance error message 2022-02-08 21:06:22 +01:00
Simon Binder 33e3610fea
Fix analysis warnings added in Dart 2.16 2022-02-08 20:59:59 +01:00
Simon Binder df89513130
Document list subqueries, add test 2022-02-05 20:01:58 +01:00
Simon Binder a102323857
Give proper credits for `storage_inspector` :) 2022-02-02 21:04:03 +01:00
Simon Binder 64fde620f4
Update storage_inspector in community tools 2022-02-02 17:19:59 +01:00
Simon Binder 2ef2d660fc
Mention that batches are using transactions more 2022-02-02 10:12:25 +01:00
Simon Binder a3b56f8c98
Merge pull request #1662 from bryanoltman/fix-typo
Fix minor typo in entities.dart
2022-02-02 08:51:07 +01:00
Bryan Oltman 1ebdb0484e Fix minor typo in entities.dart 2022-02-01 18:37:29 -05:00
Simon Binder 36815c0b88
Merge pull request #1638 from LeFrosch/develop
Support for nested queries like (#1634)
2022-01-31 13:21:24 +01:00
Simon Binder b442a82f93
Move nested query containers into model directory 2022-01-31 12:58:36 +01:00
Simon Binder 1d1d0c783a
Fix CI test failures 2022-01-29 21:50:33 +01:00
Simon Binder 3d0a29fe77
Remove uncessary space 2022-01-28 22:04:24 +01:00
Simon Binder 6b6cd30a0c
Move nested query analysis to drift_dev 2022-01-28 21:55:03 +01:00
Simon Binder fe0b976b92
Fix invalid use of alias in writer test 2022-01-26 22:12:32 +01:00
Simon Binder 45af68851d
More lints for trigger bodies (#1656) 2022-01-26 22:03:40 +01:00
Simon Binder 3f165c2df7
Update community tools 2022-01-26 15:42:49 +01:00
Simon Binder 8c6302ad28
Release sqlparser 0.19.2 2022-01-25 14:51:47 +01:00
Michael Thomsen cdde1e57f3
Update index.md 2022-01-25 14:38:30 +01:00
Simon Binder 528b5762a6
Improve docs on `DoUpdate.target`. 2022-01-25 13:39:24 +01:00
Simon Binder 130517473b
Accept any type name for strict drift tables 2022-01-25 13:21:40 +01:00
Daniel Brauner d7c4945d72 Fixed analyze errors 2022-01-24 18:42:47 +01:00
Simon Binder aa38ab42f2
More lenient `strict` column type handling 2022-01-24 17:49:10 +01:00