Simon Binder
a68ec2a73e
Make aggregate expression builder public
2024-04-22 22:18:04 +02:00
Simon Binder
428de9354a
Mention timer caveat in transaction docs
2024-04-22 22:18:03 +02:00
Simon Binder
f9a163532b
Disable third-party warnings in cocoapods project
2024-04-21 18:36:10 +02:00
Simon Binder
aba434e7e0
Clarify join result types in docs
2024-04-21 14:51:03 +02:00
Simon Binder
9bcaeddb3b
Upgrade dev dependencies in drift
2024-04-20 15:35:57 +02:00
Simon Binder
11e31cc653
Prepare 2.17 release
2024-04-20 15:32:17 +02:00
Simon Binder
ac4947f266
Support `INT64` type for bigints in drift files
...
https://github.com/simolus3/drift/issues/2955
2024-04-15 21:18:10 +02:00
Ewan
ca0dee4f83
docs: minimise the copy/think/paste needed to get the minimal impleme… ( #2951 )
...
* docs: minimise the copy/think/paste needed to get the minimal implementation working
* fix: revert tag name & add closing
---------
Co-authored-by: Ewan Nisbet <ewan-git@thatdogmachine.com>
2024-04-14 22:02:55 +02:00
Simon Binder
c6f0fa27aa
sqlparser: Extend support for `IN` expressions
...
This adds support for table names and table-valued function
invocations as right-hand targets in `IN` expressions.
The lint for row values around `IN` expressions is updated to
only report warnings if there's an actual mismatch in the amount
of columns.
Closes https://github.com/simolus3/drift/issues/2948
2024-04-12 17:36:31 +02:00
Simon Binder
74fb269615
Avoid encoding to hex twice
2024-04-06 14:59:52 +02:00
Simon Binder
43b7f72bad
sqlparser: Fix parsing binary literals
2024-04-06 14:48:55 +02:00
David Martos
039838b2ba
Support bytea sql literal in postgres ( #2943 )
2024-04-06 14:37:28 +02:00
Simon Binder
37f120d287
Add setup param to schema verifier
2024-04-05 22:39:05 +02:00
Simon Binder
82123e5cc0
Raise language version in examples
2024-04-04 22:42:08 +02:00
Simon Binder
54eecf7b45
Update js dependency for integration test
2024-04-02 13:40:31 +02:00
Simon Binder
fc7e2ab1e6
Add utility for extension type converters
2024-03-24 14:58:58 +01:00
Simon Binder
e1bdc6bde5
Fix missing commas between type arguments
2024-03-24 14:37:27 +01:00
Jeremiah Ogbomo
ae40dd6d81
Improve check for if postgres session is still open ( #2928 )
2024-03-22 19:43:09 +01:00
Simon Binder
044a0f3980
Allow disabling conflict target ( #2925 )
2024-03-20 22:47:24 +01:00
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