Commit Graph

90 Commits

Author SHA1 Message Date
David Martos 2bcd51f437 The onUpgrade callback in the moor migrator was not being fired when downgrading a database using moor_flutter.
The change has been made to moor_flutter and to moor_flutter with encryption
2020-03-03 23:14:19 +01:00
David Martos 3fba2ce05b Improvements in the moor_flutter integration tests
* The asset db test was not being cleaned up
* The batch execution was not being awaited, so sometimes was interfering with other tests with the error (1032) SQLITE_READONLY_DBMOVED (https://www.sqlite.org/rescode.html#readonly_dbmoved)
2020-03-03 23:14:19 +01:00
Simon Binder d7bb4f51e6
Merge branch 'dont-use-double-quoted-strings' into develop 2020-02-25 14:17:38 +01:00
Simon Binder 341d03c8f2
moor_flutter: Fix runCustom not using variables 2020-02-23 19:43:11 +01:00
Simon Binder 2b780492d3
Re-run generator on benchmark project 2020-02-19 19:32:00 +01:00
Simon Binder b266e5e53f
Collect coverage for moor_ffi (#400) 2020-02-19 13:00:03 +01:00
Simon Binder e2b65e968a
Rename customSelectQuery to just customSelect
Also fix a crash in the builder
2020-02-17 20:43:42 +01:00
Simon Binder 8c4c6cd8cd
Remove insertAll and orReplace 2020-02-17 18:11:01 +01:00
Simon Binder 11af414551
Remove the second type parameter on expressions 2020-02-17 18:05:24 +01:00
Simon Binder 9e1a12432a
Don't export core moor from moor_web 2020-02-17 17:11:34 +01:00
Simon Binder 7c62d6cdd1
Provide IndexedDB backend on the web (#390) 2020-02-16 13:26:25 +01:00
Simon Binder 814e7bf61d
SqlEngine: Migrate default construtor to options 2020-02-10 18:48:03 +01:00
Simon Binder d44004e598
Explain how to use moor with built_value 2020-02-08 15:29:31 +01:00
Simon Binder cd9b7101b4
Optional part builder, example with built_value
See #89
2020-02-06 22:27:54 +01:00
Simon Binder b143ee5a4b
Refactor sql scoping, make aliased tables explicit 2020-02-05 22:52:45 +01:00
Simon Binder 01326deb7b
Fix crash when using a no-op transaction (#361) 2020-01-29 22:03:29 +01:00
Simon Binder 4df07359f3
Use precompiled binaries for moor_ffi 2020-01-29 11:57:07 +01:00
Simon Binder 75200a1eab
Re-run generator on benchmarks subproject 2020-01-21 21:13:06 +01:00
Simon Binder 83a3344719
Initializer for web databases (#328) 2020-01-18 12:26:47 +01:00
Simon Binder 6434f7a7d5
Support virtual tables in the analyzer plugin 2020-01-09 22:45:25 +01:00
Simon Binder a3708b7230
Remove deprecated usages of SqlEngine constructor 2020-01-07 11:40:43 +01:00
Simon Binder 927fbf561b
Begin architecture of a new type resolver in sqlparser 2019-12-26 21:55:02 +01:00
Simon Binder d41097d8e5
Benchmark for serial inserts for comparison 2019-12-23 20:47:03 +01:00
Simon Binder 60f55c9224
Refactor benchmarks, add one for inserts 2019-12-23 20:22:17 +01:00
Simon Binder 8e144c69e0
Start writing some low-level benchmarks 2019-12-23 20:00:48 +01:00
Simon Binder 76ac7c7ab3
Support batches in transactions (#271) 2019-12-16 15:50:12 +01:00
Simon Binder ae91b5d526
Expose plugin debug server as cli command 2019-12-15 21:38:46 +01:00
Simon Binder da9ca61e0c
Don't remap tables from sql -> moor -> sql 2019-12-12 18:06:56 +01:00
Simon Binder 7ab71f7558
Adapt tests for new equals methods 2019-12-12 18:00:29 +01:00
Simon Binder 8ee3029ed0
Save database after opening (fixes #273) 2019-12-11 11:18:59 +01:00
Simon Binder 2c97373bdd
Support implicit-dynamic: false
Closes #268
2019-12-10 20:38:08 +01:00
Simon Binder 54f4fd73e8
Revert analyzer workaround, a fixed version is out 2019-12-09 12:16:18 +01:00
Simon Binder 2257561c65
Also apply analyzer workaround in the vm tests package 2019-12-07 19:03:26 +01:00
Simon Binder 3c74a20f56
Enable more recent lints and enforce them 2019-12-04 21:45:09 +01:00
Simon Binder 29a6475c85
Include sqlite sources in moor_ffi project
This allows us to drop the download step from the build
2019-11-27 12:28:06 +01:00
Simon Binder 598fef750e
RELEASE
- moor 2.1.0
- moor_generator 2.1.0
- sqlparser 0.4.0
- moor_ffi 0.2.0
2019-11-16 11:23:11 +01:00
Simon Binder c0aa88f4d0
Warn when a database class isn't used as a singleton 2019-11-15 09:52:38 +01:00
Simon Binder 623f3212a1
Use builtin coverage collection from test package 2019-11-08 22:51:53 +01:00
Simon Binder 77cc6b2d88
Use extensions methods for Dart query api (#195) 2019-11-06 12:16:55 +01:00
Simon Binder 98470109cf
Remove built_value(_generator) dependency from generator 2019-11-04 17:09:21 +01:00
Simon Binder b189a2bcb2
Better errors on QueryExecutor misuse, fix beforeOpen 2019-11-02 11:48:11 +01:00
Simon Binder fb85ac80cb
Run builder on integration tests, support analyzer 0.38 2019-10-10 17:30:22 +02:00
Michael Spiss d96887b4e9
Fix version solving fail for extras/encryption
Version solving fails with the newest release of moor (2.0.0). This only updates the moor version in pubspec.yaml as the mirrored moor_flutter.dart has not changed except for the removal of functionality that was not supported by encrypted_moor.dart.
2019-10-07 22:16:31 +02:00
Simon Binder 7cae79d76b
Document how to debug the plugin, prepare 2.0 release 2019-10-01 17:58:17 +02:00
Simon Binder a6cfc5fdd8
Better types for nested expressions, more 2.0 docs 2019-09-26 22:46:19 +02:00
Simon Binder e292a7cff8
Re-comment plugin in analysis options 2019-09-24 22:50:59 +02:00
Simon Binder ba21a594af
Fix autocomplete and suggestions in the analyzer plugin 2019-09-24 20:50:23 +02:00
Simon Binder 22dee72680
Bump sqflite dependency, integration test for array args 2019-09-21 13:20:19 +02:00
Simon Binder 161f7c0203
Optionally override hashCode and equals in result sets 2019-09-20 19:31:36 +02:00
Simon Binder 7121bac866
More work on the analyzer plugin
- finish migration to refactored generator
- document how to use the analysis plugin
- better error reporting without redundant messages
2019-09-18 20:48:44 +02:00