Commit Graph

171 Commits

Author SHA1 Message Date
Simon Binder c7fdf44a6e
Support transactions and batches for the isolate api 2019-11-05 20:22:55 +01:00
Simon Binder 98470109cf
Remove built_value(_generator) dependency from generator 2019-11-04 17:09:21 +01:00
Simon Binder 9f1aafbcef
Expand batch api to update statements (#221) 2019-11-02 21:48:37 +01:00
Simon Binder f3221e09bc
Support stream queries across isolates 2019-10-30 21:10:53 +01:00
Simon Binder a2c7c11abf
Support executing queries over isolates 2019-10-30 20:32:08 +01:00
Simon Binder 5cc1f85441
Inject mock streams via .connect constructor 2019-10-30 19:25:26 +01:00
Simon Binder e8b4f8347c
Refactor: Put all query gen code into one compilation unit 2019-10-24 21:54:36 +02:00
Simon Binder cf671ac56b
Expand documentation, support DISTINCT selects (#205) 2019-10-24 21:12:31 +02:00
Simon Binder ccf208b329
Support additional insert modes 2019-10-21 17:14:58 +02:00
Simon Binder 1f8dfbe887
Call doWhenOpened for customStatement (#199) 2019-10-20 11:39:24 +02:00
Simon Binder fd27c878d4
Fix errors in sqlparser that were swallowed before 2019-10-19 16:41:30 +02:00
Simon Binder 263004fe7b
Option to use the column name as json key in moor files
Closes #176
2019-10-17 21:44:20 +02:00
Simon Binder 438f979ed1
Use a mixin for auto increment columns in test file 2019-10-11 22:12:28 +02:00
Simon Binder e66eaa6127
Merge pull request #181 from minia68/master
Make transaction return a value
2019-10-10 17:06:05 +02:00
Ryzhkov Sergey c0d75f1654 make transaction return value 2019-10-10 16:52:09 +03:00
Simon Binder 47f8dbb90d
Make streams emit cached data for multiple listeners
Fixes #178
2019-10-09 22:39:19 +02:00
Simon Binder 5510a90583
Fix warnings (2.6-dev SDK), escape \r, constant workaround 2019-10-09 19:48:52 +02:00
Simon Binder 6e32e37dd7
Remove unnecessary type parameter on createCompanion 2019-10-05 22:41:23 +02:00
Simon Binder ed03bff4c2
Recognize boolean and datetime column in moor 2019-10-05 21:24:41 +02:00
Simon Binder fb7c3c2a9a
Dart API for between expressions (closes #159) 2019-10-05 13:38:34 +02:00
Simon Binder b0d69f346f
Make StartWithValueTransformer subscribe in same microtask 2019-10-03 11:39:12 +02:00
Simon Binder c2845cb248
Invalidate cached stream data on update (#166) 2019-10-03 11:28:44 +02:00
Simon Binder 869aaada90
Unit tests for row.read* 2019-09-29 16:33:09 +02:00
Simon Binder 4137f6cffa
Write unit tests for DelegateDatabase 2019-09-29 16:21:09 +02:00
Simon Binder 308167dc12
Support mapping BLOBs to literals 2019-09-29 15:18:11 +02:00
Simon Binder b684a7be69
Replace imports of test_api with test 2019-09-26 22:52:20 +02:00
Simon Binder b62ed05a87
Make the lazy executor pass on the GeneratedDatabase 2019-09-20 20:46:54 +02:00
Simon Binder 87c50de1e1
Add LazyDatabase wrapper to create a database async 2019-09-20 20:23:35 +02:00
Simon Binder 161f7c0203
Optionally override hashCode and equals in result sets 2019-09-20 19:31:36 +02:00
Simon Binder 00b2956b35
Allow data class names to be overridden in sql
Closes #147
2019-09-17 15:23:24 +02:00
Simon Binder 25ceda3505
Report lints about invalid Dart Templates in SQL 2019-09-15 11:59:47 +02:00
Simon Binder 5b6bd1db37
Fix some queries with Dart templates not compiling 2019-09-15 10:51:35 +02:00
Simon Binder 928c9832b5
Move ffi bindings into new moor_ffi package 2019-09-14 20:54:13 +02:00
Simon Binder 9e498fb575
Merge branch 'ffi' into develop
# Conflicts:
#	moor/lib/src/runtime/executor/helpers/engines.dart
2019-09-14 19:23:37 +02:00
Simon Binder e89f9227ab
Don't write ResultSet classes for single-column queries
Fixes #148
2019-09-14 19:03:52 +02:00
Simon Binder 54c3dbc4b8
Write variables created in a dart template 2019-09-14 17:48:17 +02:00
Simon Binder 29c0cdaf3f
Write integration test for Dart templates 2019-09-14 16:48:51 +02:00
Simon Binder 349b245089
Write implementation for Dart placeholders 2019-09-14 16:42:24 +02:00
Simon Binder bf7c9feddf
Write parameter declarations for Dart placeholders 2019-09-14 12:26:58 +02:00
Simon Binder 7a8191fe7e
Fix moor queries not expanding array vars properly 2019-09-14 09:27:36 +02:00
Simon Binder 138652fdc4
Remove DiffUtil and MoorAnimatedList 2019-09-13 21:06:11 +02:00
Simon Binder c8ae99b52e
Breaking changes for the upcoming version
1. Removes transaction parameter in callbacks, custom queries
2. Removes MigrationStrategy.onFinished
2019-09-13 21:04:15 +02:00
Simon Binder 3097bb0591
Don't write get/watch methods for queries declared in moor 2019-09-13 20:23:48 +02:00
Simon Binder 1130101f1f
Support writing string literals from Constant<String>
Fixes #137
2019-09-06 22:37:15 +02:00
Simon Binder 867f953107
Merge branch 'develop' into refactor-generator
# Conflicts:
#	moor_generator/lib/src/analyzer/sql_queries/lints/linter.dart
2019-09-03 19:35:23 +02:00
Simon Binder 35fcdb2c0f
Implement error handling in the refactored builder 2019-09-03 19:30:05 +02:00
Simon Binder 4af370f0cb
Tests: Verify that an executor is open when used. 2019-08-30 19:32:44 +02:00
Simon Binder 3cb00a4b31
Remove unnecessary "this." in insert companion constructor 2019-08-29 16:33:15 +02:00
Simon Binder 241baed0c3
Generate query implementations for insert statements 2019-08-29 16:27:55 +02:00
Simon Binder a4b256f8a5
Support custom insert statements at runtime 2019-08-29 15:52:29 +02:00