Commit Graph

145 Commits

Author SHA1 Message Date
Markus Richter 5596c30cc7
Support subquery expressions in types2 (#583) 2020-05-19 19:42:36 +02:00
Simon Binder 52fd09c041
Fix reading a column without datatype 2020-05-17 15:18:25 +02:00
Simon Binder 6b88385755
Rename test files to end with _test.dart 2020-05-16 19:49:00 +02:00
Simon Binder 9841c960d1
Parse row values, warn on misuse 2020-05-06 21:08:47 +02:00
Simon Binder 8b6abd7140
Move referenced table finder to sqlparser package (#537) 2020-05-04 22:00:41 +02:00
Simon Binder bd250ee9e7
Support collate expression with new type inference (#533) 2020-05-03 21:13:29 +02:00
Simon Binder fc0b1f4388
Use package:charcode for sql scanning 2020-05-02 14:17:49 +02:00
Simon Binder 453ccbefdc
Support double-equals in types2 2020-04-19 13:43:42 +02:00
Simon Binder 6b2bd27d4d
Parse and analyze VALUES clause for selects 2020-04-16 22:41:21 +02:00
Simon Binder 9a78604d98
Fix issues with new inference, enable it by default 2020-04-16 19:07:30 +02:00
Simon Binder af5333db3c
Support compound select statements in from 2020-04-07 15:37:35 +02:00
Simon Binder dcb4c4b972
Resolve nested result sets in generator 2020-04-03 20:30:41 +02:00
Simon Binder d5ad3c6d34
Parse nested star columns 2020-04-03 18:37:33 +02:00
Simon Binder 2b9a85714f
Improve nullability detection in new type inference 2020-03-24 19:33:57 +01:00
Simon Binder 1a2d3bdee7
Parse comma separated tables as proper join (#453) 2020-03-22 11:51:39 +01:00
Simon Binder d533a0a254
Fix error recovery on early finished statements #453 2020-03-21 22:02:27 +01:00
Simon Binder 87d1f2941b
Test for string concatenation variable inference 2020-02-23 19:23:50 +01:00
Simon Binder 814e7bf61d
SqlEngine: Migrate default construtor to options 2020-02-10 18:48:03 +01:00
Simon Binder aa52c4ba3d
Analysis for upsert clauses 2020-02-05 12:26:14 +01:00
Simon Binder 8839ec75a8
types2: Inference for upsert clauses 2020-02-03 21:54:49 +01:00
Simon Binder 0c171c3b81
sqlparser: Support upsert clauses (#367) 2020-02-03 21:43:18 +01:00
Simon Binder fbe061c84d
Support current time literals in the sql parser 2020-02-01 13:18:53 +01:00
Simon Binder 71ef9b8cd7
Support table-valued json1 functions 2020-01-26 14:42:52 +01:00
Simon Binder 5268d88344
Extract json1 support into an extension 2020-01-26 14:22:07 +01:00
Simon Binder 223f1615ab
Support parsing table valued functions 2020-01-26 13:13:44 +01:00
Simon Binder ceb300e32e
Parse rowid as a valid expression in the sql parser 2020-01-26 12:23:47 +01:00
Simon Binder 8c62365f26
Improve type inference for parentheses 2020-01-19 13:07:47 +01:00
Simon Binder c8a155a44b
Autocomplete table names in sqlparser 2020-01-18 21:41:36 +01:00
Simon Binder b04ebc9e8c
Utils to make testing autocomplete easier 2020-01-18 20:51:09 +01:00
Simon Binder eb77d06cac
sqlparser: Recover from invalid column definitions 2020-01-18 15:09:42 +01:00
Simon Binder 4a2184110f
Run tests for types1 for types2 resolver 2020-01-16 22:07:02 +01:00
Simon Binder 8ae68707f8
Smarter many-to-one propagation in types2 2020-01-15 22:10:18 +01:00
Simon Binder ddda6797e1
types: Analyze functions 2020-01-13 20:40:46 +01:00
Simon Binder 9c38ed1ea5
Support CASE expressions in the new type resolver 2020-01-10 21:31:22 +01:00
Simon Binder 643ef5640c
Faster sql tokenization with char codes 2020-01-09 22:09:17 +01:00
Simon Binder a3708b7230
Remove deprecated usages of SqlEngine constructor 2020-01-07 11:40:43 +01:00
Simon Binder 523eabaa2a
Support LIKE expressions in the new type resolver 2020-01-04 21:36:06 +01:00
Simon Binder a8ffd0a7f3
Support LIMIT clauses in the new type resolver 2020-01-04 21:26:47 +01:00
Simon Binder 49d251f819
Support single quote escapes in sql (#317) 2020-01-04 17:32:55 +01:00
Simon Binder 282af57c78
Report a parsing error for invalid queries in moor files
We used to return null when the query didn't start with SELECT, INSERT, UPDATE or DELETE, which causes errors later on. Now, we don't accept the query and report a parsing error.
2020-01-04 17:06:45 +01:00
Simon Binder c362e08e6e
types2: Respect variable hints from options 2020-01-04 16:55:34 +01:00
Simon Binder 92030c07a8
types2: Support inference for insert statements (#297) 2020-01-04 14:38:37 +01:00
Simon Binder c95a5f0aad
New type resolver: Start propagating known types 2020-01-04 13:22:29 +01:00
Simon Binder de67ca6e7b
Parse ISNULL and NOTNULL postfix expressions 2020-01-03 17:39:35 +01:00
Simon Binder 6924543a47
sqlparser: Parse CREATE INDEX statements 2020-01-03 17:14:42 +01:00
Simon Binder 75cbe74b53
Make "new" and "old" table available for triggers 2020-01-01 20:37:34 +01:00
Simon Binder 04f75d11d3
Migrate some trigger code to refactorings on develop 2019-12-30 21:38:24 +01:00
Simon Binder ba603f22cc
Merge branch 'develop' into views-triggers-indexes
# Conflicts:
#	moor/lib/moor.dart
#	moor/lib/src/runtime/api/query_engine.dart
#	moor/lib/src/runtime/query_builder/schema/entities.dart
#	moor/test/data/tables/custom_tables.g.dart
#	moor/test/data/tables/tables.moor
#	moor/test/parsed_sql/moor_files_integration_test.dart
#	moor_generator/lib/src/analyzer/moor/parser.dart
#	moor_generator/lib/src/analyzer/runner/steps.dart
#	moor_generator/lib/src/analyzer/runner/steps/analyze_dart.dart
#	moor_generator/lib/src/model/specified_db_classes.dart
#	moor_generator/lib/src/writer/database_writer.dart
#	sqlparser/lib/src/ast/ast.dart
#	sqlparser/lib/src/ast/statements/create_table.dart
#	sqlparser/lib/src/ast/statements/statement.dart
#	sqlparser/lib/src/reader/parser/schema.dart
#	sqlparser/lib/src/reader/tokenizer/token.dart
#	sqlparser/test/engine/autocomplete/static_test.dart
2019-12-30 21:08:32 +01:00
Simon Binder 757abf3b34
Fix typo in test description 2019-12-30 20:58:41 +01:00
Simon Binder c54a62120d
sqlparser: Support CAST expressions 2019-12-30 20:46:54 +01:00