Simon Binder
c342b29b33
Fix sqlparser crashes related to unknown tables
2020-06-19 13:43:16 +02:00
Simon Binder
5c9c175c85
Merge branch 'develop' of gh:simolus3/moor into develop
2020-06-17 23:00:56 +02:00
Simon Binder
5923f83e31
Merge pull request #634 from mqus/allow-backquote-escaping
...
Sqlparser: Allow Backticks(`) for escaping identifiers
2020-06-17 23:00:23 +02:00
Markus Richter
85ac74f69f
add suggested test(s)
2020-06-17 21:22:03 +02:00
Markus Richter
f298a10636
Allow Backticks(`) for escaping identifiers
...
This is sqlite-conformant behaviour according to https://sqlite.org/lang_keywords.html .
2020-06-17 17:20:44 +02:00
Simon Binder
374266b70b
Mark beforeOpen as nonVirtual
2020-06-16 14:25:59 +02:00
Simon Binder
1e8a1de6c0
sqlparser: Add visit methods for Queryable subclasses
2020-06-16 14:25:31 +02:00
Simon Binder
5c6331e486
sqlparser: Make InsertSource an AstNode
2020-06-15 17:45:28 +02:00
Simon Binder
7ae3783473
sqlparser: Make TriggerTarget an ast node
2020-06-15 17:21:49 +02:00
Simon Binder
fff396cd7b
Docs: Note broken Flutter gradle setups and how to fix them
2020-06-13 12:30:01 +02:00
Simon Binder
db3387736a
List supported column types in website ( #624 )
2020-06-11 18:37:14 +02:00
Simon Binder
d089edd4c9
Migrate back to analyzer_plugin package ( #623 )
2020-06-11 18:05:23 +02:00
Simon Binder
4d62b862e7
Merge pull request #619 from friebetill/add-hashcode-and-equals-to-value
...
Add hashcode and equals to value
2020-06-08 19:56:37 +02:00
Till Friebe
a846b6c425
Add another test
2020-06-08 18:36:06 +02:00
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