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 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
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
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
83a3344719
Initializer for web databases ( #328 )
2020-01-18 12:26:47 +01:00
Simon Binder
76ac7c7ab3
Support batches in transactions ( #271 )
2019-12-16 15:50:12 +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
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
Simon Binder
22dee72680
Bump sqflite dependency, integration test for array args
2019-09-21 13:20:19 +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
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
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
3dcf59af63
Fix some bugs in the sql parser, another integration test
2019-08-17 22:21:34 +02:00
Simon Binder
925f80aa9f
Support creating databases from an asset
2019-08-16 15:38:13 +02:00