Till Friebe
7a652e5ac6
Apply feedback
2020-06-08 18:17:04 +02:00
Till Friebe
503f2e023e
Add hashcode and equals to value
...
This simplifies testing, as now one can compare like this:
```dart
expect(Value(1), Value(1));
```
Or a realistic example:
```dart
final capturedArgument = verify(fooDao.insert(captureAny)).captured.first.createdAt;
expect(capturedArgument, Value(DateTime(0)));
```
A test is still missing which would look something like this:
```
test('values support hash and equals', () {
const first = Value(0);
final equalToFirst = Value(0);
const different = Values.absent());
expect(first.hashCode, equalToFirst.hashCode);
expect(first, equals(equalToFirst));
expect(first, isNot(equals(different)));
expect(first, equals(first));
});
```
I'm not sure where the test is supposed to be.
2020-06-08 10:11:20 +02:00
Simon Binder
32cae11aa2
Better docs for useColumns in join
2020-06-07 11:22:48 +02:00
Simon Binder
cbde252b50
moor_ffi: Assert right parameter count ( #608 )
2020-06-05 13:12:07 +02:00
Simon Binder
ee6e09699e
Error when using autoIncrement and primaryKey override
2020-06-04 20:50:43 +02:00
Simon Binder
835e31c8ed
Add `this.` prefix to avoid name clashes ( #613 )
2020-06-03 19:07:53 +02:00
Simon Binder
f6ab5f64a8
Option to generate mutable data classes ( #551 )
2020-06-02 22:26:59 +02:00
Simon Binder
896d62d76c
Support nested CASE expressions ( #609 )
2020-06-02 12:05:02 +02:00
Simon Binder
9f651b3ce9
Better support for changing analysis sessions
2020-06-02 11:48:16 +02:00
Simon Binder
bd32d470ea
moor_ffi: Support nullable args to REGEXP ( #610 )
2020-05-31 17:48:37 +02:00
Simon Binder
3e26b0fba2
Merge branch 'develop' of gh:simolus3/moor into develop
2020-05-30 12:35:31 +02:00
Simon Binder
4e2379b2ed
Throw error on invalid argument type ( #607 )
2020-05-30 12:35:12 +02:00
Simon Binder
46a573ba7c
Merge pull request #605 from friebetill/develop
...
Add toString to companions
2020-05-30 12:08:56 +02:00
Till Friebe
1bab7f11d2
Add toString to companions
...
This is very useful for unit tests, because we can see directly what
values a companion has.
2020-05-28 18:52:32 +02:00
Simon Binder
074c9d973d
Don't crash when daos can't be read ( #601 )
2020-05-28 11:17:03 +02:00
Simon Binder
231efe26a7
Run integration tests for encrypted_moor as well
2020-05-28 11:14:09 +02:00
Simon Binder
7ad8c619f9
moor_flutter: Don't upgrade schema when migration throws ( #584 )
2020-05-28 10:40:33 +02:00
Simon Binder
fee32fc302
Start with transformers in sqlparser
2020-05-24 22:30:25 +02:00
Simon Binder
01e5a47189
Make utility visitor methods an extension
2020-05-24 19:53:36 +02:00
Simon Binder
e772ca0225
Support views in ReferencedTablesVisitor
2020-05-23 15:27:58 +02:00
Simon Binder
9be0a9f79c
Fix result sets generating twice
2020-05-22 20:32:47 +02:00
Simon Binder
be501c277e
Merge pull request #589 from kuhnroyal/fix/min-analyzer-version-missmatch
...
Fix/min analyzer version missmatch
2020-05-22 20:21:46 +02:00
Peter Leibiger
1da495a745
Fix generator required minimum analyzer version
...
`languageVersionMajor/Minor` was added in analyzer version 0.39.5 and is used since 4d463dd145
2020-05-22 18:10:29 +02:00
Simon Binder
3db0fd57f1
Update changelog to include views in sqlparser
2020-05-22 17:33:34 +02:00
Simon Binder
5cb0cd464c
Merge branch 'mqus-views' into develop
2020-05-22 17:29:36 +02:00
Simon Binder
8aca8db941
Merge branch 'views' of https://github.com/mqus/moor into mqus-views
...
# Conflicts:
# sqlparser/test/analysis/schema/from_create_table_test.dart
2020-05-22 17:29:04 +02:00
Simon Binder
b8335b1222
Mention custom result class names in changelog
2020-05-22 17:25:30 +02:00
mqus
98c17765bb
Merge pull request #1 from simolus3/mqus-views
...
Finish analysis for views
2020-05-22 14:07:19 +02:00
Simon Binder
571bae81f1
Document custom result class names
2020-05-21 20:52:58 +02:00
Simon Binder
3955ae8eff
Generated code for custom table names
2020-05-21 20:42:50 +02:00
Simon Binder
8a98b42e62
Optimize row mapping when there is a matching table
2020-05-21 20:21:03 +02:00
Simon Binder
513881b13f
Always use a lambda for select mapping
2020-05-21 19:37:54 +02:00
Simon Binder
6c18eb22fa
Initial tests for custom result classes
2020-05-21 18:59:03 +02:00
Simon Binder
5d93f9fcf9
Analysis support for custom result sets
2020-05-21 15:22:49 +02:00
Simon Binder
f5f6cbeffe
Remove protected and visibleForTesting annotations from QueryEngine
2020-05-20 18:28:45 +02:00
Simon Binder
cbf8191e5d
Fix table sorting for tables referencing themselves ( #586 )
2020-05-20 13:41:40 +02:00
Simon Binder
58ea47a4c2
Add missing return to resultNum
2020-05-19 20:58:52 +02:00
Markus Richter
5596c30cc7
Support subquery expressions in types2 ( #583 )
2020-05-19 19:42:36 +02:00
Simon Binder
b5cc9b974d
Release update to pub
2020-05-18 22:07:19 +02:00
Simon Binder
ec1072dce8
Merge branch 'develop'
...
# Conflicts:
# moor/CHANGELOG.md
# moor/pubspec.yaml
# moor/test/batch_test.dart
2020-05-18 21:16:43 +02:00
Simon Binder
a2117c593c
Merge branch 'master' of gh:simolus3/moor
2020-05-18 21:13:49 +02:00
Simon Binder
65f02cb22c
Prepare 3.1 release of moor, 0.6 or moor_ffi, 0.9 of sqlparser
2020-05-18 20:45:48 +02:00
Simon Binder
ba7fedb4c4
Fix generator tests that were failing due to a stronger assert
2020-05-17 20:26:21 +02:00
Simon Binder
52fd09c041
Fix reading a column without datatype
2020-05-17 15:18:25 +02:00
Simon Binder
f8a516b51a
Use emitsThrough instead of emits
2020-05-17 15:08:24 +02:00
Simon Binder
63e0d61ccb
Fix resolving urls in common backend
2020-05-17 15:00:14 +02:00
Simon Binder
9bb83605e9
Don't crash when analyzing incomplete CREATE TABLE statement ( #578 )
2020-05-17 14:42:48 +02:00
Simon Binder
4d463dd145
Emit a warning if a project's language version is too low ( #577 )
2020-05-17 14:20:18 +02:00
Simon Binder
6b88385755
Rename test files to end with _test.dart
2020-05-16 19:49:00 +02:00
Simon Binder
a1304c537f
Formatting
2020-05-16 19:42:33 +02:00