Commit Graph

459 Commits

Author SHA1 Message Date
Simon Binder ac627b1a10
Fix wrapping code with collection literals (#2787) 2023-12-14 00:00:39 +01:00
Simon Binder 829f45126c
Don't run discovery prematurely 2023-12-11 23:51:51 +01:00
Simon Binder 417d1f59d9 Fix generating variables with custom types 2023-12-10 14:23:19 +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 434982ac85
Make schema classes public (#2749) 2023-11-27 22:48:37 +01:00
Simon Binder 08241bfdd2
Merge branch 'more-plurals' into develop 2023-11-22 13:11:37 +01:00
Simon Binder 28c3c444e7
Re-run builders, add changelog entry 2023-11-22 13:09:09 +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 581708a328
Merge branch 'simolus3:develop' into codespace-glowing-space-palm-tree-9vwjv7wx993p57x 2023-11-16 21:18:35 -05:00
Simon Binder 220c7125a3
Update to lints 3.0.0 2023-11-16 21:25:21 +01:00
Simon Binder a9379a85b1
Validate schema in DevTools extension 2023-11-11 21:13:50 +01:00
Simon Binder e79124e5af
Fix order of arguments when reading custom types 2023-11-09 19:03:32 +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 ca84c194bd
Add shared analyzer option (closes #2688) 2023-10-23 18:35:29 +02:00
Abass Sesay 2098e76dd5 Pending changes exported from your codespace 2023-10-22 20:48:29 +00:00
Simon Binder 7f0488056c
Add more tests for custom types 2023-10-07 21:52:48 +02:00
Simon Binder 207847b02c
Support custom types in postgres backend 2023-10-07 18:08:18 +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 f8ba56c8e2
Gracefully handle invalid views list of annotation
Fixes #2636
2023-09-25 15:29:09 +02:00
ValentinVignal d001ad533f
revamp: Rename actualTableNameStatic into $name 2023-09-21 11:36:10 +08:00
ValentinVignal 8161d96323
feat: Add getter actualTableNameStatic 2023-09-20 21:42:23 +08: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
Simon Binder 2f732202b0
Show correct annotation name in tables error 2023-09-19 20:32:30 +02:00
Joshua Matthews 73e417d451
Adding comment explaining name reservation during codegen 2023-09-19 09:54:52 -04:00
Josh Matthews 0af636edd0
Fixing typo in drift_dev/lib/src/writer/writer.dart
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2023-09-19 09:53:27 -04:00
Joshua Matthews 10e0336310
Moving name reservation into Scope 2023-09-18 11:46:32 -04:00
Joshua Matthews ed1cd9f4e9
Preventing naming conflicts between table columns and existing class fields 2023-09-18 10:20:45 -04:00
Simon Binder 909c01bc5d
Add await before return in restoreOrResolve 2023-09-16 13:26:43 +02:00
Simon Binder 1958dd5cae Add tests for Dart index 2023-09-14 18:21:14 +02:00
Simon Binder 78b520f55d Generate code for Dart-defined index 2023-09-14 17:57:57 +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
Simon Binder 043d41ee73
Remove docs references to connect constructor 2023-08-31 10:57:54 +02:00
Nikita Dauhashei 9575612840
fix code generation for `enum` with generic 2023-08-26 20:18:03 +02:00
Simon Binder 895ff52761 Add API for finegrained control for steps by steps 2023-08-19 22:39:38 +02:00
Simon Binder fe242e5a17 Support `timediff` and `octet_length` 2023-08-17 17:30:45 +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
Simon Binder 7f6e22b892
Avoid using `findLibraryByName` 2023-08-12 23:28:47 +02:00