Simon Binder
2fa3b47235
Actually, don't cancel on the same isolate
2021-03-31 23:30:18 +02:00
Simon Binder
edb219ecfe
Use Future.delayed in cancellation zones only
2021-03-31 23:10:07 +02:00
Simon Binder
357764a1b7
Initial support for query cancellations
2021-03-31 21:49:34 +02:00
Simon Binder
b0887a9fec
Inline usages of package:synchronized
...
Future-chaining is cheap and gets the job done. Since
the synchronized package is holding back a stable null-
safety release and only has a single use in moor, we can
drop that package in favor of a simpler implementation.
2021-02-15 18:20:55 +01:00
Simon Binder
87d6e2ad31
Remove some usages of dynamic
2020-11-26 17:22:59 +01:00
Simon Binder
13056b0cf6
Migrate core libraries
2020-11-18 17:07:05 +01:00
Simon Binder
c303781bb1
Assert transactions aren't used after they complete
2020-09-06 14:20:02 +02:00
Simon Binder
25ee06ab36
Don't attempt to close databases that have never been open ( #560 )
2020-05-13 11:12:17 +02:00
Simon Binder
3dd682d522
Also log statements during migrations if desired
2020-05-12 13:38:02 +02:00
Simon Binder
821d1620cd
Run batch statements in the right order
2020-04-24 20:09:46 +02:00
Simon Binder
d1332ff1be
moor_ffi: Only update schema version after migrations
2020-03-15 15:20:44 +01:00
Simon Binder
60d3bf05e1
Remove coupling between QueryExecutor and generated db
...
Closes #372
2020-03-15 14:55:02 +01:00
Simon Binder
7c62d6cdd1
Provide IndexedDB backend on the web ( #390 )
2020-02-16 13:26:25 +01:00
Simon Binder
01326deb7b
Fix crash when using a no-op transaction ( #361 )
2020-01-29 22:03:29 +01:00
Simon Binder
8ee3029ed0
Save database after opening ( fixes #273 )
2019-12-11 11:18:59 +01:00
Simon Binder
b189a2bcb2
Better errors on QueryExecutor misuse, fix beforeOpen
2019-11-02 11:48:11 +01:00
Simon Binder
ed4d69a792
Remove limitations of a beforeOpen callback ( #216 )
2019-10-31 18:41:15 +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
6b1ebac16b
Document all public moor apis, enable appropriate lint
2019-10-04 22:19:41 +02:00
Simon Binder
4137f6cffa
Write unit tests for DelegateDatabase
2019-09-29 16:21:09 +02:00
Simon Binder
81986d2010
Remove debug logs used to fix the opening problem
2019-09-04 22:11:48 +02:00
Simon Binder
a17ad13542
Report more errors when database is opened
2019-09-04 21:20:09 +02:00
Simon Binder
3c56e0ad6e
Fix race condition in database opening
2019-09-04 18:38:55 +02:00
Simon Binder
1bbc26767e
Assert that the database is not opened multiple times.
2019-09-04 16:13:37 +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
7f79fd922b
Provide information about the sql dialect at runtime
2019-07-28 14:21:39 +02:00
Simon Binder
21956a6b48
Use variables instead of failing to write string literals
...
Fixes #88
2019-07-26 09:25:55 +02:00
Simon Binder
a7395ba83d
Write integration tests, sort of run them in Flutter
2019-07-24 22:14:02 +02:00
Simon Binder
147499c1f7
Ability to rollback transactions
2019-07-23 08:49:51 +02:00
Simon Binder
2ee548e5d8
Implement the web database with the new backends api
2019-07-22 12:47:18 +02:00
Simon Binder
48f87330d6
New API to create custom backends easier
...
Also ported the Flutter backend to that API
2019-07-22 11:30:39 +02:00