Commit Graph

528 Commits

Author SHA1 Message Date
Simon Binder 1a4ac27415
Find variables reliably 2023-08-01 11:20:05 +02:00
Simon Binder 2cca2f517e
Desugar duplicate variables 2023-07-31 23:47:41 +02:00
Simon Binder 28e44cbea8
First support for MariaDB in compiled queries 2023-07-27 11:16:58 +02:00
Simon Binder 1c5432026c
Merge branch 'develop' into Banana-develop 2023-07-27 10:29:25 +02:00
Simon Binder 5e32e549ea
Add changelog entry for`dialects` option 2023-07-27 10:22:37 +02:00
Simon Binder 8d3f490604
Add multi-dialect generation option 2023-07-26 23:59:06 +02:00
Simon Binder 94c4c1a8e0
Document #2537 better 2023-07-25 23:24:08 +02:00
Simon Binder e433cff932
Update docs for nested columns 2023-07-24 21:10:04 +02:00
Simon Binder 5ed6115b0d
Fix outdated tests in drift_dev 2023-07-24 20:54:32 +02:00
Simon Binder 6a36957a85
Don't generate async mapping if not needed 2023-07-24 20:50:43 +02:00
Simon Binder 941409381b
Tests for generalized nested columns 2023-07-24 20:08:49 +02:00
BananaMasterz 78d6064634 introduce SqlDialect.escape DO NOT MERGE until Column.escapedName is fixed (currently hardcoded for mariadb) 2023-07-24 16:32:35 +03:00
Simon Binder 5b7e011021
Fix generation in drift package 2023-07-24 00:14:40 +02:00
Simon Binder 3f74d65e69
Support nested columns for any result set 2023-07-23 23:57:00 +02:00
BananaMasterz d2c3532c3f using backticks instead of double quotes to escape and adding bool check constraint for mariadb
DO NOT MERGE THIS since Column.escapedName is hardcoded for mariadb dialect!
2023-07-19 18:17:48 +03:00
BananaMasterz 192472201f auto increment support for MariaDB 2023-07-19 11:42:44 +03:00
Simon Binder 625eacf5f1
Add parseMultiple API to sqlparser (#2519) 2023-07-16 00:29:29 +02:00
Simon Binder d0db9ac02f
Prepare 2.10 drift release 2023-07-13 16:53:51 +02:00
Simon Binder b0946df3b7
Warn about implicitly added Dart tables 2023-07-05 20:51:30 +02:00
Simon Binder 312fa3219f
Add docs for step-by-step migrations 2023-07-01 18:11:41 +02:00
Simon Binder ed9aeb866a
Add step-by-step migration API 2023-07-01 16:41:22 +02:00
Simon Binder 8b7872fc67
Start with generator for all schema versions 2023-06-28 15:54:32 +02:00
Simon Binder 81315c3d69
Migrate mentions of `flutter pub run` 2023-06-19 16:09:47 +02:00
Simon Binder 5fe28cbf37
Update dependency constraint to drift in drift_dev 2023-06-18 21:32:30 +02:00
Simon Binder af917b1f71
Prepare 2.9.0 release 2023-06-18 16:37:51 +02:00
Simon Binder d465776726
Merge branch 'web-v2' into develop 2023-06-17 22:51:49 +02:00
Simon Binder b7b1bcb99d
Add changelog entry for fatal warnings 2023-06-13 22:13:23 +02:00
Simon Binder 4411e0c459
Add `fatal_warnings` build option 2023-06-13 22:08:07 +02:00
Simon Binder 9f2405be26
Merge branch 'develop' into web-v2 2023-06-04 22:10:44 +02:00
Simon Binder 232140c083
Prepare minor release 2023-06-01 11:26:57 +02:00
Simon Binder e2fe4228ad
Make driver error fatal in tests 2023-05-30 13:53:03 +02:00
Simon Binder 054b91b507
Don't warn about unrecognized Dart imports 2023-05-23 16:18:01 +02:00
Simon Binder 451bc9c930
Load imports for Dart files too (#2433) 2023-05-23 15:58:15 +02:00
Simon Binder 5db8d58b72
Add some protocol messages for wasm init 2023-05-18 22:24:09 +02:00
Simon Binder f5ae390284
Better mechanism to determine table count 2023-05-16 11:09:29 +02:00
Simon Binder a3ca77b5f8
Always write qualified column references from SQL 2023-05-16 10:51:33 +02:00
Simon Binder f11d1bdd83
Prepare publishing drift_dev 2.8.1 2023-05-15 08:58:37 +02:00
Simon Binder 1d63ccb3f1
Fix annotating top-level types and extensions
By not using a `SimpleIdentifier` AST node for class and extension
names, the code used to detect imports for Dart code was broken.
Closes #2423
2023-05-14 21:54:51 +02:00
Simon Binder 78299f30d3
Fix expectation in record writer test 2023-05-12 22:45:43 +02:00
Simon Binder 28417c52af
Fix lints and warnings added in Dart 3.0 2023-05-12 22:42:21 +02:00
Simon Binder 20b75bd7e3
Use unifying type visitor instead of custom logic 2023-05-10 22:28:51 +02:00
Simon Binder 18868221d9
Support doc comments for columns in drift files 2023-05-10 12:00:44 +02:00
Simon Binder 1dad8a00d8
Prepare 2.8.0 release 2023-05-10 10:24:58 +02:00
Simon Binder 052abfbab2
Add safety fallback for new types being added 2023-05-10 10:18:24 +02:00
Simon Binder 45dc099440
Support analyzer 5.12 2023-05-10 10:13:16 +02:00
Simon Binder ceba4e3c1b
Remove unused imports 2023-05-03 19:01:41 +02:00
Simon Binder b2b37666bd
Add version for intermediate sources if needed 2023-05-03 17:45:39 +02:00
Simon Binder 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder 5caa948243
Improve error handling for missing tables in query 2023-04-19 23:24:24 +02:00
Simon Binder f8e7d2335a
Raise minimum language version to 2.13
Drift uses generalized typdefs in generated code, which only became
available in Dart 2.13.
2023-04-12 21:27:06 +02:00