Commit Graph

1446 Commits

Author SHA1 Message Date
Simon Binder ccea0a5d36
Don't throw parsing errors for top-level statements 2020-06-24 17:08:13 +02:00
Simon Binder b4aeacdba3
Add tests for errors across isolates 2020-06-23 19:35:31 +02:00
Simon Binder d881659db6
Support flags in regexp (#644) 2020-06-22 22:20:43 +02:00
Simon Binder ec8ee96f12
Fix code in intro to moor files documentation 2020-06-22 21:03:37 +02:00
Simon Binder bccbb3e7a8
Don't require tables on UseMoor or UseDao 2020-06-21 18:19:59 +02:00
Simon Binder 01c3c846ca
Merge pull request #639 from festelo/master
Docs links move /kripken/sql.js ->/sql-js/sql.js
2020-06-19 17:20:40 +02:00
Ilya Beregovskiy a169d7a884 Fix sql-wasm link 2020-06-19 16:44:31 +03:00
Ilya Beregovskiy 20137035be move docs links /kripken/sql.js ->/sql-js/sql.js 2020-06-19 16:28:14 +03:00
Simon Binder ced0b3b5c7
Encrypted moor: Assert non-nullable transactions 2020-06-19 14:13:15 +02:00
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