Commit Graph
100 Commits
Author SHA1 Message Date
Simon Binder 0667191f14 Docs: Only use production environment var on production 2019-10-27 17:00:31 +01:00
Simon Binder ceed461a06 Update documentation on migrations 2019-10-27 16:52:46 +01:00
Simon Binder a304d13927 Use enforceHasSpan on all parse results in tests 2019-10-27 11:51:09 +01:00
Simon Binder 591e1b2bff Support WITH clause for inner select statements 2019-10-27 10:47:21 +01:00
Simon Binder bf1e174ca3 Formally support analyzer 0.40.0
It looks like we don't use any of the removed APIs, but that's hard to verify because most of our dependencies don't support analyzer 0.40.0 yet.
2019-10-27 10:46:29 +01:00
Simon Binder 9372178204 INSERT INTO SELECT: Support with clause 2019-10-25 23:18:21 +02:00
Simon Binder 603f9c0eb5 Update gitter links to new room 2019-10-25 16:22:12 +02:00
Simon Binder d43a23eb88 Don't crash when a table wasn't resolved 2019-10-24 22:26:27 +02:00
Simon Binder 169d6aba48 Refactor: Split select.dart into smaller files 2019-10-24 22:06:15 +02:00
Simon Binder 549a90893e Refactor: Extract DDL into mini-library 2019-10-24 22:01:57 +02:00
Simon Binder 77c54294ea Refactor: Extract type mapping code into mini library 2019-10-24 21:57:31 +02:00
Simon Binder e8b4f8347c Refactor: Put all query gen code into one compilation unit 2019-10-24 21:54:36 +02:00
Simon Binder cf671ac56b Expand documentation, support DISTINCT selects (#205) 2019-10-24 21:12:31 +02:00
Simon Binder 45a8d8fbb3 IDE: Add navigation support for more types of columns 2019-10-24 20:41:58 +02: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 ccf208b329 Support additional insert modes 2019-10-21 17:14:58 +02:00
Simon Binder 82477d9325 Escape name when writing bool constraint (#201) 2019-10-21 16:34:15 +02:00
Simon Binder 34c9908552 Write basic guide on unit testing with moor 2019-10-20 13:45:54 +02:00
Simon Binder 1f8dfbe887 Call doWhenOpened for customStatement (#199) 2019-10-20 11:39:24 +02:00
Simon Binder 8a8b811643 Fix more sqlparser crashes in the resolver 2019-10-20 11:28:05 +02:00
Simon Binder a69f469444 Support sqlite_master, sqlite_sequence tables (#197) 2019-10-19 16:56:36 +02:00
Simon Binder fd27c878d4 Fix errors in sqlparser that were swallowed before 2019-10-19 16:41:30 +02:00
Simon Binder d8226aeb23 Handle aliases references to rowid (#197) 2019-10-19 16:09:44 +02:00
Simon Binder 263004fe7b Option to use the column name as json key in moor files
Closes #176
2019-10-17 21:44:20 +02:00
Simon Binder 95f37575f8 Optionally use data class name for companions
Closes #185
2019-10-16 21:33:13 +02:00
Simon Binder 4c090af98c Ability to override json keys in moor files (#176) 2019-10-14 19:59:52 +02:00
Simon Binder 438f979ed1 Use a mixin for auto increment columns in test file 2019-10-11 22:12:28 +02:00
Simon Binder ff7d587339 Add real-world example for table inheritance to test 2019-10-11 22:03:32 +02:00
Simon Binder 0b9d4c897b Properly handle overridden elements when parsing columns 2019-10-11 18:00:17 +02:00
Simon Binder 337e260667 Support inheritance in table definitions (#169) 2019-10-11 17:43:48 +02:00
Simon Binder 77fcf7a7ba Release moor and moor_generator 2.0.1, sqlparser 0.3.0+1 2019-10-11 17:24:04 +02:00
Simon Binder 24c4e5c7d4 Don't run analyzer tests on the CI 2019-10-11 16:42:08 +02:00
Simon Binder 5ae3d7c2af Prepare pubspec and changelog for 2.0.1 release 2019-10-11 13:17:50 +02:00
Simon Binder fb85ac80cb Run builder on integration tests, support analyzer 0.38 2019-10-10 17:30:22 +02:00
Simon Binder e66eaa6127 Merge pull request #181 from minia68/master
Make transaction return a value
2019-10-10 17:06:05 +02:00
Simon Binder 47f8dbb90d Make streams emit cached data for multiple listeners
Fixes #178
2019-10-09 22:39:19 +02:00
Simon Binder 720ca43cc4 Re-run build on flutter example app 2019-10-09 21:28:36 +02:00
Simon Binder aef8e15d61 Merge remote-tracking branch 'origin/master' into develop
# Conflicts:
#	moor_generator/CHANGELOG.md
2019-10-09 20:32:25 +02:00
Simon Binder 5510a90583 Fix warnings (2.6-dev SDK), escape \r, constant workaround 2019-10-09 19:48:52 +02:00
Simon Binder c329c409d6 Merge pull request #177 from michaelspiss/patch-1
Fix version solving fail for extras/encryption
2019-10-07 22:39:53 +02:00
Simon Binder 6e32e37dd7 Remove unnecessary type parameter on createCompanion 2019-10-05 22:41:23 +02:00
Simon Binder 718af051ff Optionally disable verification code (#173) 2019-10-05 21:41:20 +02:00
Simon Binder ed03bff4c2 Recognize boolean and datetime column in moor 2019-10-05 21:24:41 +02:00
Simon Binder fb7c3c2a9a Dart API for between expressions (closes #159) 2019-10-05 13:38:34 +02:00
Simon Binder ef1dd8d2c5 Scan \r as whitespace (#170) 2019-10-04 22:21:17 +02:00
Simon Binder 6b1ebac16b Document all public moor apis, enable appropriate lint 2019-10-04 22:19:41 +02:00
Simon Binder 364e3f0c1a Release moor 2.0 2019-10-03 15:39:32 +02:00
Simon Binder ab12380ec1 Merge branch 'develop' into beta 2019-10-03 13:58:05 +02:00
Simon Binder b0d69f346f Make StartWithValueTransformer subscribe in same microtask 2019-10-03 11:39:12 +02:00
Simon Binder c2845cb248 Invalidate cached stream data on update (#166) 2019-10-03 11:28:44 +02:00
Simon Binder a74cc3b624 Create tables sequentially, manually create migrators
(#165)
2019-10-02 22:49:34 +02:00
Simon Binder 20cac9fefd Merge branch 'develop' into beta 2019-10-01 20:39:44 +02:00
Simon Binder 7cae79d76b Document how to debug the plugin, prepare 2.0 release 2019-10-01 17:58:17 +02:00
Simon Binder 742cec4d0e More guides for moor 2.0 2019-10-01 12:07:25 +02:00
Simon Binder 869aaada90 Unit tests for row.read* 2019-09-29 16:33:09 +02:00
Simon Binder 4137f6cffa Write unit tests for DelegateDatabase 2019-09-29 16:21:09 +02:00
Simon Binder 308167dc12 Support mapping BLOBs to literals 2019-09-29 15:18:11 +02:00
Simon Binder 059fc69893 Fix lcov formatting 2019-09-29 14:39:20 +02:00
Simon Binder 5a0c0d9212 Use package:test_coverage for moor subproject 2019-09-29 11:27:35 +02:00
Simon Binder 234a96cd5e Re-enable coverage for everything but moor_generator 2019-09-29 10:51:16 +02:00
Simon Binder 1ba687696f Plugin: Navigation support for table references 2019-09-28 23:15:23 +02:00
Simon Binder d91c69493f Plugin: Navigation for column references in queries 2019-09-28 22:24:40 +02:00
Simon Binder b9f934c1d4 Report information about where a column was declared 2019-09-28 22:01:28 +02:00
Simon Binder 12a6c45a42 Plugin: Fix deadlock when analyzing Dart imports in .moor 2019-09-28 19:21:03 +02:00
Simon Binder 1fc9ccb3cc Plugin: Report navigation targets for import statements 2019-09-27 23:15:08 +02:00
Simon Binder ab787b82be Use existing parser code for auto-complete
This works very well when the user is typing at the end of a statement, but won't provide accurate results when editing in the middle.
2019-09-27 22:06:14 +02:00
Simon Binder b684a7be69 Replace imports of test_api with test 2019-09-26 22:52:20 +02:00
Simon Binder a6cfc5fdd8 Better types for nested expressions, more 2.0 docs 2019-09-26 22:46:19 +02:00
Simon Binder c4f321748a Prepare release for sqlparser 0.3.0 2019-09-25 20:19:39 +02:00
Simon Binder fb68dc0888 Introduce option to generate less query code 2019-09-25 20:01:16 +02:00
Simon Binder 2a782a010e Resolve types of columns in compound select statements 2019-09-25 19:46: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 d9c2b5f342 Parse JOIN and INDEXED as identifiers when appropriate 2019-09-25 11:37:03 +02:00
Simon Binder e0fc4a3af6 Support background isolate in moor_ffi 2019-09-25 10:36:43 +02:00
Simon Binder 75f432c5f4 Merge branch 'develop' into beta 2019-09-24 22:51:09 +02:00
Simon Binder e292a7cff8 Re-comment plugin in analysis options 2019-09-24 22:50:59 +02:00
Simon Binder 8ff0ece29a Make the ffi test run via pub run test 2019-09-24 22:47:32 +02:00
Simon Binder bf6d60b170 Fix column parser not accepting columns without type 2019-09-24 22:45:18 +02:00
Simon Binder 7c4f807907 Prepare moor_ffi package for release 2019-09-24 22:36:09 +02:00
Simon Binder 3e286e27af Improve performance of blob reading/writing with ffi 2019-09-24 21:53:14 +02:00
Simon Binder ba21a594af Fix autocomplete and suggestions in the analyzer plugin 2019-09-24 20:50:23 +02:00
Simon Binder cef3fd0bbe Merge branch 'develop' into beta 2019-09-23 23:12:29 +02:00
Simon Binder 18639a364c Merge branch 'develop' into beta 2019-09-22 21:45:51 +02:00
Simon Binder b99bc820da Add more tests in moor_ffi subproject 2019-09-22 16:26:17 +02:00
Simon Binder 0d56594933 FFI: Custom open behavior, isolate API, docs 2019-09-22 14:21:45 +02:00
Simon Binder d6913af380 FFI: Ability to override loading behavior, async api 2019-09-22 11:10:32 +02:00
Simon Binder 22dee72680 Bump sqflite dependency, integration test for array args 2019-09-21 13:20:19 +02:00
Simon Binder b62ed05a87 Make the lazy executor pass on the GeneratedDatabase 2019-09-20 20:46:54 +02:00
Simon Binder 87c50de1e1 Add LazyDatabase wrapper to create a database async 2019-09-20 20:23:35 +02:00
Simon Binder 7d962a1f01 Fix typo in new override flag 2019-09-20 19:36:09 +02:00
Simon Binder 161f7c0203 Optionally override hashCode and equals in result sets 2019-09-20 19:31:36 +02:00
Simon Binder 448ff10823 Start documenting moor 2.0 features 2019-09-20 19:29:26 +02:00
Simon Binder 4e166f189c Colorize errors in moor files again 2019-09-18 21:40:19 +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 7121bac866 More work on the analyzer plugin
- finish migration to refactored generator
- document how to use the analysis plugin
- better error reporting without redundant messages
2019-09-18 20:48:44 +02:00
Simon Binder 00b2956b35 Allow data class names to be overridden in sql
Closes #147
2019-09-17 15:23:24 +02:00