Commit Graph

1074 Commits

Author SHA1 Message Date
Simon Binder bc1f347498
Test transactions in migrations (#430) 2020-03-15 15:16:22 +01:00
Simon Binder 97127782b2
Fix CI pub get and analysis 2020-03-15 15:06:10 +01:00
Simon Binder 60d3bf05e1
Remove coupling between QueryExecutor and generated db
Closes #372
2020-03-15 14:55:02 +01:00
Simon Binder 4ff3d438f8
Provider section in faq: builder -> creator 2020-03-13 11:52:17 +01:00
Simon Binder ae7c9df049
Add integration test to save and restore databases 2020-03-10 20:43:39 +01:00
Simon Binder 9b2b73cd20
Merge pull request #432 from jaggernod/throw-meaningful-error-on-prepared-statement
Handling exceptional case when executing Prepared Statement
2020-03-07 13:35:50 +01:00
Simon Binder df5553dee4
Add test for sql failure in select, use isA 2020-03-07 11:23:30 +01:00
Simon Binder 4727f1f5ea
Merge branch 'develop' into throw-meaningful-error-on-prepared-statement 2020-03-07 11:10:05 +01:00
Simon Binder 994374e191
Merge branch 'master' into develop 2020-03-07 11:09:13 +01:00
Pawel Polanski bd4034e7c7 Do not swallow error when executing prepared statement 2020-03-06 23:06:13 +01:00
Pawel Polanski ccd7f9d244 More detailed SqliteException explanations 2020-03-06 23:04:56 +01:00
Simon Binder d600bbc70e
Fix find_stream_update_rules_test 2020-03-04 22:50:49 +01:00
Simon Binder 3002d87bcb
New tableUpdates stream method on QueryEngine (#394) 2020-03-04 22:43:41 +01:00
Simon Binder 2811d91fa1
Migrate stream store to table updates 2020-03-04 22:08:58 +01:00
Simon Binder b823f534c8
Write update kind for compiled update and delete queries 2020-03-04 21:28:08 +01:00
Simon Binder b0b9a0ed47
Generate more accurate update rules for triggers 2020-03-04 20:59:03 +01:00
Simon Binder 0b0d5792fd
Allow more specific updates in stream queries 2020-03-04 20:28:31 +01:00
Simon Binder 0a09f3411c
Remove outdated warning for moor_ffi 2020-03-04 17:39:14 +01:00
Simon Binder 2650b7a24b
Add simple test for runtime rule propagation 2020-03-04 16:57:51 +01:00
Simon Binder 799eba1c67
Verify update rule generation in generator, fix tests 2020-03-04 16:52:08 +01:00
Simon Binder 545fbcc86a
Find and generate update rules during builds 2020-03-04 16:34:16 +01:00
Simon Binder 3fe6fbfc99
Support table-update propagation at runtime 2020-03-04 16:09:01 +01:00
Simon Binder c8f4f739e9
Support for REGEXP (#410) 2020-03-04 13:48:25 +01:00
Simon Binder 84149d7e15
Merge pull request #426 from davidmartos96/db_downgrade_moor_flutter
FIX: onUpgrade callback was not being called when downgrading db in moor_flutter
2020-03-04 10:22:37 +01:00
David Martos 4a1a3a805c Add docs to the onUpgrade callback about handling schema version downgrades 2020-03-03 23:28:21 +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 51ba217484
Improve docs on post-migration callbacks, typo 2020-03-03 22:25:09 +01:00
Simon Binder 808d194939
Merge pull request #425 from davidmartos96/expose_sqflite_db
Expose underlying db in encrypted moor
2020-03-02 22:32:19 +01:00
David Martos dcf09b55d8 Expose underlying db in encrypted moor 2020-03-02 20:46:43 +01:00
Simon Binder 6c6b198943
Tests for column nullability assists 2020-02-27 11:18:08 +01:00
Simon Binder 3e691a72a6
Tests for syntax highlighting 2020-02-25 21:54:12 +01:00
Simon Binder d7bb4f51e6
Merge branch 'dont-use-double-quoted-strings' into develop 2020-02-25 14:17:38 +01:00
Simon Binder aa98774eae
Don't generate double-quoted string literals 2020-02-25 14:15:31 +01:00
Simon Binder 341d03c8f2
moor_flutter: Fix runCustom not using variables 2020-02-23 19:43:11 +01:00
Simon Binder 87d1f2941b
Test for string concatenation variable inference 2020-02-23 19:23:50 +01:00
Simon Binder 23585ad920
Don't await StreamController.close() when closing streams 2020-02-19 20:01:24 +01:00
Simon Binder 2b780492d3
Re-run generator on benchmark project 2020-02-19 19:32:00 +01:00
Simon Binder 36bf6524df
Some more unit tests for the core moor package 2020-02-19 15:01:33 +01:00
Simon Binder aaa0967b6f
More tests for moor_ffi 2020-02-19 14:17:23 +01:00
Simon Binder b266e5e53f
Collect coverage for moor_ffi (#400) 2020-02-19 13:00:03 +01:00
Simon Binder 0440e1bc5b
Mark additional moor_ffi functions as deterministic 2020-02-19 12:47:57 +01:00
Simon Binder 11d5a78606
Document how to use the new moor_ffi functions 2020-02-19 12:45:15 +01:00
Simon Binder 990755f170
Static analysis for moor_ffi functions 2020-02-19 12:25:40 +01:00
Simon Binder e536761295
Add Dart apis for mathematical functions in moor_ffi 2020-02-18 22:36:08 +01:00
Simon Binder 33faf4e962
Fix tests in moor 2020-02-18 22:21:09 +01:00
Simon Binder fa5411fb5d
Enable mathematical functions in moor_ffi (#397) 2020-02-18 22:14:30 +01:00
Simon Binder 1832b59848
Support return values in user defined functions 2020-02-18 21:20:46 +01:00
Simon Binder 2d2d102654
moor_ffi: Support user-defined functions 2020-02-18 21:13:06 +01:00
Simon Binder 10b12a5976
Remove two more tiny deprecated members 2020-02-17 21:22:43 +01:00