Commit Graph

271 Commits

Author SHA1 Message Date
Moshe Dicker 3bd837517c
Merge branch 'simolus3:develop' into develop 2024-04-11 15:42:05 -04:00
Simon Binder 37f120d287
Add setup param to schema verifier 2024-04-05 22:39:05 +02:00
Simon Binder 008dfaf798
Avoid superfluous import 2024-04-05 21:42:51 +02:00
Simon Binder d553a7f679
Use latest language version in test 2024-04-05 21:26:51 +02:00
ValentinVignal 113a693403
Merge remote-tracking branch 'upstream/develop' into drift-dev/name-the-companion-class
# Conflicts:
#	drift_dev/test/writer/data_class_writer_test.dart
2024-03-07 09:54:05 +08:00
ValentinVignal 6b1f54d647
test: Add a test with a custom companion name and a default data name 2024-03-07 09:52:57 +08:00
ValentinVignal d0ff1f29d6
test: Add a test with overridden companion classes 2024-03-06 21:00:26 +08:00
ValentinVignal be70907e81
test: Add tests 2024-03-06 20:43:14 +08:00
Simon Binder 863dbb61a9
Avoid picking wrong import alias
Closes #2904
2024-02-29 18:08:51 +01:00
ValentinVignal 059108fff6 test: Update the tests 2024-01-22 14:11:39 +01:00
Simon Binder 261c151fbf
Keep import aliases in generated code 2024-01-18 21:26:39 +01:00
Simon Binder 5e51fbc1fc
Fix other view test 2023-12-14 00:11:24 +01:00
Simon Binder ac627b1a10
Fix wrapping code with collection literals (#2787) 2023-12-14 00:00:39 +01:00
Simon Binder 27b459d3c6
Fix attached index not resolving 2023-12-04 11:02:40 +01:00
Simon Binder 5740eb8721
Fix generated code with $ in identifier names 2023-11-30 22:26:40 +01:00
Simon Binder 08241bfdd2
Merge branch 'more-plurals' into develop 2023-11-22 13:11:37 +01:00
Abass Sesay 3fb9e50f75 removed duplicate test case 2023-11-22 03:00:07 +00:00
Heinrich 340462e379 Apply dart formatting 2023-11-21 17:08:12 +01:00
Heinrich e8a4c09027 unused_import 2023-11-21 17:08:12 +01:00
Heinrich 0029c44232 Apply dart formatting 2023-11-21 17:08:12 +01:00
Heinrich 6bb34e0db1 Ready for merge
Removed residual code and comments.
Commented and explained staticSource
Removed modularBuild and tested test
2023-11-21 17:08:12 +01:00
Heinrich 7c2c17d5e4 assumeCorrectReference resovels #2715
assumeCorrectReference option added
assume the correct reference of the dart code in views, when resolver fails.
2023-11-21 17:08:12 +01:00
Simon Binder 39018d381c
Don't generate const constr for non-const parent
Closes #2735
2023-11-19 14:33:55 +01:00
Abass Sesay f249494269 added test cases for inflections 2023-11-16 22:33:52 -05:00
Simon Binder 0b537b50c1
Reformat 2023-11-16 21:30:41 +01:00
Simon Binder 220c7125a3
Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
Simon Binder d770c16d8d
Fix warnings about missing imports 2023-11-08 22:11:28 +01:00
Simon Binder 0973aa982c
Don't use invalid nullable converter fields 2023-10-25 22:09:39 +02:00
Simon Binder 7f0488056c
Add more tests for custom types 2023-10-07 21:52:48 +02:00
Simon Binder 62bda167bd
Start supporting custom column types in analyzer 2023-10-07 17:16:12 +02:00
Simon Binder eb03ac5ff0
Fix converters on `int64` breaking inference 2023-10-03 20:54:28 +02:00
Simon Binder 4eb44f9623
Fix indices not being created for imported tables 2023-09-27 22:06:49 +02:00
Simon Binder 2edd75acbb
Fix defining indices on expressions (#2643) 2023-09-27 14:46:50 +02:00
Simon Binder db6ee5dda6
Update `build_resolvers` usage in tests 2023-09-26 15:38:52 +02:00
Simon Binder f8ba56c8e2
Gracefully handle invalid views list of annotation
Fixes #2636
2023-09-25 15:29:09 +02:00
Simon Binder 3b81babb53
Merge pull request #2617 from jmatth/fix-migration-conflicts
Preventing getter name conflicts in step-by-step migrations
2023-09-19 22:59:06 +02:00
Joshua Matthews 3dd2ff4a6f
Removing debug print 2023-09-19 14:38:35 -04:00
Simon Binder 2f732202b0
Show correct annotation name in tables error 2023-09-19 20:32:30 +02:00
Joshua Matthews f69a0db911
Adding unit tests for SchemaVersionWriter 2023-09-19 11:12:59 -04:00
Simon Binder 8300782662 Fix cli test 2023-09-14 18:32:43 +02:00
Simon Binder 1958dd5cae Add tests for Dart index 2023-09-14 18:21:14 +02:00
Simon Binder f81e9d8c4b Write new index information into schema file 2023-09-14 17:31:18 +02:00
Simon Binder 93b9cc512d Analyze index annotations for tables 2023-09-14 15:37:21 +02:00
Simon Binder 0fd19ab576
Fix drift_dev tests 2023-09-10 22:46:50 +02:00
Simon Binder 79dda8668b
Resolve imports across exports 2023-09-03 22:34:40 +02:00
Nikita Dauhashei f408991ee7
fix test 2023-08-26 20:54:38 +02:00
Nikita Dauhashei 9575612840
fix code generation for `enum` with generic 2023-08-26 20:18:03 +02:00
Simon Binder d84767b93d Support references to builtin tables (#2567) 2023-08-17 00:15:36 +02:00
Simon Binder 9c21e17d91
Add import references to generated insertable 2023-08-13 18:59:31 +02:00
Simon Binder f8635469d4
Emit direct imports in preprocess step 2023-08-13 11:10:31 +02:00