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
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
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
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
c58c93c348
Prepare changelogs for 1.4 release
2022-02-09 16:47:22 +01:00
Simon Binder
661227c4c3
Prepare release
2022-02-09 16:23:43 +01:00
Simon Binder
33e3610fea
Fix analysis warnings added in Dart 2.16
2022-02-08 20:59:59 +01:00
Simon Binder
36815c0b88
Merge pull request #1638 from LeFrosch/develop
...
Support for nested queries like (#1634 )
2022-01-31 13:21:24 +01:00
Simon Binder
b442a82f93
Move nested query containers into model directory
2022-01-31 12:58:36 +01:00
Simon Binder
1d1d0c783a
Fix CI test failures
2022-01-29 21:50:33 +01:00
Simon Binder
6b6cd30a0c
Move nested query analysis to drift_dev
2022-01-28 21:55:03 +01:00
Simon Binder
fe0b976b92
Fix invalid use of alias in writer test
2022-01-26 22:12:32 +01:00
Simon Binder
7d56497c18
Some plugin fixes
2022-01-24 17:25:24 +01:00
Daniel Brauner
2035bf0af9
Fix resultset name bug
2022-01-23 18:44:33 +01:00
Daniel Brauner
a9fd12e565
Fixed 0 workaround
2022-01-23 17:08:32 +01:00
Daniel Brauner
e50ce8a8f7
Add linter for double nested queries and bug fixes
2022-01-20 20:21:06 +01:00
Daniel Brauner
b5acbbf374
Bug fixes and support for dart placeholder
2022-01-20 12:08:39 +01:00
Simon Binder
2a347b2f40
Analyze views before other entities
2022-01-19 20:54:02 +01:00
Daniel Brauner
add33e339c
Fix copied comments :)
2022-01-18 22:56:17 +01:00
Daniel Brauner
cc3cfea5fa
Split map function in async map and sync map
2022-01-18 22:50:33 +01:00
Daniel Brauner
d74860ec49
Add support for nested query variables
2022-01-18 22:21:54 +01:00
Simon Binder
672bb930c8
Add common methods as extension on table ( #1613 )
2022-01-18 22:11:09 +01:00
Simon Binder
7bfa00e8b4
Make database of tables accessible for Dart API
2022-01-18 21:50:51 +01:00
Daniel Brauner
e99b66486d
Fixed trailing comma bug and nameOfCreationMethod
2022-01-17 23:23:39 +01:00
Daniel Brauner
23de4c5cee
Add code generation for nested result queries
2022-01-17 22:19:31 +01:00
Daniel Brauner
0e331933af
Add rename support for nested star columns
2022-01-17 10:21:06 +01:00
Simon Binder
41472d64ec
Merge branch 'develop'
2022-01-14 19:35:27 +01:00
Simon Binder
d6d52718d4
Prepare 1.3.0 release
2022-01-14 19:19:14 +01:00
Simon Binder
6555523384
Prepare drift_dev release for latest analyzer
2022-01-10 16:26:50 +01:00
Simon Binder
35dae8b044
Support latest analyzer
2022-01-10 16:25:36 +01:00
Simon Binder
48f1aa8437
Support latest analyzer
2022-01-10 13:09:47 +01:00
Simon Binder
e7580ca912
Prepare 1.2.0 release
2021-12-30 17:28:56 +01:00
Simon Binder
0bad799b82
Proper support for views in select streams
2021-12-25 20:30:16 +01:00
Simon Binder
98c21c13b3
Prepare to release 1.1.1
2021-12-23 17:38:49 +01:00
Simon Binder
41825e058e
Rollback if commit fails ( #1589 )
2021-12-19 19:45:20 +01:00
Simon Binder
36b23942f4
Consider inheritance when checking for getters
2021-12-19 11:48:49 +01:00
Simon Binder
102d0d9246
Use correct sqlparser dependency in drift_dev
2021-12-19 11:48:49 +01:00
渣渣辉
a638428495
Fix ViewParser not support alias column
2021-12-13 20:57:28 +08:00
Simon Binder
bf0dcfb693
Prepare drift 1.1 release
2021-12-11 13:17:37 +01:00
Simon Binder
19bd92bfd9
Remove redundant imports
2021-12-09 14:10:51 +01:00
Simon Binder
44281bebaf
Support for STRICT tables in drift files
2021-12-03 22:11:44 +01:00
westito
d22bbcbadf
Merge remote-tracking branch 'simolus3/develop' into views
2021-12-02 09:20:02 +01:00
Simon Binder
2999df449d
Fix schema verifier around virtual tables
2021-12-01 21:07:47 +01:00
Simon Binder
5fcdbed46f
Add docs
2021-12-01 17:05:58 +01:00
westito
02ff9b8cdc
Merge remote-tracking branch 'simolus3/develop' into views
2021-11-30 21:44:39 +01:00
westito
f3e9fe56da
Fix parsing view references
2021-11-30 20:42:20 +01:00
westito
0e61940d70
add join useColumns option to selectOnly
2021-11-30 15:20:19 +01:00
westito
fc9c2d6171
Remove unnecessary import from virtual table test
2021-11-28 19:38:14 +01:00
westito
b4b76c95bc
Fix typo in virtual table unknown function test
2021-11-28 19:35:48 +01:00
westito
5d5518f2a4
Fix virtual table test
2021-11-28 19:33:31 +01:00
Simon Binder
0dde9ba78a
Merge pull request #1566 from westito/missing_override
...
Override missing in generated code
2021-11-28 19:26:52 +01:00
westito
254e33f5bb
Check references only on Database
2021-11-28 17:48:44 +01:00
westito
203504de93
Override missing in generated code
2021-11-28 13:30:05 +01:00
westito
810d9f03a5
Modify DSL view to accept expression instead of column
2021-11-27 18:22:04 +01:00
westito
a6bd75d780
fix post-merge issues
2021-11-26 14:15:54 +01:00
westito
72260196be
Merge remote-tracking branch 'simolus3/develop' into views
...
# Conflicts:
# drift_dev/lib/src/writer/tables/data_class_writer.dart
2021-11-26 14:10:10 +01:00
boyan
b5d32ee21a
fix unknown function cause crash
2021-11-26 13:08:26 +08:00
Simon Binder
49d21d2796
Merge pull request #1559 from westito/null_aware_type_converters
...
Add null aware type converter option
2021-11-25 21:40:22 +01:00
westito
9359defcac
Add null aware type converters option
2021-11-24 23:49:13 +01:00
Simon Binder
a00869a62b
Migrate .moor.dart files ( #1558 )
2021-11-24 23:11:59 +01:00
westito
ea78584793
Merge remote-tracking branch 'simolus3/develop' into views
2021-11-24 19:06:31 +01:00
Simon Binder
214fbe2409
Don't crash for unknown column in PK
2021-11-19 15:43:50 +01:00
westito
876f6850f5
Add dsl view generator
2021-11-15 00:15:53 +01:00
westito
ea6dc02964
Refactor drift views
2021-11-13 12:27:07 +01:00
westito
70bcefdaf3
Rename View to ViewInfo
2021-11-12 19:38:45 +01:00
westito
fad654a5aa
PostgreSQL support ( #1507 )
...
Support PostgreSQL as a dialect in the main package and with an implementation provided in another package.
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-11-11 14:40:41 +01:00
Simon Binder
f2d0864890
Support generated columns in the parser
2021-11-07 22:10:08 +01:00
Simon Binder
3469bade62
Initial support for generated columns
2021-11-07 21:20:12 +01:00
Simon Binder
38a8ad136f
Merge pull request #1492 from westito/generate_tocompanion
...
Add 'toCompanion' generator for custom row classes
2021-10-20 23:39:18 +02:00
westito
40f4c1bd1f
Rewrite toCompanion to insertable
2021-10-20 16:58:27 +02:00
Simon Binder
6bcb0070b0
Write explicitly inxed variables in new code
2021-10-19 18:15:53 +02:00
westito
a5e4a7851e
Remove named function requirements, fix name matching, update test
2021-10-19 15:58:39 +02:00
westito
9b4f25718d
Moved generateToCompanion option to ExistingRowClass
2021-10-19 09:30:57 +02:00
westito
610acfad61
Apply suggestions from code review
...
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-10-19 09:14:31 +02:00
westito
b8fb002c41
Change toCompanion generator builder option to @UseRowClass parameter
2021-10-18 15:17:12 +02:00
westito
958302c253
Add custom row class toCompanion generator
2021-10-17 20:09:53 +02:00
Simon Binder
4eb430c42f
Support foreign key references in Dart tables
2021-10-17 12:21:32 +02:00
Simon Binder
849b0de040
Accept drift-named schema files
2021-10-14 21:44:44 +02:00
Simon Binder
b574cb0b03
Prepare to release moor 4.6.1, drift_dev 1.0.2
2021-10-13 22:08:38 +02:00
Simon Binder
662b9d5721
Fix analysis plugin for moor, migrate options
2021-10-12 17:36:10 +02:00
Simon Binder
7d41e42c78
Prepare moor 4.6.0 release
2021-10-12 14:26:53 +02:00
Simon Binder
c2bd6f27a5
Prepare a round of releases
2021-10-11 15:55:01 +02:00
Simon Binder
bb5f08f90f
Also add plugin to drift
2021-10-11 10:25:50 +02:00
Simon Binder
331d600df3
Fix resolving Dart code in drift files
2021-10-10 22:01:59 +02:00
Simon Binder
348ac2e910
Add boilerplate files to new drift packages
2021-10-10 21:18:27 +02:00
Simon Binder
e91207e9e4
Start preparing the documentation for the new name
2021-10-09 21:43:30 +02:00
Simon Binder
aa8e3f7781
Migrate built_value example
2021-10-09 17:55:21 +02:00
Simon Binder
cc99b1372a
Migrate migration example to drift
2021-10-09 17:10:34 +02:00
Simon Binder
dc5055f585
Improve UX of migrator
2021-10-09 16:30:46 +02:00
Simon Binder
cfbea9fd57
Migrate web workers example to drift
2021-10-08 23:33:39 +02:00
Simon Binder
aa7a88172d
Fix generation for builds through moor_generator
2021-10-08 23:15:37 +02:00
Simon Binder
7358f545ac
Fix tests and generation in drift package
2021-10-08 22:40:58 +02:00
Simon Binder
3a56de1830
Fix imports in drift_dev
2021-10-08 22:01:18 +02:00
Simon Binder
2219a15e5f
Fix tests of main package, imports in dev
2021-10-08 21:51:01 +02:00
Simon Binder
fcbef06b7c
Move generator to drift_dev
2021-10-08 18:10:48 +02:00