Commit Graph

404 Commits

Author SHA1 Message Date
Simon Binder cdb231e1ae
Update test case for custom queries
We now use an explicit index when expanding arrays
2019-08-16 15:08:07 +02:00
Simon Binder 4ce9e12c0e
Write copyWith methods in companion classes
Fixes #102
2019-08-16 15:01:03 +02:00
Simon Binder c7a0397fb6
Verify that generated queries don't skip indexes 2019-08-16 14:44:40 +02:00
Simon Binder 186757666f
Provide an example for n:m relationships with moor 2019-08-16 10:52:23 +02:00
Simon Binder 7d89f12aa7
Use explicit indices for array parameters 2019-08-15 21:26:27 +02:00
Simon Binder 7ba89c099f
Resolve and infer types for window expressions 2019-08-14 18:00:41 +02:00
Simon Binder 1d3d68fb54
Parse aggregate functions and window definitions 2019-08-13 14:11:13 +02:00
Simon Binder cd67773157
Document how using named() will not affect generated json 2019-08-13 09:11:03 +02:00
Simon Binder 515b95acfe
Add AST classes to model windowing in sql 2019-08-12 16:50:13 +02:00
Simon Binder 9a0ea52e55
Merge branch 'master' into develop 2019-08-08 19:21:41 +02:00
Simon Binder e1427431ff
Some final touches on the updated documentation 2019-08-05 20:10:39 +02:00
Simon Binder 4f96c255ee
Fix case in imports 2019-08-03 16:27:24 +02:00
Simon Binder 48331ab353
Use relative links in part of the docs 2019-08-03 16:20:11 +02:00
Simon Binder bf50aac32a
Style customization for new documentation 2019-08-03 14:30:37 +02:00
Simon Binder a19e3413e8
Write more documentation about advanced features 2019-08-02 11:03:28 +02:00
Simon Binder b2a06cbe1c
Move the existing documentation and more to docsy 2019-08-01 22:20:58 +02:00
Simon Binder 03eaae4a60
Replace jekyll docs with docsy example 2019-08-01 21:02:13 +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 635b902352
Add test case without any additional constraints 2019-07-30 10:33:32 +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 5df5e3cacc
Fix typename parsing, set span on default constraint 2019-07-30 09:35:19 +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 4798d0a7e5
Parse specified tables from .moor files 2019-07-29 12:54:49 +02:00
Simon Binder a550a49705
Export table structure from CREATE TABLE statements 2019-07-28 22:09:20 +02:00
Simon Binder 3a2646e837
Only use the current analysis steps for CRUD statements 2019-07-28 21:22:18 +02:00
Simon Binder 0bad842735
Parse table constraints 2019-07-28 21:01:48 +02:00
Simon Binder 7e0bfa9cf9
Parse foreign clauses as column constraints 2019-07-28 20:18:22 +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 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 7cddf6f5d7
Provide coverage upload token variable 2019-07-28 11:08:39 +02:00
Simon Binder 053d4280fc
Only format coverage once 2019-07-28 10:38:18 +02:00
Simon Binder 47a032c645
Move coverage uploading into same Cirrus task 2019-07-28 10:32:31 +02:00
Simon Binder 884f5053a0
Fix typo in cirrus script 2019-07-28 10:19:40 +02:00
Simon Binder 4c7874dd91
Test and coverage the sql parser 2019-07-28 09:49:14 +02:00
Simon Binder b4cdcf0431
Support type converters in compiled custom statements 2019-07-28 00:02:17 +02:00
Simon Binder dbda5dccc1
Cache type converters in static fields 2019-07-27 22:44:44 +02:00
Simon Binder 7b6802e1c5
Split parser implementation into multiple files 2019-07-27 20:47:11 +02:00
Simon Binder 1766bb3f77
Fix tests that used "table" as a table name
(we now recognize that as a keyword)
2019-07-26 13:49:25 +02:00
Simon Binder dee9993c83
Parse CREATE TABLE statements 2019-07-26 13:35:49 +02:00
Simon Binder 888e429467
Write model classes to represent CREATE TABLE statements 2019-07-26 11:35:53 +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 6c84013cfa
Correctly find references to aliased columns 2019-07-25 17:44:59 +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