Commit Graph

2443 Commits

Author SHA1 Message Date
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
Simon Binder 7d56497c18
Some plugin fixes 2022-01-24 17:25:24 +01:00
Simon Binder 6d89a7711b
Recommend using isolates in docs 2022-01-24 13:26:46 +01:00
Simon Binder d4e4bd1fbd
Fix type in DatabaseConnection.delayed docs
Closes #1649
2022-01-24 11:42:14 +01:00
Daniel Brauner 2035bf0af9 Fix resultset name bug 2022-01-23 18:44:33 +01:00
Simon Binder a16b7d3d3f
Remove outdated warning about queries in migration 2022-01-23 17:56:19 +01:00
Daniel Brauner 7129468928 Fix not resolved columns bug 2022-01-23 17:53:16 +01:00
Daniel Brauner a9fd12e565 Fixed 0 workaround 2022-01-23 17:08:32 +01:00
Simon Binder ab3db154e3
Upgrade built_site and docsy 2022-01-22 21:06:26 +01:00
Daniel Brauner e50ce8a8f7 Add linter for double nested queries and bug fixes 2022-01-20 20:21:06 +01:00
Daniel Brauner b5acbbf374 Bug fixes and support for dart placeholder 2022-01-20 12:08:39 +01:00
Simon Binder 2a347b2f40
Analyze views before other entities 2022-01-19 20:54:02 +01:00