Commit Graph

117 Commits

Author SHA1 Message Date
Simon Binder b26baddd01
Fix some docs, make isOpen lookup faster 2019-08-17 18:25:56 +02:00
Simon Binder 7d89f12aa7
Use explicit indices for array parameters 2019-08-15 21:26:27 +02:00
Simon Binder cd67773157
Document how using named() will not affect generated json 2019-08-13 09:11:03 +02:00
Simon Binder aa6fea6caa
Fix wrong double primary key on generated tables 2019-08-01 20:14:42 +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 b1820ef5aa
Generate code to match default values for CREATE TABLE 2019-07-30 10:30:06 +02:00
Simon Binder aa3706ae9d
Support table constraints in CREATE TABLE 2019-07-30 10:13:47 +02:00
Simon Binder b48970d9ef
Fixes related to the new dialects feature 2019-07-29 15:46:00 +02:00
Simon Binder 634b1adb72
Support includes on the @UseDao annotation as well 2019-07-29 15:19:58 +02:00
Simon Binder e0a82b0e32
Finally generate table classes from sql 2019-07-29 14:22:39 +02:00
Simon Binder 7a9cafb02f
Deprecate diff utils, MoorAnimatedList 2019-07-28 14:45:36 +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 4bf58cb83b
API to close databases, integration test that saves data 2019-07-25 17:04:32 +02:00
Simon Binder fdbffa47fc
Integration tests for the web backend 2019-07-24 23:32:45 +02:00
Simon Binder a7395ba83d
Write integration tests, sort of run them in Flutter 2019-07-24 22:14:02 +02:00
Simon Binder 5f8ab42189
Start to work on MySQL example 2019-07-23 22:16:21 +02:00
Simon Binder b3d381afe6
Rollback transactions when callback throws
Closes #83
2019-07-23 09:06: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
Simon Binder ff93af231c
Write correct mapping code for custom objects 2019-07-18 12:53:26 +02:00
Simon Binder c2bff3ae42
API and parser for custom types 2019-07-18 12:02:16 +02:00
Simon Binder 3407c8e90e
Fix old stream references not emitting data 2019-07-12 20:50:09 +02:00
Simon Binder f21021a6e9
Final preparations for the 1.6 release
Short summary of updates
- web support
- using zones to resolve the current transaction
- comparable date time values
- collate expressions
- many bug fixes
2019-07-12 10:52:42 +02:00
Simon Binder f0e5ed9a87
Make tables implement equals and hashCode
Fixes #74
2019-07-11 22:02:46 +02:00
Simon Binder 256b91f03f
Emit cached data in a later microtask 2019-07-11 21:09:13 +02:00
Simon Binder 91c455d077
Fix (and then, use) the binary encoding to persist data 2019-07-10 19:14:55 +02:00
Simon Binder d01b5c750f
Fix order in limit expressions with comma
Fixes #73
2019-07-10 17:29:03 +02:00
Simon Binder a96da09741
Merge pull request #70 from knaeckeKami/master
use .toString() instead of casting to String in StringType
2019-07-09 13:31:48 +02:00
Martin Kamleithner 0137b34d07 allow nullability in StringType 2019-07-09 13:23:28 +02:00
Martin Kamleithner e7f37f5e93 use .toString() instead of casting to String in StringType 2019-07-09 12:51:37 +02:00
Simon Binder 3f8fb97b6c
Provide Dart api for COLLATE expressions
For #67
2019-07-08 22:37:13 +02:00
Simon Binder 08c5cfd1a8
Make the parameter for the transaction unnecessary 2019-07-07 13:03:15 +02:00
Simon Binder da65f6e8a7
Merge branch 'web' into develop 2019-07-06 15:30:07 +02:00
Simon Binder 7d885f9298
Use local storage instead of indexeddb for versions 2019-07-06 11:00:26 +02:00
Simon Binder 97c068f0ba
Finish web prototype 2019-07-05 22:20:08 +02:00
Simon Binder 311a47c704
Create a real example for the web backend 2019-07-05 22:00:02 +02:00
Simon Binder 3b09d819f9
Make date time values comparable
Fixes #58
2019-07-05 18:47:29 +02:00
Simon Binder 54fb22d970
Transactions for the web backend 2019-07-05 09:17:46 +02:00
Simon Binder 1c423d9d7b
Extract sql.js wrapper into own file, batched statement 2019-07-05 08:02:00 +02:00
Simon Binder 544db67d17
Return the last insert id in the web backend 2019-07-05 08:02:00 +02:00
Simon Binder 0e6ed25cd5
Persist changes in web backend 2019-07-05 08:02:00 +02:00
Simon Binder 535c5ed871
Switch web implementation to sql.js 2019-07-05 08:01:59 +02:00
Simon Binder 4ee7e84e8c
Early insert tests 2019-07-05 08:01:59 +02:00
Simon Binder 65ccd49d9a
Some kind of select statements with result parsing 2019-07-05 08:01:59 +02:00
Simon Binder e23e3ae424
First experiment on the web using AlaSLQ 2019-07-05 08:01:59 +02:00
Simon Binder d98449407e
Don't always include identical streams 2019-07-05 07:58:23 +02:00
Simon Binder b9e9135ac3
Write "DEFAULT VALUES" in insert when appropriate 2019-07-02 22:42:49 +02:00
Simon Binder 59235783c3
Make query streams emit their last item for new listeners 2019-07-02 21:46:04 +02:00