Commit Graph

687 Commits

Author SHA1 Message Date
Simon Binder 18868221d9
Support doc comments for columns in drift files 2023-05-10 12:00:44 +02:00
Simon Binder 1dad8a00d8
Prepare 2.8.0 release 2023-05-10 10:24:58 +02:00
Simon Binder 052abfbab2
Add safety fallback for new types being added 2023-05-10 10:18:24 +02:00
Simon Binder 45dc099440
Support analyzer 5.12 2023-05-10 10:13:16 +02:00
Simon Binder ceba4e3c1b
Remove unused imports 2023-05-03 19:01:41 +02:00
Simon Binder b2b37666bd
Add version for intermediate sources if needed 2023-05-03 17:45:39 +02:00
Simon Binder 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder 5caa948243
Improve error handling for missing tables in query 2023-04-19 23:24:24 +02:00
Simon Binder f8e7d2335a
Raise minimum language version to 2.13
Drift uses generalized typdefs in generated code, which only became
available in Dart 2.13.
2023-04-12 21:27:06 +02:00
Simon Binder d7f1bfb61c
Prepare 2.7.0 release 2023-04-10 23:33:36 +02:00
Simon Binder d02343c8cc
Add regresion test for Dart component in having 2023-04-08 16:02:40 +02:00
Simon Binder a6549425ef
Serialize and restore file dependencies too 2023-03-25 16:29:07 +01:00
Simon Binder d6e074e704
Fix `validateDatabaseSchema` in schema tests 2023-03-23 17:56:50 +01:00
Simon Binder 9bebf4a81e
Prepare release 2023-03-20 21:39:41 +01:00
Simon Binder 023512cae3
Support latest cli_util in drift_dev 2023-03-20 17:18:50 +01:00
Simon Binder 0453988233
Remove client default code from schema tests again 2023-03-16 19:31:41 +01:00
Simon Binder ba86f1aa89
Use correct variable indexes around nested queries 2023-03-15 17:48:36 +01:00
Simon Binder 26434ca40b
Fix typo in test that is now an error 2023-03-13 22:46:43 +01:00
Simon Binder 849f245f53
Warn about invalid custom foreign key constraint 2023-03-13 22:30:14 +01:00
Simon Binder e0d5520ee1
Analyze foreign keys as custom constraint on cols 2023-03-13 21:51:16 +01:00
Simon Binder adc2e22c46
Ignore lints in generated schema code 2023-03-03 20:57:32 +01:00
Simon Binder cc16156c84
Merge branch 'postgres3' into develop 2023-02-25 13:16:33 +01:00
Simon Binder 5166e5d294
Add rowid parameter to companions 2023-02-19 13:46:58 +01:00
Fabian Freund dc9a9e2db3 fix parsing of nested cte's 2023-02-15 10:18:26 +01:00
Simon Binder 21ff422f19
Support `@create` queries in modular mode (#2313) 2023-02-12 12:44:47 +01:00
Simon Binder ca75323a6a
Fix postgres tests 2023-02-09 10:53:41 +01:00
Simon Binder c2c1b3c6ae
Merge `latest-release` into `develop` 2023-02-08 10:58:53 +01:00
Simon Binder 6b216c1683
Fix expected import for Uint8List in test 2023-02-07 22:38:33 +01:00
Simon Binder cd2cf1f3b3
Fix blob columns with modular code generation (#2306) 2023-02-07 22:27:53 +01:00
Simon Binder deb1b91d41
Escape postgres keywords in generated SQL 2023-02-05 14:28:19 +01:00
Simon Binder 94332a126f
Prepare to release drift_dev 2.5.1 2023-02-01 10:52:29 +01:00
Simon Binder ab10fd7f6f
Resolve columns sequentially 2023-02-01 10:50:20 +01:00
Simon Binder f9912d5455
Properly unify result classes with list columns 2023-01-31 22:58:30 +01:00
Simon Binder b935d27248
Add test for #2292 2023-01-31 22:25:58 +01:00
Simon Binder d35c8f07d4
Prepare drift_dev re-release 2023-01-30 08:58:59 +01:00
Paulis Gributs 1c282afe4f
Fix sqlparser error
SQL parser is set to a non-existent version in the publication specification and prevents drift_dev 2.5.0 from being used.
2023-01-29 17:58:49 +00:00
Simon Binder e42dd9155e
Prepare 2.5.0 release 2023-01-29 16:25:20 +01:00
Simon Binder 0d354b3bec
Deprecate special connect constructor 2023-01-28 16:53:35 +01:00
Simon Binder 83fad8426e
Make `generate_connect_constructor` the default 2023-01-28 16:14:27 +01:00
Simon Binder bff8d6c6a1
Fix nullability issues around record types 2023-01-27 17:12:49 +01:00
Simon Binder fe8611c5f4
Avoid unecessary async in lambda 2023-01-27 16:30:05 +01:00
Simon Binder b048ce44d4
Avoid writing suffix twice (#2281) 2023-01-27 16:15:44 +01:00
Simon Binder ef0cada32e
Merge queries with `LIST` columns 2023-01-23 21:46:51 +01:00
Simon Binder 2c63c1a64e
Update docs for Dart components in SQL
Scopes components are enabled by default, so the warning is no longer
necessary.
2023-01-22 22:53:45 +01:00
Simon Binder cd41eed105
Migrate away from `JsonKey.ignore` 2023-01-20 18:30:48 +01:00
Simon Binder 6e35abb9c9
Add `IS` operator to Dart query builder 2023-01-12 16:53:43 +01:00
Simon Binder 53c14cd1aa
Modular: Fix extends for data classes (#2263) 2023-01-11 11:29:44 +01:00
Simon Binder c3cd2f2eeb
Fix `DataClassName` annotation with extending 2023-01-10 17:38:25 +01:00
Simon Binder 6b4a186b15
Fix extending classes in modular mode (#2260) 2023-01-10 12:26:14 +01:00
Ignacio Torres Masdeu 8cbab9af24
Fix typo 2023-01-08 16:40:09 +01:00
Simon Binder bbb19d59bb
Ignore abstract tables (#1955) 2023-01-08 15:54:16 +01:00
Simon Binder a6bede2aaa
Generate type converters for views 2023-01-06 17:16:18 +01:00
Simon Binder 1d7e656e30
Support cast to enum types 2023-01-06 16:53:04 +01:00
Simon Binder bc325dd31c
Support cast to drift-specific types 2023-01-06 15:10:03 +01:00
Simon Binder 20e6b0d5fe
Fix crash, support type converters in views 2023-01-06 14:27:15 +01:00
Simon Binder 259e4cfdd3
Remove unused import 2023-01-05 23:13:45 +01:00
Simon Binder e562cb9d21
Support type converters in queries 2023-01-05 23:04:36 +01:00
Simon Binder fafcf114a3
Prepare new minor release 2023-01-02 23:56:28 +01:00
Simon Binder e52836694c
Fix view data class names for schema files 2023-01-02 23:22:50 +01:00
Simon Binder 9734aa56d1
Ignore existing row types on views for schema code 2023-01-02 23:02:14 +01:00
Simon Binder 4cd7616f24
Strip drift data class name from `CREATE VIEW` 2023-01-02 20:04:22 +01:00
Alexander Wilde 31d58fbf77 Sort schema versions 2023-01-01 23:22:31 +00:00
Alexander Wilde 624c145cfd companions flag shouldn't depend on data classes flag 2023-01-01 20:17:40 +00:00
Alexander Wilde 132d53fbb8 Only write toColumns mixin if `writeDataClasses` is enabled 2022-12-31 23:45:28 +00:00
Alexander Wilde 443759f02f Only write `toCompanion` if `writeCompanions` is enabled 2022-12-31 23:44:45 +00:00
Alexander Wilde 162f334330 Fix missing override when writing toColumns mixin 2022-12-31 23:44:02 +00:00
Simon Binder ebc1ba6899
Add test 2022-12-31 14:11:58 +01:00
Simon Binder 31e1312fc3
Extract columns override into shared method 2022-12-31 13:58:52 +01:00
Alexander Wilde 208055801f Move code to `table_writer.dart`
Use mixin in data class when enabled
2022-12-31 03:33:43 +00:00
Alexander Wilde 6e5b73deed rename mixin to TableToColumns 2022-12-30 20:46:12 +00:00
Alexander Wilde 459ec0cf4b Add writeToColumnsMixin 2022-12-30 02:07:57 +00:00
Simon Binder a98890b1c9
Prepare 2.4.0 release 2022-12-28 23:15:12 +01:00
Simon Binder 37101cf839
Add documentation and changelog 2022-12-27 22:26:31 +01:00
Simon Binder d02deca36b
Fix tests 2022-12-27 21:08:41 +01:00
Simon Binder a3fea1af04
Add integration test for existing types in drift 2022-12-27 20:58:15 +01:00
Simon Binder a463ee14cb
Support existing row classes in the generator 2022-12-27 18:14:02 +01:00
Simon Binder f13fb4e218
Analyze existing row types for queries 2022-12-27 17:04:38 +01:00
Simon Binder 1cbc02267d
Store existing analyzer type for tables and views 2022-12-27 12:49:24 +01:00
Simon Binder 649af15333
Analysis support for existing query row types 2022-12-27 00:15:47 +01:00
Simon Binder 44cae65170
Order all result columns syntactically 2022-12-26 22:45:35 +01:00
Simon Binder 20aff8a9db
Begin with existing types for queries 2022-12-26 19:17:17 +01:00
Simon Binder 338dd1316e
Support records as existing row types 2022-12-26 00:23:04 +01:00
Simon Binder 96572d5833
Fix asset id collision 2022-12-25 20:36:28 +01:00
Simon Binder c4fc5b8ada
Fix running post-process builder in test 2022-12-25 19:29:33 +01:00
Simon Binder 86b21029fd
Remove unused import 2022-12-25 19:14:41 +01:00
Simon Binder 7b639f837a
Generate helper Dart file to serialize types 2022-12-25 19:10:48 +01:00
Alexander Wilde 32c34b511a Fix DriftSqlType.deserialize for double, dateTime and any 2022-12-22 02:08:04 +00:00
Simon Binder 22a3d3965c
Allow `autoIncrement` on `int64` columns (#2223) 2022-12-20 18:52:08 +01:00
Simon Binder 344d5611c6
Merge pull request #2220 from North101/develop
Validate enum default value in drift files
2022-12-20 00:11:47 +01:00
Simon Binder 056fdac8cb
Remove unused import, add changelog 2022-12-19 23:58:08 +01:00
Simon Binder 1497d719b5
Extend check to all literal uses 2022-12-19 23:55:13 +01:00
Alexander Wilde bdfa8124fe Allow referencing enum value for default 2022-12-19 12:27:46 +00:00
Simon Binder e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables 2022-12-18 18:55:17 +01:00
Simon Binder b520568984
Ignore internal tables when reading schema from db 2022-12-18 15:26:40 +01:00
Simon Binder 0e395bbef3
Fix `JSON KEY` not working 2022-12-17 21:36:24 +01:00
Simon Binder 425878b712
Fix tests around custom constraints 2022-12-16 16:03:34 +01:00
Simon Binder 657b68ab76
Extract custom Dart table constraints into schema 2022-12-16 15:34:07 +01:00
Simon Binder add680b8bf
Move `SchemaInstantiationHelper` to drift package 2022-12-16 14:09:54 +01:00
Simon Binder 5f8b1e3358
Recognize database files when dumping schema data 2022-12-15 16:47:44 +01:00
Simon Binder 597d84db26
Fix import expectation 2022-12-13 22:04:35 +01:00
Simon Binder 00dbc2f886
Avoid nested codes, add tests 2022-12-13 21:53:17 +01:00
Peter Leibiger a5f184857d
Fix duplicate result classes in modular mode 2022-12-13 01:41:03 +01:00
Peter Leibiger a3ce27f4e0
Fix typos 2022-12-13 01:40:21 +01:00
Peter Leibiger bf3f15909c
Fix converter import prefixes missing in modular mode 2022-12-13 01:39:46 +01:00
Simon Binder 16e6aaf4fe
Use extension for all tables in modular generation 2022-12-12 23:50:11 +01:00
Simon Binder 5f2d52ccc5
Merge branch 'latest-release' into develop 2022-12-12 22:45:11 +01:00
Simon Binder 44e7aea043
Prepare drift_dev 2.3.3 release 2022-12-12 22:39:00 +01:00
Simon Binder 4bc6dfe834
Fox crash when serializing simple queries 2022-12-12 22:37:49 +01:00
Simon Binder ec2b564611
Fox crash when serializing simple queries 2022-12-12 22:18:10 +01:00
Simon Binder b6cff50135
Parse custom constraints applied to columns 2022-12-11 00:06:45 +01:00
Simon Binder 1c06873403
Fix reading triggers in old schema files (#2191) 2022-12-10 22:57:45 +01:00
Simon Binder fb3d832f0f
Fix modular accessors sometimes not being generated 2022-12-07 21:27:45 +01:00
Simon Binder a3d755ca19
Merge pull request #2184 from North101/develop
Various fixes for modular code gen
2022-12-07 11:20:26 +01:00
Simon Binder 6659d78ca7
Oops, fix compilation errors 2022-12-07 11:05:22 +01:00
Simon Binder c0c1810bcf
Don't generate empty drift accessors 2022-12-07 10:55:20 +01:00
Simon Binder a637708591
Generate getters for DAO as well 2022-12-06 22:10:21 +01:00
Simon Binder 5a8dd923d6
Add more examples to modular project 2022-12-06 21:19:20 +01:00
Simon Binder 7f5e671939
Support older `string_scanner` versions as well 2022-12-06 18:19:20 +01:00
Alexander Wilde ec01ad275a Various fixes for modular code gen 2022-12-05 17:16:06 +00:00
Simon Binder dafa07a88a
Don't further analyze part files (#2185) 2022-12-05 17:59:51 +01:00
Simon Binder c0d5188c18
Fix generating modular type converter code (#2183) 2022-12-04 19:14:24 +01:00
Simon Binder d60c775435
Merge pull request #2181 from ValentinVignal/column-name-case
Add the `column_name_case` option
2022-12-03 14:13:16 +01:00
Simon Binder d366cff9ee
Write utils for function stubs 2022-12-03 14:05:58 +01:00
ValentinVignal 5b7a9f487a
Update the tests 2022-12-03 16:16:25 +08:00
ValentinVignal 8a34a41fba
♻️ apply the recase option to table name 2022-12-03 16:16:13 +08:00
ValentinVignal 496635afb5
🚚 Rename column_name_case into case_from_dart_to_sql 2022-12-03 15:55:58 +08:00
ValentinVignal b08088ab1b
Merge remote-tracking branch 'upstream/develop' into column-name-case 2022-12-03 14:56:51 +08:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Simon Binder 1a51dbf4d6
Static analysis support for custom functions 2022-12-02 23:34:42 +01:00
ValentinVignal 604db99801
Revert upgrade of version number 2022-12-01 23:56:08 +08:00
ValentinVignal 2a8e9d7af0
✏️ Fix typo for camelCase 2022-12-01 23:41:32 +08:00
ValentinVignal ce0568e70c
📦 Re-run build runner 2022-12-01 23:34:00 +08:00
ValentinVignal 8548ff4423
⬆️ Upgrade version number 2022-12-01 23:27:46 +08:00
ValentinVignal d719b9598a
Test on column_name_case option 2022-12-01 23:26:51 +08:00
ValentinVignal 3835e0aae4
Adds column_name_case option 2022-12-01 23:26:33 +08:00
Alexander Wilde c80e6b6cbe Fix tests 2022-12-01 04:43:27 +00:00
Alexander Wilde c1ee1f7274 Add JsonTypeConverter support to enums 2022-12-01 04:43:20 +00:00
Simon Binder 6503624ff1
Merge pull request #2168 from ValentinVignal/textEnum
Add `textEnum` column builder and `EnumNameConverter`
2022-11-30 22:07:54 +01:00
Simon Binder 061d9b2008
Use indirect import for test 2022-11-30 21:29:44 +01:00
ValentinVignal 3cfa69c9d9
:sparkles Add ENUMNAME type 2022-12-01 00:40:13 +08:00
ValentinVignal 0c35d30dcb
💡 Better test description 2022-12-01 00:00:54 +08:00
ValentinVignal 89aec378af
Merge remote-tracking branch 'upstream/develop' into textEnum 2022-11-30 23:55:25 +08:00
ValentinVignal b9892ece5c
Verify the EnumNameConverter is used 2022-11-30 23:55:04 +08:00
ValentinVignal 99affe3fac
🐛 Use correct type for enum converter 2022-11-30 23:53:46 +08:00
Simon Binder 267821804e
Add generator unit test for #2178 2022-11-30 16:26:22 +01:00
ValentinVignal 197a3862e7
Merge remote-tracking branch 'upstream/develop' into textEnum
# Conflicts:
#	drift_dev/CHANGELOG.md
#	drift_dev/pubspec.yaml
2022-11-30 22:47:58 +08:00
Simon Binder 0ee8a6a7f9
Fix code generation for triggers and indices 2022-11-29 10:39:45 +01:00
Simon Binder d24644113a
Fix generating schema test code 2022-11-28 21:59:17 +01:00
ValentinVignal a993d433c5
Merge remote-tracking branch 'upstream/develop' into textEnum
# Conflicts:
#	drift/CHANGELOG.md
#	drift_dev/CHANGELOG.md
2022-11-28 19:09:36 +08:00
ValentinVignal d7ef374677
⬆️ Upgrade version number 2022-11-28 18:59:00 +08:00
ValentinVignal 4030db4c5f
🎨 Better type comparison and matcher 2022-11-28 18:54:56 +08:00
Simon Binder a837e51fda
Prepare pubspecs for new release 2022-11-27 17:05:16 +01:00
ValentinVignal 432b68cf4e
Update the tests 2022-11-26 21:51:27 +08:00
ValentinVignal e8ee29bb18
textEnum 2022-11-26 21:51:13 +08:00
Simon Binder 15edd501aa
Support generating database accessors in modular mode 2022-11-25 14:49:14 +01:00
Simon Binder 59d347adbe
Fix spellfix1 module with new analyzer 2022-11-22 20:06:17 +01:00
Simon Binder fde7adde48
Support triggers and indices in modular generation 2022-11-22 20:06:16 +01:00
Simon Binder f4e45584ec
Begin optional modular code generation 2022-11-20 17:28:27 +01:00
Simon Binder 72a85b799c
Fix tests with new generator 2022-11-19 16:24:07 +01:00
Simon Binder c77fc3612f
Run dart format in drift_dev 2022-11-18 17:01:21 +01:00
Simon Binder 6512dc1cfc
Merge remote-tracking branch 'origin/develop' into modular-generation 2022-11-18 16:56:55 +01:00
Simon Binder 596a35b58e
Document basic analysis concept 2022-11-18 16:33:19 +01:00
Simon Binder e1ec5faa93
Fix analysis warnings in new analyzer 2022-11-18 12:19:03 +01:00
Simon Binder 564b4c887f
Migrate remaining tests 2022-11-18 12:02:38 +01:00
Simon Binder ec311aea57
Migrate remaining analyzer tests 2022-11-18 10:46:00 +01:00
Simon Binder 873cc9a7a9
Migrate service tests to new analyzer 2022-11-13 17:41:09 +01:00
Simon Binder ce0dffb362
Migrate entity reference sorter test 2022-11-11 18:17:16 +01:00
Simon Binder c69d1a6628
Delete old analyzer and model 2022-11-11 18:02:30 +01:00
Simon Binder ea6a8a2217
Re-generate migration tests 2022-11-11 17:50:21 +01:00
Simon Binder 360ee348a2
Fix compilation errors in CLI 2022-11-09 21:59:45 +01:00
Simon Binder e63f089b46
Fix drift_dev test 2022-11-07 16:06:09 +01:00
Simon Binder d491db8599
Move dialect to SqlTypes constructor, re-generate 2022-11-07 15:53:16 +01:00
Abitofevrything 658bd5d646 Update test case 2022-11-05 20:35:02 +01:00
Abitofevrything cb1389f272 Extract generated code to method 2022-11-05 20:34:55 +01:00
Simon Binder 3b12faaa46
Start migrating schema files to new analyzer 2022-11-05 19:44:43 +01:00
Simon Binder c5a800d4c4
Migrate simple CLI tools to new analyzer 2022-11-05 18:32:13 +01:00
Simon Binder c5504237d5
Make drift's tests pass with new analyzer 2022-11-04 13:42:06 +01:00
Simon Binder c2b319bc8e
Fix writing type converters 2022-11-01 00:14:17 +01:00
Simon Binder fe3566429f
Migrate more analyzer tests 2022-10-30 19:41:59 +01:00
Simon Binder 23b0c8a362
Migrate drift file analysis tests to new analyzer 2022-10-30 16:09:38 +01:00
Simon Binder 292dd9946d
Port more tests over to new analyzer 2022-10-29 17:30:18 +02:00
Abitofevrything 2106b7010b Pass dialect to SqlTypes methods 2022-10-29 16:36:04 +02:00
Abitofevrything fbff2ceccd Use postgresql boolean type for bool columns 2022-10-29 15:48:45 +02:00
Simon Binder 49470e8361
Support serializing fts5 tablesi n new analyzer 2022-10-29 14:39:28 +02:00
Abitofevrything 52b885c007 Don't export customConstraints in schema file is constraints are empty 2022-10-29 14:22:22 +02:00
Abitofevrything 52d2d908c0 Don't generate empty constraints 2022-10-29 13:37:38 +02:00
Abitofevrything c8d63b845d Generate dialect-specific constraints 2022-10-29 13:16:21 +02:00
Simon Binder fdd1d2c66e
Fix deprecation warnings from analyzer upgrade 2022-10-29 12:17:07 +02:00
Simon Binder e3a29ebbe2
Migrate some tests to new analyzer 2022-10-26 23:09:05 +02:00
Simon Binder 69808525c0
Port over drift lints to new analyzer 2022-10-26 20:36:35 +02:00
Simon Binder 81679b8ff1
Fix formatting some Dart placeholders 2022-10-23 18:13:40 +02:00
Simon Binder f38d56842e
Fix nullability for drift -> sqlparser mapping 2022-10-23 17:46:57 +02:00
Simon Binder 9f48d49cb3
Read primary key in drift files 2022-10-23 17:36:28 +02:00
Simon Binder 75169c9d7e
Read type converters in drift files 2022-10-23 17:15:59 +02:00
Simon Binder 70a88cfe3a
Fix generating array types with new analyzers 2022-10-23 15:52:21 +02:00
Simon Binder e3b6c56f08
Fix syntax error in generated code for queries 2022-10-19 23:35:54 +02:00
Simon Binder 2ec63749f8
New analyzer: Better support for virtual tables 2022-10-18 22:28:53 +02:00
Simon Binder b16b5ad2c2
Merge branch 'develop' into modular-generation 2022-10-18 21:55:43 +02:00
Simon Binder 92bb5a7fa1
Add test and changelog 2022-10-18 20:36:09 +02:00
Alexander Wilde 09951adda6 JsonTypeConverterWithDifferentTypes -> JsonTypeConverter2 2022-10-18 01:06:22 +01:00
Alexander Wilde ff9d419559 Backwards compatible attempt 2022-10-16 00:44:58 +01:00
Alexander Wilde ba28b51125 Decouple JsonTypeConverter from TypeConverter 2022-10-14 19:56:28 +01:00
Simon Binder 81ba7686c7
Generate queries with new analyzer 2022-10-13 22:05:42 +02:00
Simon Binder b16d8f5e3a
Fix generated view code 2022-10-13 19:25:54 +02:00
Simon Binder 189af5d443
View generation wth new analyzer 2022-10-12 01:23:17 +02:00
Simon Binder 3dddbaf467
Merge branch 'develop' into modular-generation 2022-10-10 23:45:48 +02:00
Simon Binder 3d969c787f
Infer generated columns for drift 2022-10-10 23:18:10 +02:00
Simon Binder 0b68d68b6c
New analyzer: Support Dart views 2022-10-10 00:07:00 +02:00
Simon Binder 808f582b08
Release sqlparser and drift_dev 2022-10-06 22:56:25 +02:00
Simon Binder a2e10d9abc
Prepare 2.2.0 release 2022-10-06 13:27:25 +02:00
Simon Binder 470fb49592
Write companions with new analyzer 2022-10-03 17:37:10 +02:00
Simon Binder 1a39c5eb8d
Start emitting data class and table code 2022-10-03 15:04:22 +02:00
Simon Binder ef1b94af1d
Start generating code with new analyzer 2022-10-02 23:15:11 +02:00
Roman Laptev b2796fc77e
[drift_dev] Update analyzer and deprecated methods (#2084) 2022-09-27 21:30:12 +02:00
Simon Binder 8c1a62ae1b
Serialize and read uniqueKeys from schema (#2069) 2022-09-22 17:47:06 +02:00
Simon Binder 28c90b6ffb
Always escape column names
This avoids the performance impact of using a regex in `escapeIfNeeded`.
Closes #2071.
2022-09-22 16:55:36 +02:00
Simon Binder dcdbcb7156
Simple test for new query analyzer 2022-09-18 21:52:36 +02:00
Simon Binder b33ef8a220
Analyze SQL queries 2022-09-18 21:25:46 +02:00
Simon Binder 5947956109
Start generating code from new analysis results 2022-09-17 23:14:52 +02:00
Simon Binder a6caae9d8f
Parse entrypoints in new analyzer 2022-09-17 00:16:53 +02:00
Simon Binder 090a0053f1
Merge branch 'develop' into modular-generation 2022-09-16 20:03:17 +02:00
Fabian Freund cd89379627
Static analysis support for spellfix1 (#2013) 2022-09-16 16:02:39 +02:00
Simon Binder 8e9e7fc291
Use melos to manage packages (#2060) 2022-09-15 23:42:20 +02:00
Simon Binder 24316c80a6
Remove unecessary schema_version assignment 2022-09-13 22:01:00 +02:00
Simon Binder 4da647e8a3
Ignore android_metadata table in schema comparison 2022-09-13 10:38:46 +02:00
Simon Binder 2bd7596de6
New analyzer: Basic query support 2022-09-12 22:56:33 +02:00
Simon Binder e08ccdbcda
New analyzer: Support analyzing drift views 2022-09-12 21:57:19 +02:00
Daniel Brauner 025bb7c44b
Generated functions for returning queries return Iterable<_> instead of List<_> (#2044)
* fix for missing toList

* removed unnecessary toList
2022-09-12 19:05:45 +02:00
Simon Binder ac52957848
Prepare analysis for views 2022-09-11 22:11:12 +02:00
Simon Binder 5508a9f246
Support triggers in new analyzer 2022-09-10 23:50:24 +02:00
Simon Binder aa5cb69799
Support indices in new analyzer 2022-09-10 23:22:39 +02:00
Simon Binder 97ed32f05a
Serialize column constraints 2022-09-10 18:18:39 +02:00
Simon Binder eabf2a1e03
Fix Dart reference analysis in new analyzer 2022-09-10 17:56:25 +02:00
Simon Binder 0f97b42a43
Analyze Dart tables with new analyzer 2022-09-10 16:34:17 +02:00
Simon Binder e88ec41555
More work on Dart table analysis in new analyzer 2022-09-10 01:05:09 +02:00
Simon Binder 1681c83bea
Fix null analysis for Dart views (#2031) 2022-09-08 23:06:00 +02:00
Simon Binder e20d43c07c
Add test for dart file discovery 2022-09-05 23:31:01 +02:00
Simon Binder eb7299c2d5
Stop mentioning `compact_query_methods` (#2036) 2022-09-05 13:54:47 +02:00
Simon Binder c814cfd935
Prepare new test backend for Dart analysis 2022-09-05 13:51:41 +02:00
Simon Binder 61e568104a
Discover dart tables in new analyzer 2022-09-03 23:29:18 +02:00
Simon Binder 9eb15149d7
Serialize drift analysis results 2022-09-01 23:10:54 +02:00
Simon Binder 5637afe35a
Handle simple references in new table analyzer 2022-09-01 20:41:32 +02:00
Simon Binder 009056dc37
Handle equality and hashes for blobs 2022-09-01 18:11:41 +02:00
Simon Binder 13e7fd2b0b
Begin with table analysis in the new analyzer 2022-08-31 23:15:11 +02:00
Simon Binder 0adb398ddc
Merge branch 'develop' into modular-generation 2022-08-31 22:06:21 +02:00
Simon Binder ee66465d47
Avoid leading underscores for local identifiers 2022-08-31 00:59:19 +02:00
Simon Binder 0242ce56ac
Start resolving drift tables in new analyzer 2022-08-30 23:58:36 +02:00
Simon Binder aae09c02b0
Simple tests for pre-analysis step 2022-08-30 22:50:07 +02:00
Simon Binder 2575f36e82
Merge branch 'develop' into modular-generation 2022-08-30 21:20:32 +02:00
Simon Binder ce35a27069
Prepare 2.1.0 release 2022-08-29 22:27:35 +02:00