Commit Graph

1722 Commits

Author SHA1 Message Date
Simon Binder 5f7c20d4eb
Allow named constructors in custom row classes 2021-05-09 12:42:02 +02:00
Simon Binder e05e8fe07e
Add min, max and avg for date times (#1182) 2021-05-07 13:46:13 +02:00
Simon Binder cfd187d17c
Document Insertable placeholders 2021-05-06 22:44:27 +02:00
Simon Binder 258512e044
Support dart placeholders for inserts 2021-05-06 22:35:57 +02:00
Simon Binder 382ed71204
Add insertReturning 2021-05-06 18:19:01 +02:00
Simon Binder 43fea9bc2d
Integration test for RETURNING 2021-05-06 17:39:59 +02:00
Simon Binder bbef0d6048
Fix test 2021-05-06 17:29:31 +02:00
Simon Binder 0e4541a987
Generate non-nullable nested result sets 2021-05-06 17:20:13 +02:00
Simon Binder 4f2268410e
Migrate VM and web integration tests 2021-05-06 16:50:31 +02:00
Simon Binder 6559f67f45
Upgrade sql.js 2021-05-06 16:37:05 +02:00
Simon Binder ea5a9322a2
Test to reproduce #1179 2021-05-06 14:34:43 +02:00
Simon Binder b6a2fcd603
Copy list in transformChildren 2021-05-05 19:46:13 +02:00
Simon Binder 1de5479d60
Add explicit aliases with new codegen 2021-05-04 21:00:28 +02:00
Simon Binder c5d696a9eb
Report error when tables can't be read 2021-05-03 18:06:19 +02:00
Simon Binder 878af3add8
Support abstract tableName getter (#1172) 2021-05-03 12:31:20 +02:00
Simon Binder adb27d056b
Start phasing out SqlTypeSystem 2021-04-25 16:14:33 +02:00
Simon Binder eb5196e9e8
Use companions in custom row classes 2021-04-25 15:21:43 +02:00
Simon Binder df7f1fb051
Docs: Update isNull / isNotNull 2021-04-25 15:12:55 +02:00
Simon Binder 3d6537ccfb
Avoid deprecated analyzer apis 2021-04-21 20:39:08 +02:00
Simon Binder 17f43bc9fc
Parse RAISE expressions (#1154) 2021-04-21 20:29:50 +02:00
Simon Binder 67f7e269e0
Lift parser.dart out of singleton dir 2021-04-21 19:59:18 +02:00
Simon Binder acd452401b
Publish 4.2.2 of moor_generator 2021-04-21 11:09:49 +02:00
Simon Binder 852523a5da
Expand version range for build_config 2021-04-21 11:07:40 +02:00
Simon Binder 8b5d5a9f6c
Check types for existing row classes 2021-04-20 22:34:11 +02:00
Simon Binder 885c63e66e
Merge branch 'stream-cancellations' into develop 2021-04-19 21:39:10 +02:00
Simon Binder 925080bd35
Improve cancellations, test with switchMap 2021-04-15 20:52:43 +02:00
Simon Binder fd18984cae
Fix formatting issues in CI 2021-04-13 22:30:19 +02:00
Simon Binder 68bef5d0c4
Document required parameters 2021-04-13 22:20:36 +02:00
Simon Binder 602212f99d
Support REQUIRED annotation for query vars 2021-04-13 22:14:12 +02:00
Simon Binder 51d5ada5c9
Fix moor files importing the original Dart source 2021-04-12 12:01:43 +02:00
Simon Binder 1e962312ca
Improve UX when importing part files (#1136) 2021-04-11 19:56:13 +02:00
Simon Binder 10266ed7a6
Remove moor-specific nodes from ast megalib 2021-04-11 16:43:35 +02:00
Simon Binder 8d625cc13b
Initial documentation for custom row classes 2021-04-10 13:01:24 +02:00
Simon Binder 7885dd0a4f
Add changelog entry for custom row classes 2021-04-09 23:35:58 +02:00
Simon Binder 6bbff77271
Rename to @CustomRowClass 2021-04-09 23:33:58 +02:00
Simon Binder 6682c1f909
Initial support for custom data classes 2021-04-09 22:59:41 +02:00
Simon Binder 65cdce342d
Prepare api for custom data classes 2021-04-09 21:17:28 +02:00
Simon Binder 58fdda482f
Add caseMatch to build CASE WHEN 2021-04-04 21:37:32 +02:00
Simon Binder a3a64419b8
Merge pull request #1129 from micimize/single_selectable
Break Selectable methods into smaller interfaces based on return type.
2021-04-04 20:33:04 +02:00
micimize 03f9c03ec7
standardize docstrings 2021-04-04 11:28:52 -05:00
micimize fb2423c28f
use arrow functions and entry* naming for singletons 2021-04-04 11:25:15 -05:00
micimize 7f83898d00
normalize example methods based on docs elsewhere 2021-04-04 11:13:10 -05:00
Michael Joseph Rosenthal eb0c5da412
Merge branch 'develop' into single_selectable 2021-04-04 11:04:34 -05:00
micimize bb38169803
Selectable refinement: add docs, explanations, and examples 2021-04-04 11:02:49 -05:00
Simon Binder 133b7c652f
Fix generation for placeholders before arrays 2021-04-03 22:23:37 +02:00
micimize 720929e38e
fix path_provider dead link 2021-04-02 21:58:07 -05:00
micimize 2db108529f
break Selectable methods into smaller interfaces based on return type.
This makes it so users can expose more refined/foolproof apis to their application:

```dart
extension TaskMethods on Task {
  /// won't make mistakes like using getSingle when using
  SingleOrNullSelectable<CalendarEvent> get event =>
      db.calendarEvents.forTask(this);

  /// autocomplete ignores getSingle, etc
  MultiSelectable<Metric> get metrics =>
      db.metrics.forTask(this);
}
```
2021-04-02 21:26:18 -05:00
Simon Binder 9b6b5d1b69
Make rowid aliases non-nullable (#1128) 2021-04-02 21:54:31 +02:00
Simon Binder 12ab64a33e
Support cancellations in moor_flutter 2021-04-01 17:43:23 +02:00
Simon Binder cc93fa8238
Fix nullability issues with cancellations 2021-04-01 17:29:03 +02:00