Simon Binder
a4fe582f25
Collect documentation for 2.0 release
2022-08-13 14:18:17 +02:00
Simon Binder
721b894141
Remove unecessary call / typo ( #1883 )
2022-08-12 23:00:24 +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
799db04daa
Merge pull request #1977 from scheglov/analyzer-4.5.0
...
Require analyzer 4.5.0, stop using deprecated APIs.
2022-08-10 13:51:06 +02:00
Simon Binder
ffeb3ef045
Add foreign key example to migration test
2022-08-10 13:50:00 +02:00
Simon Binder
1edeb4fe45
Merge pull request #1958 from simolus3/fix-toColumns-null-check
...
Remove null check when parameter is not nullable in dart
2022-08-08 22:25:19 +02:00
Simon Binder
4856ba4c5b
Skip complex datetime test on old versions
2022-08-08 22:22:58 +02:00
Simon Binder
eea63cb5c9
Skip some broken datetime tests on the web
2022-08-08 13:59:37 +02:00
Simon Binder
5063afb8a4
Merge pull request #1959 from simolus3/fix-lint-warning
...
Fix lint warnings when strict type check enabled
2022-08-08 13:32:58 +02:00
Simon Binder
d5b8d5f1f6
Update docs license and home page
2022-08-07 17:13:59 +02:00
Simon Binder
a735e91f30
Test to ensure text datetimes preserve millis
2022-08-07 13:35:27 +02:00
Simon Binder
50a65b236a
Upgrade to latest analyzer
2022-08-06 22:11:44 +02:00
Simon Binder
8cc85de5f7
Improve error message for schema difference
2022-08-06 21:35:05 +02:00
Simon Binder
b6f6156407
Support datetime -> string serialization
2022-08-03 20:31:19 +02:00
Simon Binder
b2cb0f6000
Forbid whereSamePrimaryKey for null values ( #1956 )
2022-07-31 23:26:00 +02:00
Simon Binder
c69b34278b
Fix overly long line
2022-07-29 19:05:42 +02:00
Simon Binder
cf95ed6f05
Re-generate migration tests in app example
2022-07-29 18:54:41 +02:00
Simon Binder
10eb6b9a9c
Fix test for collate expressions
2022-07-27 20:46:54 +02:00
Simon Binder
bc61288bed
Support custom collations
2022-07-27 18:01:13 +02:00
Simon Binder
a9026fef3a
Remove DateTimeWeekday
2022-07-26 19:25:59 +02:00
Simon Binder
0cb3527680
Schema tool: Store whether dates are text
2022-07-26 19:18:17 +02:00
Simon Binder
9158c31240
Respect db options in runtime schema validation
2022-07-26 18:33:09 +02:00
Simon Binder
77e7b99f2f
Fix equality for datetime expressions
2022-07-26 18:24:06 +02:00
Simon Binder
080ef7210c
Add RETURNING variants of update and delete
2022-07-25 22:27:57 +02:00
Simon Binder
d79c7e07ba
Lints for probable text datetime misuses
2022-07-25 20:58:39 +02:00
Simon Binder
1ff7ddbd82
Document dates as text on website
2022-07-25 15:26:16 +02:00
Simon Binder
6c0e27b24c
SQL analysis for text datetimes
2022-07-24 19:19:18 +02:00
Simon Binder
68e6deb9c2
Run integration tests on date time expressions
2022-07-24 17:50:54 +02:00
Simon Binder
9eb37ba243
Support text datetimes in expression builder
2022-07-24 17:50:54 +02:00
Simon Binder
44e360e28d
Properly store text date time values
2022-07-24 17:50:54 +02:00
Simon Binder
592e2cdd5d
Add build option for dates as text
2022-07-24 17:50:48 +02:00
Simon Binder
efb4c5f503
Fix deprecation warning
2022-07-23 23:20:07 +02:00
Simon Binder
c1a2e1ec43
Remove test for the native database tracker
...
Ideally, finalizers added in the `sqlite3` package should replace this
functionality. Currently, it seems like finalizers are not triggered by
hot restarts which is unfortunate, but we also can't test the feature
reliably since it now causes databases to be closed twice (once by
the test and once because sqlite3's finalizer runs).
2022-07-23 23:10:52 +02:00
Simon Binder
867f8cbfed
Remove drift_dev's ColumnType
2022-07-21 21:12:55 +02:00
Simon Binder
4d9b505703
Add Expression.equalsNullable
2022-07-21 21:12:36 +02:00
Simon Binder
c0da411db4
Merge pull request #1937 from North101/develop
...
Fix generated fromJson for nullable columns with a JsonTypeConverter
2022-07-21 21:12:21 +02:00
Simon Binder
3744fa0601
Merge branch 'develop' into refactor-type-system
2022-07-20 22:37:34 +02:00
Simon Binder
626d99144c
Add changelog entry
2022-07-20 22:29:21 +02:00
Simon Binder
29eb0a2d79
Fix bad rebase
2022-07-20 21:54:19 +02:00
Simon Binder
3564d725a9
Merge pull request #1932 from ValentinVignal/const-constructor
...
Add a `const` constructor to non mutable classes
2022-07-20 21:31:49 +02:00
Simon Binder
0c2ebb6c4d
Don't generate variables in CREATE TABLE ( #1936 )
2022-07-20 21:28:47 +02:00
Simon Binder
9325af9c0e
Fix another test in drift_dev
2022-07-19 23:23:43 +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
8d840f3eb3
Remove includeJoinedTableColumns entirely
2022-07-16 12:07:12 +02:00
Simon Binder
b95e70b438
Update Stream marketing URL
2022-07-16 11:53:18 +02:00
Simon Binder
ef3ee418d4
Update docs on custom SQL
2022-07-16 11:51:21 +02:00
Simon Binder
8cc318f258
Merge pull request #1926 from North101/develop
...
Make `includeJoinedTableColumns` default to false for `selectOnly`
2022-07-13 09:46:56 +02:00
Simon Binder
909fd25896
Add changelog entry
2022-07-13 08:23:33 +02:00
Simon Binder
a3109b4a6b
Fix query in example app
2022-07-12 17:52:04 +02:00
Simon Binder
1af6bb78d9
Start removing the SqlTypeSystem class
2022-07-12 17:04:01 +02:00
Simon Binder
7d940f8fd8
Fix more typos
2022-07-11 21:49:52 +02:00
Simon Binder
38c5c31413
Fix typo in json type converter docs
2022-07-11 18:04:41 +02:00
Simon Binder
d0e1d17ed0
Rename docs package to drift_docs
2022-07-10 18:02:26 +02:00
Simon Binder
b537749f22
Use prepared snippets for isolates docs
2022-07-10 17:58:28 +02:00
Simon Binder
5332b8680b
Doc snippets: Link to relevant dartdoc page
2022-07-10 14:27:56 +02:00
Simon Binder
38f343c5e7
Merge pull request #1921 from North101/develop
...
More DateTime functions and changes
2022-07-05 22:08:03 +02:00
Simon Binder
52a5907e43
Integration tests for more date time modifiers
2022-07-05 21:51:50 +02:00
Simon Binder
5988408ac7
Docs CI: Run pub get for drift as well
2022-07-05 10:24:09 +02:00
Simon Binder
12b855af9a
Docs: Strip leading whitespace from snippets
2022-07-04 23:45:13 +02:00
Simon Binder
8a0610a827
Docs CI: Fix generating drift's API documentation
2022-07-04 20:21:20 +02:00
Simon Binder
c6b7a1c604
Merge pull request #1920 from North101/develop
...
add `time` and `datetime` to `DateTimeExpressions`
2022-07-04 20:02:09 +02:00
Simon Binder
1826311ec2
Add tests
2022-07-04 19:57:04 +02:00
Simon Binder
388b31e9ea
Remove some moor references in drift_dev
2022-07-03 22:20:24 +02:00
Simon Binder
116f98269d
Always enable the new SQL generation mode
2022-07-03 21:53:17 +02:00
Simon Binder
19a35e8e1c
Merge branch 'latest-release' into develop
2022-07-02 21:05:50 +02:00
Simon Binder
3e82761caa
Prepare 1.7.1 hotfix
2022-07-02 20:53:25 +02:00
Simon Binder
52204b86b2
Dispose statements after exceptions ( #1917 )
2022-07-02 20:50:59 +02:00
Simon Binder
fb0a6504da
Document how to run postgres test
2022-07-02 20:48:51 +02:00
Simon Binder
626ef29eff
Dispose statements after exceptions ( #1917 )
2022-07-02 19:24:19 +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
Simon Binder
6049d1aaa0
Add test for #1902
2022-07-01 22:56:25 +02:00
Simon Binder
a064bb719d
Migrate remaining examples to null-safety
2022-07-01 21:51:33 +02:00
Simon Binder
52c07c9d3f
Remove support for non-nnbd code
2022-07-01 21:51:14 +02:00
Simon Binder
9014fa82a8
Merge pull request #1915 from North101/develop
...
Fix non-null JsonTypeConverter
2022-06-29 13:57:17 +02:00
Simon Binder
46454c28fb
Merge pull request #1912 from simolus3/fix-tests
...
Fix tests
2022-06-28 23:21:18 +02:00
Simon Binder
e5b18412db
Merge pull request #1913 from igbenic/develop
...
Logging long debug messages
2022-06-28 23:21:04 +02:00
Simon Binder
1120317117
Temporarily disable postgres tests
2022-06-28 23:13:13 +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
Simon Binder
440753d5e3
Fix false-positive in duplicate table warning
2022-06-27 08:48:18 +02:00
Simon Binder
c74f5d4cb4
Document nested transactions
2022-06-25 15:51:28 +02:00
Simon Binder
4959ec6235
Fix wasm and postgres integration tests
2022-06-25 15:07:01 +02:00
Simon Binder
e109cf3564
Update integration test architecture
2022-06-25 14:06:56 +02:00
Simon Binder
48830b57aa
drift_sqflite: Support nested transactions
2022-06-25 13:10:02 +02:00
Simon Binder
e37daa3b95
Remote: Support nested transactions
2022-06-25 12:28:37 +02:00
Simon Binder
8def7055a0
Initial support for nested transactions
2022-06-24 20:10:06 +02:00
Simon Binder
5317d0a33b
Upgrade to new analysis plugin API
2022-06-23 22:46:23 +02:00
Simon Binder
8a68527fee
Merge remote-tracking branch 'North101/develop' into develop
2022-06-23 21:01:07 +02:00
Simon Binder
cf1e94d384
Automatically make some converters nullable
2022-06-23 20:56:56 +02:00
Simon Binder
e874b78698
Fix analysis errors
2022-06-23 00:13:53 +02:00
Simon Binder
06af930941
Explicit null-aware types on type converters
2022-06-22 23:56:15 +02:00
Simon Binder
84cf9b82c3
Nullable date aggregates
2022-06-22 12:18:47 +02:00
Simon Binder
3331d625b0
Merge pull request #1896 from cnmade/patch-1
...
Using read<int> instead readInt
2022-06-19 14:29:13 +02:00
Simon Binder
81c59c0b99
Fix column references in subquery ( #1894 )
2022-06-17 18:19:23 +02:00
Simon Binder
4af9aed190
Fix example for subquery expressions ( #1892 )
2022-06-17 17:53:56 +02:00
Simon Binder
c9bd7236c6
Resolve unixepoch SQL function as datetime
2022-06-16 18:29:13 +02:00