Commit Graph

162 Commits

Author SHA1 Message Date
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
Simon Binder a8c6031fc4
Add documentation comments, fix analysis warnings 2022-07-19 23:01:22 +02:00
Simon Binder 22d5f0a8ae
Fix tests 2022-07-19 22:55:08 +02:00
Simon Binder cf8d2618fa
First attempt to get it running again 2022-07-18 23:28:12 +02:00
Simon Binder a3109b4a6b
Fix query in example app 2022-07-12 17:52:04 +02:00
Simon Binder 116f98269d
Always enable the new SQL generation mode 2022-07-03 21:53:17 +02:00
Simon Binder 2cd77ad8a2
Merge pull request #1916 from simolus3/change-integration-tests-dialect
Change integration tests dialect
2022-07-02 18:11:50 +02:00
westito 27f1305844 Update ios, macos projects 2022-07-02 08:31:17 +02:00
westito 5c4e5e571e Revert dialect changes 2022-07-02 08:30:29 +02:00
Simon Binder a064bb719d
Migrate remaining examples to null-safety 2022-07-01 21:51:33 +02:00
westito 02ad0e8250 Change integration tests' dialect to postgres 2022-06-30 19:04:55 +02:00
Simon Binder c5c67e15a1
Color is non-nullable again now 2022-06-28 23:07:34 +02:00
Simon Binder 1b06fcfc77
Merge branch 'develop' into fix-tests 2022-06-28 23:05:22 +02:00
Simon Binder bfad77788e
Handle nullable converters for compiled queries 2022-06-28 22:34:11 +02:00
Simon Binder 4fae017d36
Fix build config for web worker example 2022-06-28 14:47:32 +02:00
westito 292da80167 Regenerate all files 2022-06-28 13:24:57 +02:00
westito 769de1dfe2 Fix web_worker_example build fail 2022-06-28 08:58:24 +02:00
Alexander Wilde 345faa91c7 TypeConverter mapToDart -> fromSql, mapToSql -> toSql 2022-06-22 23:50:19 +01:00
Simon Binder 429d36ff9c
Example app: Add explanatory comment to copy builder 2022-06-03 23:18:23 +02:00
Simon Binder a604eeddaf
Remove js dep override override in example app 2022-05-29 20:07:41 +02:00
Simon Binder 9e2e9c47be
Upgrade to latest `sqlite3` package in example app 2022-05-04 20:41:15 +02:00
Simon Binder 80c8c86031
Support drift-defined views schema tools (#1813) 2022-04-23 23:31:04 +02:00
Simon Binder 6a47e32afc
Link new cross-platform example in docs 2022-04-08 21:16:46 +02:00
Simon Binder 62a95f6bd4
Write Dart refences into schema files 2022-04-04 22:32:07 +02:00
Simon Binder b56cf96b09
Run drift web tests with WebAssembly 2022-04-04 21:49:05 +02:00
Simon Binder 3898114962
Restructure drift test files 2022-04-03 12:53:58 +02:00
westito ff1912fc07 Merge remote-tracking branch 'simolus3/develop' into unique-constraint
# Conflicts:
#	drift/lib/src/ffi/database.dart
2022-04-02 20:13:44 +02:00
Simon Binder 7c2d95fb30
Use experimental wasm backend in new example 2022-04-02 19:08:33 +02:00
Simon Binder 1a2406ddc1
Add new cross-platform Flutter example 2022-04-02 18:01:10 +02:00
Simon Binder e4671d40f7
Update flutter web worker example too 2022-04-01 23:48:15 +02:00
Simon Binder 6e79a5b58c
Use `package:js` to wrap sql.js library 2022-04-01 23:42:52 +02:00
Simon Binder fc0d30583a
Some maintenance work on examples 2022-04-01 22:39:28 +02:00
Simon Binder 204fbad682
Move examples into top-level folder 2022-04-01 22:11:21 +02:00
Simon Binder b75bd4d5ec
Make mysql example a sub-library that we won't publish 2019-07-24 18:25:59 +02:00
Simon Binder 5f8ab42189
Start to work on MySQL example 2019-07-23 22:16:21 +02:00