Commit Graph

862 Commits

Author SHA1 Message Date
Simon Binder 5c82b2f2a7
Loose coupling between highlighter and analyzer plugin 2020-01-09 13:50:11 +01:00
Simon Binder a0684364c5
Fix analyzer plugin crash, highlight import strings 2020-01-08 12:17:43 +01:00
Simon Binder cefa290d7e
Batch: Delete method for insertables 2020-01-08 12:14:04 +01:00
Simon Binder c2ec06c1de
Fix transaction behavior on isolates (#324) 2020-01-07 14:57:42 +01:00
Simon Binder a3708b7230
Remove deprecated usages of SqlEngine constructor 2020-01-07 11:40:43 +01:00
Simon Binder c5c8dc7d6d
Support delete statements in batches
Closes #325
2020-01-07 11:40:43 +01:00
Simon Binder a6e4a3669c
Fix null error when outlining a non-analyzed file 2020-01-06 20:01:41 +01:00
Simon Binder debf8b30f4
Report error when import can't be resolved 2020-01-06 19:57:44 +01:00
Simon Binder e9bd8a43aa
Merge branch 'master' into develop 2020-01-05 21:44:45 +01:00
Simon Binder 17a1a4f95c
Merge pull request #321 from DmitriyZaitsev/dz/fix-sql-example
Fix code example for `Getting started with sql` doc
2020-01-05 21:44:17 +01:00
Simon Binder b6b5e7f7c2
Fix analysis errors from deprecated engine constructor 2020-01-05 21:41:56 +01:00
Simon Binder 2f40e38484
Update relationships example to use extensions 2020-01-05 21:36:00 +01:00
Dmytro Zaitsev dcf7463c8c Fix code example for `Getting started with sql` doc 2020-01-05 22:16:07 +02:00
Simon Binder 70259c8f83
Build options to enable types2 inference 2020-01-04 22:29:21 +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 0cdfc9a4ab
website: Update documentation on batches (#318) 2020-01-04 21:04:33 +01:00
Simon Binder 681ed5fbd1
website: Update documentation on batches (#318) 2020-01-04 20:48:55 +01:00
Simon Binder 49d251f819
Support single quote escapes in sql (#317) 2020-01-04 17:32:55 +01:00
Simon Binder 144147795f
ci: Don't analyze moor_flutter, but analyze moor_ffi 2020-01-04 17:13:23 +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 373ad320c4
Support @create-queries in moor files 2020-01-03 22:15:40 +01:00
Simon Binder a7300ee9a8
Merge pull request #315 from vitaminwater/patch-2
Missing `.path` in _openConnection
2020-01-03 20:49:26 +01:00
Simon Binder 4bfee82ea4
Merge pull request #314 from vitaminwater/patch-1
Missing 's' in build.yaml
2020-01-03 20:47:56 +01:00
Simon Binder 00c1d2a2e7
Migrator support for indexes, tests 2020-01-03 20:08:10 +01:00
Simon Binder 5b04a08786
Generate code for indices 2020-01-03 19:36:38 +01:00
Constantin Clauzel b602cbd88b
Missing `.path` in _openConnection 2020-01-03 19:33:22 +01:00
Constantin Clauzel b0310f8a19
Missing 's' in build.yaml
In example for sqlite_modules.
2020-01-03 19:30:31 +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 fc0949ebd1
CI: Fix analysis script 2020-01-03 16:18:25 +01:00
Simon Binder 3ad03d9dc6
Test that triggers can be created manually 2020-01-03 15:55:28 +01:00
Simon Binder 8df6ab3a14
Generate fields for triggers 2020-01-03 15:47:18 +01:00
Simon Binder 3ee05bf647
Respect tables in the body of a CREATE TRIGGER statement 2020-01-03 15:38:13 +01:00
Simon Binder 4c68b31564
Merge pull request #312 from blaugold/fix-data-class-name-docs
docs(DataClassName): fix template name
2020-01-03 15:00:59 +01:00
Gabriel Terwesten 0cbeb3036d docs(DataClassName): fix template name 2020-01-03 14:14:50 +01:00
Simon Binder cf6824af82
Analyze body of CREATE TRIGGER statements 2020-01-01 21:19:10 +01:00
Simon Binder 75cbe74b53
Make "new" and "old" table available for triggers 2020-01-01 20:37:34 +01:00
Simon Binder 49550c2f74
Test to verify CREATE TRIGGER statements are issued 2020-01-01 19:42:44 +01:00
Simon Binder 8b86143ebb
Generate code for triggers 2019-12-31 16:03:03 +01:00
Simon Binder a3697c6f38
Find references of a trigger 2019-12-31 15:07:08 +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
Simon Binder 4484890609
Types2: Initial support for binary expressions 2019-12-30 20:14:29 +01:00
Simon Binder 22525b24c3
Documentation for new moor features 2019-12-30 19:06:58 +01:00