Commit Graph

755 Commits

Author SHA1 Message Date
Simon Binder d79b04193c
Report syntax errors in moor files from the plugin 2019-09-08 11:22:36 +02:00
Simon Binder e807822f3f
Make plugin operate on the new MoorFile AST node 2019-09-08 10:29:59 +02:00
Simon Binder 7354b56712
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/lib/src/analyzer/moor/parser.dart
#	sqlparser/lib/src/engine/sql_engine.dart
2019-09-07 23:05:36 +02:00
Simon Binder a62c076c4c
Suggest CREATE TABLE statements in moor files 2019-09-07 22:49:23 +02:00
Simon Binder ee9b413e5d
Start experimenting with auto-completion features 2019-09-07 22:18:45 +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 8268867369
Fix analyzer errors, re-run build_runner 2019-09-07 20:01:33 +02:00
Simon Binder 1fcc6facee
Implement basic functionality of the analyzer plugin 2019-09-07 18:49:11 +02:00
Simon Binder 10dca6a8a9
Migrate analysis plugin to refactored generator 2019-09-07 15:19:40 +02:00
Simon Binder b550afd68f
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/lib/src/parser/moor/moor_analyzer.dart
2019-09-07 11:31:34 +02:00
Simon Binder 1130101f1f
Support writing string literals from Constant<String>
Fixes #137
2019-09-06 22:37:15 +02:00
Simon Binder 71d1bfdc9c
Scaffold api to support type converters in moor files
I still don't know how to parse expressions though :(
2019-09-06 22:23:44 +02:00
Simon Binder 6ccaad866b
Parse import statements in moor files 2019-09-05 10:52:33 +02:00
Simon Binder b87a606fb8
Merge branch 'master' into develop 2019-09-05 10:35:07 +02:00
Simon Binder 6993b26532
Release 1.7.2 of moor
Fixed a bug where databases where not opened properly.
2019-09-04 22:19:20 +02:00
Simon Binder 81986d2010
Remove debug logs used to fix the opening problem 2019-09-04 22:11:48 +02:00
Simon Binder a17ad13542
Report more errors when database is opened 2019-09-04 21:20:09 +02:00
Simon Binder 3c56e0ad6e
Fix race condition in database opening 2019-09-04 18:38:55 +02:00
Simon Binder 1bbc26767e
Assert that the database is not opened multiple times. 2019-09-04 16:13:37 +02:00
Simon Binder ba772ef07f
Better error handling when parsing multiple sql statements 2019-09-03 21:24:59 +02:00
Simon Binder 867f953107
Merge branch 'develop' into refactor-generator
# Conflicts:
#	moor_generator/lib/src/analyzer/sql_queries/lints/linter.dart
2019-09-03 19:35:23 +02:00
Simon Binder 35fcdb2c0f
Implement error handling in the refactored builder 2019-09-03 19:30:05 +02:00
Simon Binder 74dc2e5404
Finish refactoring of moor_generator 2019-09-02 20:28:57 +02:00
Simon Binder ad8bdba4b8
Start migration of writer code 2019-09-02 17:26:30 +02:00
Simon Binder 6e89a319ad
Refactored parser can now parse Dart tables 2019-08-31 12:22:25 +02:00
Simon Binder 23fca61961
Start with some refactoring in the generator
The idea is that we have a setup that let's us use multiple backends (build, analyzer plugin, standalone) with maximum code sharing.
2019-08-30 23:09:22 +02:00
Simon Binder fcdbc309b7
Fix resolver not finding window expressions 2019-08-30 19:36:23 +02:00
Simon Binder 4af370f0cb
Tests: Verify that an executor is open when used. 2019-08-30 19:32:44 +02:00
Simon Binder 0ef56d6163
Use doWhenOpened for custom updates and inserts 2019-08-30 09:16:55 +02:00
Simon Binder 876db0671e
Provide lints on insert statements that will fail 2019-08-29 21:09:20 +02:00
Simon Binder 3cb00a4b31
Remove unnecessary "this." in insert companion constructor 2019-08-29 16:33:15 +02:00
Simon Binder 241baed0c3
Generate query implementations for insert statements 2019-08-29 16:27:55 +02:00
Simon Binder a4b256f8a5
Support custom insert statements at runtime 2019-08-29 15:52:29 +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 6a046ec408
Explain why companions exist in the documentation 2019-08-29 13:54:38 +02:00
Simon Binder 4e83c0275b
Generate constructor for companions with @required fields 2019-08-29 13:54:08 +02:00
Simon Binder 78bb23a7d1
Raise SDK constraints to 2.5.0 for FFI version 2019-08-28 17:46:52 +02:00
Simon Binder 03a35ae9cd
Port ffi example to updated structs / pointer api 2019-08-28 16:57:25 +02:00
Simon Binder b1e215b8d3
Merge branch 'develop' into ffi 2019-08-28 15:36:10 +02:00
Simon Binder 0860b6645a
Generate selectable for custom queries
This makes is easier to use getSingle() and watchSingle()
on them.
Fixes #120
2019-08-27 18:44:34 +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 3612c78241
Introduce special token class for keywords 2019-08-27 11:54:56 +02:00
Simon Binder 4b0add64de
Provide better error messages at unknown tables 2019-08-26 22:26:38 +02:00
Simon Binder fc6c9857bb
Add example project to play around with the AS plugin 2019-08-26 21:11:50 +02:00
Simon Binder a3f6f1e326
Merge branch 'develop' into analyzer-plugin
# Conflicts:
#	moor_generator/pubspec.yaml
2019-08-26 15:32:28 +02:00
Simon Binder 37672dad2d
Bump moor dependency in moor_generator 2019-08-26 15:30:51 +02:00
Simon Binder b1e6d931d5
Prepare release 1.7.1 2019-08-25 22:44:28 +02:00