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
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
8e9e7fc291
Use melos to manage packages ( #2060 )
2022-09-15 23:42:20 +02:00
Simon Binder
04c3dbf1b5
Fix triggers in example app
2022-08-31 11:58:25 +02:00
Simon Binder
76a8a6d35d
Remove unintended override in encryption app
2022-08-25 21:21:21 +02:00
Simon Binder
633b2ec359
Remove unused file, link to encryption sample
2022-08-25 21:20:31 +02:00
Simon Binder
053206806f
Add encryption example
2022-08-25 21:17:08 +02:00
Shun Min Chang
8fafb94853
Fix the wrong version number on `migration_test`
2022-08-17 16:34:20 +08:00
Simon Binder
9011137c8e
Fix migration code for virtual tables ( #1988 )
2022-08-14 15:01:21 +02:00
Simon Binder
8f6878292a
Migrate to `package:lints`
2022-08-13 23:33:05 +02:00
Simon Binder
83c7c1ab43
Remove deprecated options, re-run build
2022-08-13 15:14:09 +02:00
Simon Binder
b9a605ed25
Allow async mappings from SQL to row classes
...
When existing, custom row classes are used, drift now supports using a
(potentially asynchronous) static method to load them instead of just
a named constructor like before.
Tables are also changed to support the `map` method being async for
cases where that is needed. The same applies to custom queries which
may have to be async now.
2022-08-12 22:55:02 +02:00
Simon Binder
ffeb3ef045
Add foreign key example to migration test
2022-08-10 13:50:00 +02:00
westito
e65c4d15d0
Regenerate database files
2022-08-08 11:30:47 +02:00
Simon Binder
cf95ed6f05
Re-generate migration tests in app example
2022-07-29 18:54:41 +02:00
Simon Binder
0cb3527680
Schema tool: Store whether dates are text
2022-07-26 19:18:17 +02:00
Alexander Wilde
8fe2f24e56
Run tools/generate_all.sh
2022-07-21 18:00:03 +01:00
Simon Binder
3744fa0601
Merge branch 'develop' into refactor-type-system
2022-07-20 22:37:34 +02:00