Commit Graph

2433 Commits

Author SHA1 Message Date
Simon Binder 35efc68e42
Web: Re-run setup whenever database is re-opened 2022-03-03 14:18:44 +01:00
Simon Binder 61dc1f17b8
Name schema exports automatically (#1721) 2022-03-02 17:25:30 +01:00
Simon Binder 9c80fb047b
Fix nullability propagation for type analysis 2022-03-02 16:06:30 +01:00
Simon Binder a463476c44
docs: Fix generating build script 2022-03-01 22:08:40 +01:00
Simon Binder db954b08cd
docs: Use highlight files in more places 2022-03-01 21:37:38 +01:00
Simon Binder 137a7b00a0
Merge branch 'documentation-snippets' into develop 2022-03-01 20:43:20 +01:00
Simon Binder db1a4e2827
Fix `validateDatabaseSchema` 2022-03-01 20:41:00 +01:00
Simon Binder 7e798572a0
Fix zoned executors messing with other databases 2022-03-01 20:40:10 +01:00
Simon Binder cb46e2c07e
API to validate schema at runtime (#1718) 2022-03-01 18:10:19 +01:00
Simon Binder 4099b77a56
Delete unused tooling file 2022-02-28 13:18:36 +01:00
Simon Binder e38a6b9059
Add setup parameter for web databases 2022-02-27 19:56:54 +01:00
Simon Binder f4eec69810
Fix reading schema files 2022-02-26 22:28:04 +01:00
Simon Binder 9ec7465fca
Migrate rest of `drift_dev` to null safety 2022-02-26 22:20:17 +01:00
Simon Binder 93d328f056
Rename `moor` to `drift` in `sqlparser` 2022-02-26 21:38:28 +01:00
Simon Binder ce31515c07
Fix type issue for `LIST` queries 2022-02-25 21:25:06 +01:00
Simon Binder 4755d0d04e
Add docs on how to evaluate expressions 2022-02-25 12:45:00 +01:00
Simon Binder ba8d719f2c
Download correct sqlite3 sources 2022-02-23 22:12:34 +01:00
Simon Binder 6bb870458f
Analysis for sqlite 3.38 2022-02-23 22:06:42 +01:00
Simon Binder f5c9670729
Prepare 0.20.1 release of `sqlparser` 2022-02-21 20:50:50 +01:00
Simon Binder 536d510825
Update many-to-many example 2022-02-21 20:41:47 +01:00
Simon Binder 518fdce2e9
Add parentheses around conflict target (#1704) 2022-02-21 18:43:48 +01:00
Simon Binder 1854f8b522
Merge pull request #1678 from westito/custom_parent_class
Add custom parent class option to generated data classes
2022-02-18 15:30:44 +01:00
Simon Binder 6184892217
Add more docs, changelog 2022-02-18 15:09:51 +01:00
westito 9bcac38e98 Add tests for custom data class parent 2022-02-18 10:50:03 +01:00
westito e35a4028b5 Merge branch 'custom_parent_class' of github.com:westito/drift into custom_parent_class 2022-02-18 10:12:43 +01:00
westito e56260740d
Update drift_dev/lib/src/analyzer/data_class.dart
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2022-02-18 10:12:35 +01:00
westito d846655e1d Merge remote-tracking branch 'simolus3/develop' into custom_parent_class 2022-02-18 10:11:59 +01:00
Simon Binder 0869bdc620
Remove empty file 2022-02-17 16:28:34 +01:00
Simon Binder 83deb5bb4d
Include views in generated accessors 2022-02-17 16:23:02 +01:00
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