Commit Graph

101 Commits

Author SHA1 Message Date
Eli Geller 54f6eea205
small typo fixes (#2410)
Co-authored-by: Eli Geller <eli@reportallusa.com>
2023-05-05 16:10:52 +02:00
Simon Binder b4b4e350dd
Simplify creation of web workers for drift 2023-04-10 23:01:30 +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 e91df496c8
Update dependencies for app example 2023-03-05 22:15:16 +01:00
Simon Binder adc2e22c46
Ignore lints in generated schema code 2023-03-03 20:57:32 +01:00
Simon Binder 5166e5d294
Add rowid parameter to companions 2023-02-19 13:46:58 +01:00
Simon Binder 21ff422f19
Support `@create` queries in modular mode (#2313) 2023-02-12 12:44:47 +01:00
Simon Binder d30d2a1212
Add backup/restore functionality to example app 2023-02-08 00:35:55 +01:00
Simon Binder cd2cf1f3b3
Fix blob columns with modular code generation (#2306) 2023-02-07 22:27:53 +01:00
Simon Binder 28f31d183e
Remove connect constructor in migration example 2023-01-28 19:33:34 +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 592a96bf7e
Remove default options from app example 2023-01-27 16:45:00 +01:00
Simon Binder b1f2ea45d5
FIx recent deprecation warnings 2023-01-26 16:56:16 +01:00
Simon Binder 6b4a186b15
Fix extending classes in modular mode (#2260) 2023-01-10 12:26:14 +01:00
Alexander Wilde 91495e6f8d Rebuild 2022-12-31 03:33:54 +00:00
Simon Binder 1d8fa16e2c
Enable legacy alter table in alterTable 2022-12-23 13:42:01 +01:00
Alexander Wilde 32c34b511a Fix DriftSqlType.deserialize for double, dateTime and any 2022-12-22 02:08:04 +00:00
Simon Binder 18c6139eb3
Exchange dialect information for remote database 2022-12-18 22:02:49 +01: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 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 00dbc2f886
Avoid nested codes, add tests 2022-12-13 21:53:17 +01:00
Simon Binder 16e6aaf4fe
Use extension for all tables in modular generation 2022-12-12 23:50:11 +01:00
Simon Binder 1c06873403
Fix reading triggers in old schema files (#2191) 2022-12-10 22:57:45 +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
Alexander Wilde ec01ad275a Various fixes for modular code gen 2022-12-05 17:16:06 +00:00
Simon Binder c0d5188c18
Fix generating modular type converter code (#2183) 2022-12-04 19:14:24 +01:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Alexander Wilde 5a6f402d86 Run build 2022-12-01 04:43:27 +00:00
ValentinVignal 99affe3fac
🐛 Use correct type for enum converter 2022-11-30 23:53:46 +08:00
Simon Binder d24644113a
Fix generating schema test code 2022-11-28 21:59:17 +01:00
Simon Binder cd00c6899e
Add helper method to setup isolates more easily 2022-11-25 17:54:38 +01:00
Simon Binder 15edd501aa
Support generating database accessors in modular mode 2022-11-25 14:49:14 +01:00
Simon Binder 097f941f88
Add single-client mode for remote connections 2022-11-25 13:47:08 +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 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 b2bbcfae8a
Add `shutdownOnClose` to `connect()`
When only a single client connects to a drift server, the whole server
can be disposed when that client disconnects. This makes it easier to
clean up resources in the common case of having one client.

Closes #2157
2022-11-15 11:00:52 +01:00
Simon Binder ea6a8a2217
Re-generate migration tests 2022-11-11 17:50:21 +01:00
Simon Binder d491db8599
Move dialect to SqlTypes constructor, re-generate 2022-11-07 15:53:16 +01:00
Abitofevrything 54b58948d3 Run melos run build 2022-11-05 20:35:24 +01:00
Abitofevrything 3ec04df46f Run melos run build 2022-10-29 14:36:50 +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