Commit Graph

81 Commits

Author SHA1 Message Date
Simon Binder bb1fcc1590
Fix analyzer crash at CTE (#255) 2019-11-24 14:46:20 +01:00
Simon Binder a304d13927
Use enforceHasSpan on all parse results in tests 2019-10-27 11:51:09 +01:00
Simon Binder b8af08919a
Handle recursive CTEs in analyzer 2019-10-23 18:03:24 +02:00
Simon Binder d55e1de66d
Handle common table expressions in the analyzer 2019-10-23 17:07:44 +02:00
Simon Binder 29a7b4853d
Parse common table expressions (no analysis yet) 2019-10-21 22:10:19 +02:00
Simon Binder 8a8b811643
Fix more sqlparser crashes in the resolver 2019-10-20 11:28:05 +02:00
Simon Binder d8226aeb23
Handle aliases references to rowid (#197) 2019-10-19 16:09:44 +02:00
Simon Binder 4c090af98c
Ability to override json keys in moor files (#176) 2019-10-14 19:59:52 +02:00
Simon Binder ed03bff4c2
Recognize boolean and datetime column in moor 2019-10-05 21:24:41 +02:00
Simon Binder b684a7be69
Replace imports of test_api with test 2019-09-26 22:52:20 +02:00
Simon Binder c4f321748a
Prepare release for sqlparser 0.3.0 2019-09-25 20:19:39 +02:00
Simon Binder f6a5009380
Report errors when ORDER or LIMIT is used in compound stmt 2019-09-25 18:08:24 +02:00
Simon Binder 0cbac2ee37
Parse compound select statements 2019-09-25 14:58:44 +02:00
Simon Binder 1bdfa0289b
Make the parser set a span on each AST node. 2019-09-18 21:36:25 +02:00
Simon Binder 1bd856e9c5
Fix scanner crashing when the last line contains a comment 2019-09-18 20:53:49 +02:00
Simon Binder 00b2956b35
Allow data class names to be overridden in sql
Closes #147
2019-09-17 15:23:24 +02:00
Simon Binder 746b8401ec
Scan comments in sql 2019-09-16 22:33:36 +02:00
Simon Binder 5f2d5d3258
Parse <expression> IN (<select-stmt>) again 2019-09-15 21:41:32 +02:00
Simon Binder 3abfbd5963
Don't parse tuples as expressions 2019-09-15 11:19:32 +02:00
Simon Binder c95a3badb2
Infer types for dart placeholder expressions
Also, infer where clauses to have a bool type
2019-09-14 22:44:20 +02:00
Simon Binder f171098789
Parse Dart placeholders based on their context 2019-09-14 11:44:15 +02:00
Simon Binder 4c250c8f40
Parse dart template expressions and limit clauses 2019-09-13 23:08:29 +02:00
Simon Binder 44a2319bba
Improve variable tokenization for easier parsing logic 2019-09-13 22:48:55 +02:00
Simon Binder 1b7721a98f
Plugin: Import assists for column nullability 2019-09-08 21:36:26 +02:00
Simon Binder a62c076c4c
Suggest CREATE TABLE statements in moor files 2019-09-07 22:49:23 +02:00
Simon Binder 35e5bdb317
Introduce new top-level ast node for moor files 2019-09-07 21:33:56 +02:00
Simon Binder 1ed1e3ba94
Parse declared statements in moor files 2019-09-07 20:26:51 +02:00
Simon Binder 6ccaad866b
Parse import statements in moor files 2019-09-05 10:52:33 +02:00
Simon Binder ba772ef07f
Better error handling when parsing multiple sql statements 2019-09-03 21:24:59 +02:00
Simon Binder dd8b4ab03a
Infer types for insert statements 2019-08-29 15:32:45 +02:00
Simon Binder 2f8dc6d68e
Parse insert statements 2019-08-29 15:04:39 +02:00
Simon Binder 5d2149d727
Parse MAPPED BY constraints for moor files 2019-08-27 12:33:48 +02:00
Simon Binder aa13aad276
Introduce moor-specific tokens for type converters 2019-08-27 12:15:32 +02:00
Simon Binder e911e74af2
Support window declarations on select statements 2019-08-19 18:06:25 +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 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 5df5e3cacc
Fix typename parsing, set span on default constraint 2019-07-30 09:35:19 +02:00
Simon Binder a550a49705
Export table structure from CREATE TABLE statements 2019-07-28 22:09:20 +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 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 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 d01b5c750f
Fix order in limit expressions with comma
Fixes #73
2019-07-10 17:29:03 +02:00
Simon Binder aeb9b6ba41
Parse COLLATE expressions in the sql parser
For #67
2019-07-08 23:03:03 +02:00
Simon Binder b0ca66bc06
Parse empty tuples
Closes #54
2019-07-02 22:30:54 +02:00
Simon Binder c5d46adcb5
Parse JOIN clauses without additional operators
Fixes #56
2019-07-02 22:07:30 +02:00
Simon Binder 3024157ec9
Parse and analyze tuples, rework type resolution for `IN` 2019-07-02 14:38:28 +02:00