Commit Graph

207 Commits

Author SHA1 Message Date
Simon Binder 93ae15986a
Fix batches in moor_flutter 2020-05-03 14:24:25 +02:00
Simon Binder aed5b43892
Fix integration tests on web 2020-05-03 13:56:49 +02:00
Simon Binder 0a30b8a12e
Upgrade integration tests, release sqlparser 0.8 2020-05-03 13:28:34 +02:00
Simon Binder 9ee050525d
Flutter integration tests for isolates 2020-04-25 16:34:45 +02:00
Simon Binder 97cff8564d
Migrate integration tests to DatabaseConnection 2020-04-25 15:12:55 +02:00
Simon Binder 1546f323b2
Merge branch 'master' into develop
# Conflicts:
#	docs/content/en/docs/Getting started/advanced_dart_tables.md
#	docs/content/en/docs/Using SQL/moor_files.md
#	extras/integration_tests/flutter_db/lib/moor_flutter.dart
#	moor/CHANGELOG.md
#	moor/lib/src/runtime/isolate/client.dart
#	moor/lib/src/runtime/isolate/server.dart
#	moor/pubspec.yaml
#	moor_ffi/test/database/database_test.dart
2020-04-25 12:44:01 +02:00
Simon Binder 821d1620cd
Run batch statements in the right order 2020-04-24 20:09:46 +02:00
Simon Binder 62a363105a
Refactor Insertables to avoid covariant parameters 2020-04-17 18:02:05 +02:00
David Martos 871b5b212f rename integration tests main files 2020-04-15 19:32:42 +02:00
David Martos d2e25baa62 More robust integration tests for moor_ffi and moor_flutter 2020-04-15 19:31:17 +02:00
David 6424bd209c sqflite_sqlcipher dependency 2020-03-15 20:43:10 +01:00
Simon Binder bc1f347498
Test transactions in migrations (#430) 2020-03-15 15:16:22 +01:00
Simon Binder 60d3bf05e1
Remove coupling between QueryExecutor and generated db
Closes #372
2020-03-15 14:55:02 +01:00
Simon Binder ae7c9df049
Add integration test to save and restore databases 2020-03-10 20:43:39 +01:00
David 25facaaf18 fix runCustom args in encrypted moor 2020-03-08 20:15:22 +01:00
Simon Binder 994374e191
Merge branch 'master' into develop 2020-03-07 11:09:13 +01:00
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
David Martos dcf09b55d8 Expose underlying db in encrypted moor 2020-03-02 20:46:43 +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
Simon Binder 9f8ccd08d0
Actually make the ffi package work on Android 2019-09-15 17:08:22 +02:00
Simon Binder ae8ed3aedf
Also run the ffi integration tests on android 2019-09-14 21:30:38 +02:00
Simon Binder 30e44ecbac
Write more notes on how to use moor_ffi 2019-09-14 21:20:42 +02:00
Simon Binder ec0e82eae4
Allow users to override library opening behavior 2019-09-14 21:07:27 +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 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 1b7721a98f
Plugin: Import assists for column nullability 2019-09-08 21:36:26 +02:00
Simon Binder 7354b56712
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/lib/src/analyzer/moor/parser.dart
#	sqlparser/lib/src/engine/sql_engine.dart
2019-09-07 23:05:36 +02:00
Simon Binder 8268867369
Fix analyzer errors, re-run build_runner 2019-09-07 20:01:33 +02:00
Simon Binder b550afd68f
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/lib/src/parser/moor/moor_analyzer.dart
2019-09-07 11:31:34 +02:00
Simon Binder b87a606fb8
Merge branch 'master' into develop 2019-09-05 10:35:07 +02:00
Simon Binder 3c56e0ad6e
Fix race condition in database opening 2019-09-04 18:38:55 +02:00
Simon Binder b1e215b8d3
Merge branch 'develop' into ffi 2019-08-28 15:36:10 +02:00
Simon Binder 0860b6645a
Generate selectable for custom queries
This makes is easier to use getSingle() and watchSingle()
on them.
Fixes #120
2019-08-27 18:44:34 +02:00
Simon Binder fc6c9857bb
Add example project to play around with the AS plugin 2019-08-26 21:11:50 +02:00
Simon Binder a3f6f1e326
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/pubspec.yaml
2019-08-26 15:32:28 +02:00
Simon Binder e38719a194
Write changelogs, prepare release 1.7 2019-08-22 12:27:39 +02:00
Simon Binder d0e71d8bcd
Remove unused files from vm integration test 2019-08-20 15:38:30 +02:00
Simon Binder ae47867c06
Write meta description tag in documentation 2019-08-18 11:35:08 +02:00
Simon Binder 8ea7404133
Update encrypted db to match moor_flutter features 2019-08-18 09:58:04 +02:00
Simon Binder 3dcf59af63
Fix some bugs in the sql parser, another integration test 2019-08-17 22:21:34 +02:00
Simon Binder b26baddd01
Fix some docs, make isOpen lookup faster 2019-08-17 18:25:56 +02:00
Simon Binder 925f80aa9f
Support creating databases from an asset 2019-08-16 15:38:13 +02:00
Simon Binder b58c200b21
Merge branch 'develop' into ffi 2019-08-08 19:22:54 +02:00
Simon Binder aa6fea6caa
Fix wrong double primary key on generated tables 2019-08-01 20:14:42 +02:00
Simon Binder 70033b0bde
Merge branch 'develop' into ffi
# Conflicts:
#	moor/lib/src/runtime/database.dart
#	moor/lib/src/runtime/executor/executor.dart
2019-07-31 20:49:15 +02:00
Simon Binder a4bfda494d
Add integration tests for transactions
Also fixes some bugs on the way
2019-07-31 20:47:58 +02:00
Simon Binder 4210c0c836
Start some work on the analyzer plugin
Of course it's not working at all
2019-07-30 18:34:33 +02:00
Simon Binder 7f79fd922b
Provide information about the sql dialect at runtime 2019-07-28 14:21:39 +02:00
Simon Binder 94a9b9e2bc
Document type converters feature 2019-07-28 13:44:25 +02:00
Simon Binder f4bc8e2121
Integration tests for type converters 2019-07-28 11:43:02 +02:00
Simon Binder 82f84732d0
Resolve aliased columns 2019-07-25 17:33:01 +02:00
Simon Binder 4bf58cb83b
API to close databases, integration test that saves data 2019-07-25 17:04:32 +02:00
Simon Binder 7327e1f8b1
Readme for integration tests 2019-07-24 23:41:16 +02:00
Simon Binder fdbffa47fc
Integration tests for the web backend 2019-07-24 23:32:45 +02:00
Simon Binder 7ab63c0862
Run the integration tests on the VM backend 2019-07-24 22:21:52 +02:00
Simon Binder a7395ba83d
Write integration tests, sort of run them in Flutter 2019-07-24 22:14:02 +02:00
Simon Binder 42f66679f1
Publish a simple encrypted version for moor 2019-07-24 19:23:25 +02:00
Simon Binder b75bd4d5ec
Make mysql example a sub-library that we won't publish 2019-07-24 18:25:59 +02:00