Commit Graph

407 Commits

Author SHA1 Message Date
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