Commit Graph

3058 Commits

Author SHA1 Message Date
Simon Binder ddb2b01b1c
Just reference the new package 2023-01-09 17:36:55 +01:00
Lungu Constantin fab7957b68
Update faq.md 2023-01-09 14:01:38 +02:00
Simon Binder 4da319efde
Merge pull request #2256 from itorres/patch-1
Fix typo
2023-01-08 23:42:45 +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 4b83810a17
Fix `CAST` always being non-nullable 2023-01-06 21:14:24 +01:00
Simon Binder d9072d7fac
Mention that casts work for drift types 2023-01-06 17:32:05 +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 4723d8474e
Use `notify` for broadcasting table updates
The `request` method is not suitable for deliverying these updates,
 since it may cause an exception if any client disconnects in the
 meantime.
2023-01-02 23:35:10 +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
Simon Binder ecf6679518
Merge pull request #2246 from North101/develop
Fixes for schema generate
2023-01-02 13:03:04 +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 810ecb169a
Merge pull request #2241 from North101/develop
Add toColumns mixin when using user generated classes
2022-12-31 14:40:52 +01:00
Simon Binder 104cb9be07
Document builder option 2022-12-31 14:16:09 +01: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
Simon Binder e40e17bc63
Prepare drift 2.4.1 release 2022-12-31 13:43:40 +01:00
Alexander Wilde 91495e6f8d Rebuild 2022-12-31 03:33:54 +00: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 57decbb5b2 Add @Deprecated to `generateInsertable` 2022-12-31 00:32:02 +00:00
Simon Binder 2bf36a3b5b
Properly close isolate connections 2022-12-30 23:11:22 +01:00
Alexander Wilde 6e5b73deed rename mixin to TableToColumns 2022-12-30 20:46:12 +00:00
Simon Binder 6e173e8c08
Don't require tokens for some AST classes 2022-12-30 20:46:18 +01: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 c289e447c6
Lazily read result expressions (#2231) 2022-12-26 18:23:14 +01:00
Simon Binder b92151f967
Merge pull request #2230 from North101/likeExp
Add likeExp
2022-12-26 13:17:47 +01:00
Simon Binder c8091db25f
Merge pull request #2229 from North101/develop
Allow reading views from readTableOrNull
2022-12-26 13:07:59 +01:00
Simon Binder e02a814f5c
Add test and changelog entry 2022-12-26 13:06:48 +01:00