Commit Graph

156 Commits

Author SHA1 Message Date
Simon Binder 49f3f64bcc
Fix view mapping generation (#1855) 2022-05-24 18:41:48 +02:00
Jishnu Mohan dc4e542f26
Support analyzer 4.x.x (#1841) 2022-05-18 12:39:46 +02:00
Simon Binder 6ff4ce976a
Avoid duplicate code in view definition 2022-05-17 21:55:20 +02:00
Simon Binder 4d3d794f15
Alias Dart view columns and tables 2022-05-17 21:47:10 +02:00
westito 2cfd2b41a3 Fix test (Dart 2.17) 2022-05-12 22:02:58 +02:00
westito ff4bc9be18 Fix drift_dev lint issue 2022-05-12 21:48:51 +02:00
westito 7330cf5d58 Add BigInt support to executors 2022-05-12 17:57:56 +02:00
westito 2b4bcc9864 Add BigInt support 2022-05-11 18:51:45 +02:00
Simon Binder 5e3de2fb7c
Remove lint around binary expr types 2022-05-10 20:46:30 +02:00
Simon Binder 184353a7aa
Release drift 1.6.0 2022-05-04 21:27:58 +02:00
North101 5bf9b2a3aa
Fix not null when using JsonTypeConverter (#1820)
* Fix not null when using JsonTypeConverter

* Run dart format on writer

Co-authored-by: Alexander Wilde <alexander.wilde87@gmail.com>
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2022-04-25 16:21:01 +02:00
Simon Binder 80c8c86031
Support drift-defined views schema tools (#1813) 2022-04-23 23:31:04 +02:00
Simon Binder d0694f9d65
Consistently format goldens in writer test 2022-04-23 20:09:54 +02:00
Simon Binder 8479602023
Pick valid Dart names for views (#1814) 2022-04-23 16:06:11 +02:00
Simon Binder 5f6beb76ca
Support json type converters (#1811) 2022-04-22 23:38:41 +02:00
Simon Binder 2473cea469
Add `check()` to the Dart column builder (#1594) 2022-04-18 20:09:02 +02:00
Simon Binder 70e1d040ab
Avoid overriding `uniqueKey` if that's not needed 2022-04-08 21:21:00 +02:00
Daniel Brauner 3c75fbee9d New test cases 2022-04-06 22:07:28 +02:00
Daniel Brauner 5380a18450 Minor bug fixes 2022-04-06 20:14:13 +02:00
Simon Binder 62a95f6bd4
Write Dart refences into schema files 2022-04-04 22:32:07 +02:00
Simon Binder a721e896d3
Add warnings for `customConstraint` misuse 2022-04-04 21:13:07 +02:00
Simon Binder 6047ec912f
Add changelog entry, expand docs a bit 2022-04-03 12:34:21 +02:00
Simon Binder 4e508b62ab
Test parsing unique keys 2022-04-03 12:28:12 +02:00
westito ff1912fc07 Merge remote-tracking branch 'simolus3/develop' into unique-constraint
# Conflicts:
#	drift/lib/src/ffi/database.dart
2022-04-02 20:13:44 +02:00
westito c584b5ccfd Fix failed analyze and test codes 2022-04-02 20:12:57 +02:00
westito 4713dd1a68 Add forgotten code change to table writer 2022-04-02 20:10:48 +02:00
Simon Binder 8e3259c971
Ignore all lints in generated code 2022-03-30 09:59:41 +02:00
westito 13d1ae0304 Make uniqueKey handle multiple keys 2022-03-28 16:29:01 +02:00
westito 27192f11c4
Fix null aware type converter data class field suffix (#1775) 2022-03-28 00:05:15 +02:00
westito 5d4c5dea70 Add uniqueKey to table definition 2022-03-22 17:00:27 +01:00
westito 51d2328998 Add unique() to column builder 2022-03-22 15:21:37 +01:00
Tomaž Marhat c0bd703122
fix: wrap element name inside ReCase (#1762) 2022-03-20 11:36:06 +01:00
Simon Binder 231c270fb1
Prepare 1.5.2 release of `drift_dev` 2022-03-15 19:41:45 +01:00
Simon Binder 5a2b6a36cc
Fix crash when reading type converters (#1757) 2022-03-15 16:51:30 +01:00
Simon Binder 35d5ff35c8
Prepare minor `drift_dev` release 2022-03-14 21:27:36 +01:00
Simon Binder a60a795c66
Auto-migrate usages of `moor_flutter` 2022-03-14 21:04:04 +01:00
Simon Binder c6edcdf3e8
Prepare drift 1.5.0 release 2022-03-13 15:54:45 +01:00
Simon Binder da212944ff
Replace old website and repository links 2022-03-13 15:52:15 +01:00
westito 05abe4de4c
Add cascaded expression support to DSL view parser (#1751)
* Add cascaded expression support to DSL view parser

* Fix view sample query
2022-03-13 00:47:02 +01:00
Simon Binder b25921a362
Write column getter into schema file (#1739) 2022-03-09 23:02:52 +01:00
Simon Binder 56f048b42f
Add test for self-references in Dart tables 2022-03-08 09:54:50 +01:00
Simon Binder 61dc1f17b8
Name schema exports automatically (#1721) 2022-03-02 17:25:30 +01:00
Simon Binder db1a4e2827
Fix `validateDatabaseSchema` 2022-03-01 20:41:00 +01:00
Simon Binder cb46e2c07e
API to validate schema at runtime (#1718) 2022-03-01 18:10:19 +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 6bb870458f
Analysis for sqlite 3.38 2022-02-23 22:06:42 +01:00
Simon Binder 6184892217
Add more docs, changelog 2022-02-18 15:09:51 +01:00