Commit Graph

1261 Commits

Author SHA1 Message Date
Simon Binder 6e20a68f6e
Merge pull request #734 from saladthieves/patch-1
Fix documentation typo / wording
2020-07-26 20:08:06 +02:00
Egide Muhire 0d2512c510
Fix documentation typo / wording 2020-07-26 13:48:35 +02:00
Simon Binder ba987b57b1
Release moor_ffi version 0.7.1 2020-07-08 16:04:10 +02:00
Simon Binder 110a8d9e53
Add empty Android plugin class to moor_ffi 2020-07-08 16:02:20 +02:00
Simon Binder ac20d9b324
Fix some pub warnings that appeared during publishing 2020-06-28 21:17:33 +02:00
Simon Binder c80235799c
moor_generator: Properly release analyzer during tests 2020-06-28 18:48:32 +02:00
Simon Binder 3923b815fd
Merge branch 'master' into develop
# Conflicts:
#	moor_generator/pubspec.yaml
2020-06-28 17:34:00 +02:00
Simon Binder 3a558c3d1d
Prepare moor 3.2, moor_ffi 0.7 release 2020-06-28 17:27:32 +02:00
Simon Binder 2897dd4ae0
Parse NULLS FIRST and NULLS LAST 2020-06-27 14:38:16 +02:00
Simon Binder 5136412573
Parse DEFERRABLE clauses on foreign key constraints 2020-06-27 14:26:09 +02:00
Simon Binder ab4b1d75ff
Escape keywords in moor_generator tests 2020-06-27 13:06:29 +02:00
Simon Binder 211b6fa2e9
sqlparser: Support remaining sqlite keywords 2020-06-26 22:54:42 +02:00
Simon Binder 34e827b0b5
Escape column names in primary key (#661) 2020-06-25 20:03:05 +02:00
Simon Binder e6a51b5ac4
moor_ffi: Build with latest sqlite3 and rtree 2020-06-24 17:47:14 +02:00
Simon Binder d5c6467e37
Finish documentation, remove unnecessary null hint 2020-06-24 17:11:41 +02:00
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