Simon Binder
7ad8c619f9
moor_flutter: Don't upgrade schema when migration throws ( #584 )
2020-05-28 10:40:33 +02:00
Simon Binder
fee32fc302
Start with transformers in sqlparser
2020-05-24 22:30:25 +02:00
Simon Binder
01e5a47189
Make utility visitor methods an extension
2020-05-24 19:53:36 +02:00
Simon Binder
e772ca0225
Support views in ReferencedTablesVisitor
2020-05-23 15:27:58 +02:00
Simon Binder
9be0a9f79c
Fix result sets generating twice
2020-05-22 20:32:47 +02:00
Simon Binder
be501c277e
Merge pull request #589 from kuhnroyal/fix/min-analyzer-version-missmatch
...
Fix/min analyzer version missmatch
2020-05-22 20:21:46 +02:00
Peter Leibiger
1da495a745
Fix generator required minimum analyzer version
...
`languageVersionMajor/Minor` was added in analyzer version 0.39.5 and is used since 4d463dd145
2020-05-22 18:10:29 +02:00
Simon Binder
3db0fd57f1
Update changelog to include views in sqlparser
2020-05-22 17:33:34 +02:00
Simon Binder
5cb0cd464c
Merge branch 'mqus-views' into develop
2020-05-22 17:29:36 +02:00
Simon Binder
8aca8db941
Merge branch 'views' of https://github.com/mqus/moor into mqus-views
...
# Conflicts:
# sqlparser/test/analysis/schema/from_create_table_test.dart
2020-05-22 17:29:04 +02:00
Simon Binder
b8335b1222
Mention custom result class names in changelog
2020-05-22 17:25:30 +02:00
mqus
98c17765bb
Merge pull request #1 from simolus3/mqus-views
...
Finish analysis for views
2020-05-22 14:07:19 +02:00
Simon Binder
571bae81f1
Document custom result class names
2020-05-21 20:52:58 +02:00
Simon Binder
3955ae8eff
Generated code for custom table names
2020-05-21 20:42:50 +02:00
Simon Binder
8a98b42e62
Optimize row mapping when there is a matching table
2020-05-21 20:21:03 +02:00
Simon Binder
513881b13f
Always use a lambda for select mapping
2020-05-21 19:37:54 +02:00
Simon Binder
6c18eb22fa
Initial tests for custom result classes
2020-05-21 18:59:03 +02:00
Simon Binder
5d93f9fcf9
Analysis support for custom result sets
2020-05-21 15:22:49 +02:00
Simon Binder
f5f6cbeffe
Remove protected and visibleForTesting annotations from QueryEngine
2020-05-20 18:28:45 +02:00
Simon Binder
cbf8191e5d
Fix table sorting for tables referencing themselves ( #586 )
2020-05-20 13:41:40 +02:00
Simon Binder
58ea47a4c2
Add missing return to resultNum
2020-05-19 20:58:52 +02:00
Markus Richter
5596c30cc7
Support subquery expressions in types2 ( #583 )
2020-05-19 19:42:36 +02:00
Simon Binder
65f02cb22c
Prepare 3.1 release of moor, 0.6 or moor_ffi, 0.9 of sqlparser
2020-05-18 20:45:48 +02:00
Simon Binder
ba7fedb4c4
Fix generator tests that were failing due to a stronger assert
2020-05-17 20:26:21 +02:00
Simon Binder
52fd09c041
Fix reading a column without datatype
2020-05-17 15:18:25 +02:00
Simon Binder
f8a516b51a
Use emitsThrough instead of emits
2020-05-17 15:08:24 +02:00
Simon Binder
63e0d61ccb
Fix resolving urls in common backend
2020-05-17 15:00:14 +02:00
Simon Binder
9bb83605e9
Don't crash when analyzing incomplete CREATE TABLE statement ( #578 )
2020-05-17 14:42:48 +02:00
Simon Binder
4d463dd145
Emit a warning if a project's language version is too low ( #577 )
2020-05-17 14:20:18 +02:00
Simon Binder
6b88385755
Rename test files to end with _test.dart
2020-05-16 19:49:00 +02:00
Simon Binder
a1304c537f
Formatting
2020-05-16 19:42:33 +02:00
Simon Binder
888e131d50
Report analysis error for view column mismatches
2020-05-16 19:36:56 +02:00
Simon Binder
58335958c0
Test selecting from a view
2020-05-16 19:29:11 +02:00
Simon Binder
46ba81b672
Interface for columns with type, resolve in ViewReader
2020-05-16 19:16:06 +02:00
Simon Binder
f7e7622b4c
Rename resultset.dart to result_set.dart, format parser test
2020-05-16 18:55:07 +02:00
Markus Richter
df6f6fafa2
Add NamedResultSet type, adress review issues
2020-05-16 13:50:30 +02:00
Simon Binder
df32408a7c
Add destructive migration feature ( #576 )
2020-05-16 13:22:09 +02:00
mqus
0bc2a7548d
Apply suggestions from code review
...
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2020-05-16 12:08:05 +02:00
Simon Binder
58c5e01052
Fix typo
2020-05-16 11:26:31 +02:00
Simon Binder
984052b36c
Add moor_db_viewer to FAQ
2020-05-16 11:19:58 +02:00
Markus Richter
186153e585
Add parser test,advance analyzer,fix review issues
...
Also:
- Add toString method to Literal and alter the one on Reference to make debugging and analysing tests easier
- Add `@required` to columns in SelectStatement constructor to make it clear that it can't be null (required by childNodes getter)
2020-05-15 19:58:16 +02:00
Simon Binder
b57439cced
Add an example for using Value in Companion.insert docs
2020-05-14 15:40:52 +02:00
Simon Binder
5c3671b465
Fix booleans not working as expected in mapFromCompanion ( #559 )
2020-05-13 21:51:08 +02:00
Simon Binder
cf830165e1
Support enum converters for moor files, add documentation
2020-05-13 21:43:58 +02:00
Simon Binder
7b9fa3d9ed
Simplify generation of enum type converters
2020-05-13 20:16:20 +02:00
Markus Richter
d86d7ab7e3
Parser is ready, work on analyzer was started.
2020-05-13 14:29:22 +02:00
Simon Binder
25ee06ab36
Don't attempt to close databases that have never been open ( #560 )
2020-05-13 11:12:17 +02:00
Simon Binder
0f2ff8c97a
Implicitly create type converters for enums, Dart api ( #478 )
2020-05-12 21:47:11 +02:00
Simon Binder
4611ecc3c8
moor_ffi: Workaround to load sqlite3 on old Android devices
2020-05-12 19:41:16 +02:00
Simon Binder
04f24d3184
Ignore broken offset calculation for autocomplete
2020-05-12 13:38:28 +02:00