Commit Graph

3545 Commits

Author SHA1 Message Date
Simon Binder 7c0c52cdfe
Apply serialization encoding to result values 2024-03-20 22:27:09 +01:00
Simon Binder e90c3c33a6
Add clarifying comment to partial database class 2024-03-14 18:55:38 +01:00
Stefano La Terra c231d25e59 Update select.md
Fix small typo in description
2024-03-09 12:56:26 +01:00
Simon Binder 29303100b8
Support custom names for drift views 2024-03-08 18:14:48 +01:00
Simon Binder 78a05fdf0b
Merge pull request #2913 from ValentinVignal/drift-dev/name-the-companion-class
feat: Allow to name companion classes
2024-03-07 21:37:21 +01:00
ValentinVignal 304d3adafd
refactor: Make enforcedName nullable 2024-03-07 10:22:02 +08:00
ValentinVignal ef274c1ac2
docs: Update changelog 2024-03-07 09:57:09 +08:00
ValentinVignal 27488cf301
docs: Remove unrelated macro 2024-03-07 09:54:54 +08:00
ValentinVignal 113a693403
Merge remote-tracking branch 'upstream/develop' into drift-dev/name-the-companion-class
# Conflicts:
#	drift_dev/test/writer/data_class_writer_test.dart
2024-03-07 09:54:05 +08:00
ValentinVignal 6b1f54d647
test: Add a test with a custom companion name and a default data name 2024-03-07 09:52:57 +08:00
Simon Binder 914763b47a
Document sql column name builder option 2024-03-06 20:56:03 +01:00
Simon Binder 06852f0ec8
Merge pull request #2910 from ValentinVignal/drift-dev/Add-use_sql_column_name_as_json_key
feat: Add option `use_sql_column_name_as_json_key`
2024-03-06 20:52:08 +01:00
ValentinVignal d0ff1f29d6
test: Add a test with overridden companion classes 2024-03-06 21:00:26 +08:00
ValentinVignal d768ceeb1a
feat: Name companion class 2024-03-06 21:00:13 +08:00
ValentinVignal be70907e81
test: Add tests 2024-03-06 20:43:14 +08:00
ValentinVignal 707eb72b07
feat: Add option use_sql_column_name_as_json_key 2024-03-05 21:27:32 +08:00
Dave Hole ca0c70eac9 Add test to ensure that generated expressions support dialect-aware custom types 2024-03-05 11:47:25 +01:00
Dave Hole e4231571b8 Check for UserDefinedSqlType, not CustomSqlType
Variable is expecting UserDefinedSqlType and other packages (ElectricDart) implement UserDefinedSqlType instead of CustomSqlType, so these type checks are missed.
2024-03-05 11:47:25 +01:00
Luna 1e7af307a9 Fixes typo in migration.dart 2024-03-03 16:32:54 +01:00
Simon Binder 863dbb61a9
Avoid picking wrong import alias
Closes #2904
2024-02-29 18:08:51 +01:00
Simon Binder 98fd6a0ef0
Add recommended build options for drift postgres 2024-02-25 00:06:12 +01:00
Simon Binder 417c2c1207
Prepare release 2024-02-24 23:17:54 +01:00
Simon Binder f179fe30a0
Update dependencies in devtools extension 2024-02-24 23:14:27 +01:00
Simon Binder 54e205af51
Add integration tests for web migrations 2024-02-24 12:45:19 +01:00
Simon Binder d1d2b7ffe5
Add `Value.absentIfNull` 2024-02-24 12:20:09 +01:00
Simon Binder fe0df6d69c
Add substrExpr to query builder 2024-02-24 12:12:05 +01:00
Simon Binder f9d5443a8e
Migrate wasm internals to new interop 2024-02-22 17:23:57 +01:00
Simon Binder 27877a72e9 Clarify schema introspection update snippet 2024-02-21 10:49:36 +01:00
Simon Binder a26cc44aaf
Add example for reflective update 2024-02-19 22:16:19 +01:00
Simon Binder 4fa75cb30b
Fix new analysis warnings from Dart 3.3 2024-02-19 21:46:55 +01:00
Simon Binder d7a26a6a9a
Test variable bindings through isolate dialect
Regression test for #2894
2024-02-19 21:28:03 +01:00
Simon Binder 364450d26a
Add docs page on synchronization 2024-02-15 00:12:01 +01:00
Simon Binder 11a9b14572
Don't cache explain statements (#2464) 2024-02-13 22:53:00 +01:00
Simon Binder ae4d2d35f3
Remove moor reference from readme 2024-02-13 22:32:05 +01:00
Simon Binder 4eaeaab410
Fix typo in wasm docs 2024-02-13 22:31:56 +01:00
Simon Binder 2d00149cb9
Avoid iterating joined columns on every row 2024-02-12 22:30:08 +01:00
Simon Binder 30f30ba313
Don't include stack trace in devtools error UI 2024-02-12 22:01:32 +01:00
Simon Binder e1f7aa3be3
Fix crash in devtools schema validator (#2888) 2024-02-12 22:00:20 +01:00
Simon Binder fe578223af
Provide comparable expressions for pg time values 2024-02-10 00:33:04 +01:00
Simon Binder 326434cd45
Fix docs tests as well 2024-02-08 22:05:18 +01:00
Simon Binder dc595eb3a2
Fix schema tests
We don't support executors changing their dialect at runtime.
2024-02-08 21:58:30 +01:00
Simon Binder 4912bad292
Avoid async overhead for sync reads 2024-02-08 21:44:46 +01:00
Simon Binder 882aad1e65
Update docs on sqlcipher flutter libs 2024-02-07 22:29:09 +01:00
Simon Binder eb5ff82be1
Add sponsorship links to readme 2024-02-07 22:11:25 +01:00
Simon Binder bca94780f3
Add json group array and object to query builder 2024-02-06 23:10:56 +01:00
Simon Binder 2bc01adeaa
Support table function syntax for virtual tables
Closes #2877
2024-02-03 18:28:23 +01:00
Simon Binder 0877e761e4
Create stack trace across remote isolates 2024-02-03 17:09:33 +01:00
Simon Binder 7f7d2ab1b0
Run statements in correct context 2024-02-03 14:31:58 +01:00
Simon Binder 0ec19f4705
Block database after error in migration 2024-01-31 23:41:25 +01:00
Simon Binder af55bd0f92
Add multi-package example 2024-01-31 00:26:36 +01:00