Commit Graph

687 Commits

Author SHA1 Message Date
Moshe Dicker 04c07a980a fix names 2024-03-29 17:31:26 -04:00
Moshe Dicker 83b04e7073 order typo 2024-03-29 11:44:56 -04:00
Moshe Dicker 7ed6ac5735 Hide some exports - Add manager to Database 2024-03-29 11:08:28 -04:00
Moshe Dicker 46953c3a73 Refactor ordering - Add better Docs 2024-03-29 10:44:59 -04:00
Moshe Dicker 1da0664c08 Initial Manager Commit 2024-03-29 02:20:58 -04:00
Simon Binder e1bdc6bde5 Fix missing commas between type arguments 2024-03-24 14:37:27 +01:00
ValentinVignal 304d3adafd
refactor: Make enforcedName nullable 2024-03-07 10:22:02 +08: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
Simon Binder 914763b47a
Document sql column name builder option 2024-03-06 20:56:03 +01:00
ValentinVignal d0ff1f29d6
test: Add a test with overridden companion classes 2024-03-06 21:00:26 +08:00
ValentinVignal d768ceeb1a
feat: Name companion class 2024-03-06 21:00:13 +08:00
ValentinVignal be70907e81
test: Add tests 2024-03-06 20:43:14 +08:00
ValentinVignal 707eb72b07
feat: Add option use_sql_column_name_as_json_key 2024-03-05 21:27:32 +08:00
Simon Binder 863dbb61a9
Avoid picking wrong import alias
Closes #2904
2024-02-29 18:08:51 +01:00
Simon Binder 417c2c1207
Prepare release 2024-02-24 23:17:54 +01:00
ValentinVignal 059108fff6 test: Update the tests 2024-01-22 14:11:39 +01:00
ValentinVignal b2054b947b fix: Fix error message for non nullable converter 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 38d603c1c6
Prepare release 2024-01-17 23:02:49 +01:00
Simon Binder f25eaf10f2
Support dialect-specific types 2024-01-10 23:29:27 +01:00
Simon Binder 615a1d7ad8 Use custom types for comparisons 2023-12-23 15:06:10 +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 08ceb939bc
Include `NULL` constraints in node->sql 2023-12-12 21:46:58 +01:00
Simon Binder b7f9c280c3
Prepare release 2023-12-11 23:55:37 +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 633cc52129
Prepare 2.14 release 2023-12-04 11:07:21 +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
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
Simon Binder 72476628ad
Add changelog entry for column list update syntax 2023-11-18 00:34:55 +01:00
Abass Sesay f249494269 added test cases for inflections 2023-11-16 22:33:52 -05: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 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 1daf21280a
Merge branch 'backport-custom-types-fix' into develop 2023-11-11 21:28:47 +01:00
Simon Binder fd260edaa3
Fix order of arguments when reading custom types 2023-11-11 21:23:53 +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 446832c341
Add query interceptor API 2023-11-07 23:42:59 +01:00
Simon Binder ddc864a7c2
Prepare drift_dev and sqlparser release 2023-10-29 19:32:23 +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 e72ef05d53
Prepare 2.13 release 2023-10-20 11:05:09 +02: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 3ecee4fb1f
Add wasm setup APIs with custom workers (#2638) 2023-09-27 23:05:44 +02:00
Simon Binder 4eb44f9623
Fix indices not being created for imported tables 2023-09-27 22:06:49 +02:00
Simon Binder b5bc646187
Prepare patch release 2023-09-27 14:48:03 +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 5f8ea09030
Fix sqlparser dependency in drift_dev 2023-09-24 20:37:49 +02:00
Simon Binder 9f05897944
Prepare release 2023-09-24 16:17:07 +02:00
ValentinVignal 22b0a8fe36
doc: Update changelog 2023-09-21 11:36:53 +08:00
ValentinVignal d001ad533f
revamp: Rename actualTableNameStatic into $name 2023-09-21 11:36:10 +08:00
ValentinVignal 5b6571ec7f
doc: Update the changelogs 2023-09-20 21:59:31 +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
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
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 8300782662 Fix cli test 2023-09-14 18:32:43 +02:00
Simon Binder d0b176e290 Add docs and changelog entries 2023-09-14 18:28:55 +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 da0392c7ce
Update packages used in documentation 2023-09-10 22:19:41 +02:00
Simon Binder 71f839d9b6
Prepare drift_dev hotfix release 2023-09-07 17:24:57 +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
Simon Binder 303d738749
Prepare 2.11.1 release 2023-08-27 17:11:04 +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 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