Commit Graph

51 Commits

Author SHA1 Message Date
Simon Binder e79124e5af
Fix order of arguments when reading custom types 2023-11-09 19:03:32 +01:00
Simon Binder 62bda167bd
Start supporting custom column types in analyzer 2023-10-07 17:16:12 +02:00
Simon Binder 2cca2f517e
Desugar duplicate variables 2023-07-31 23:47:41 +02:00
Simon Binder 8d3f490604
Add multi-dialect generation option 2023-07-26 23:59:06 +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
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
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 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder fe8611c5f4
Avoid unecessary async in lambda 2023-01-27 16:30:05 +01:00
Simon Binder e562cb9d21
Support type converters in queries 2023-01-05 23:04:36 +01:00
Simon Binder a463ee14cb
Support existing row classes in the generator 2022-12-27 18:14:02 +01:00
Simon Binder 649af15333
Analysis support for existing query row types 2022-12-27 00:15:47 +01:00
Simon Binder 44cae65170
Order all result columns syntactically 2022-12-26 22:45:35 +01:00
Simon Binder e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables 2022-12-18 18:55:17 +01:00
Peter Leibiger a3ce27f4e0
Fix typos 2022-12-13 01:40:21 +01:00
Simon Binder 5a8dd923d6
Add more examples to modular project 2022-12-06 21:19:20 +01:00
Alexander Wilde ec01ad275a Various fixes for modular code gen 2022-12-05 17:16:06 +00:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Simon Binder f4e45584ec
Begin optional modular code generation 2022-11-20 17:28:27 +01:00
Simon Binder c69d1a6628
Delete old analyzer and model 2022-11-11 18:02:30 +01:00
Simon Binder e3b6c56f08
Fix syntax error in generated code for queries 2022-10-19 23:35:54 +02:00
Simon Binder 81ba7686c7
Generate queries with new analyzer 2022-10-13 22:05:42 +02:00
Daniel Brauner 025bb7c44b
Generated functions for returning queries return Iterable<_> instead of List<_> (#2044)
* fix for missing toList

* removed unnecessary toList
2022-09-12 19:05:45 +02:00
North101 a927d3717a
Typealiases and easier defaults for scoped components
Closes #1993.
2022-08-20 00:22:28 +02:00
Simon Binder ea1c635da8
Stop generating unecessary null check 2022-08-16 17:36:29 +02:00
Simon Binder 8f6878292a
Migrate to `package:lints` 2022-08-13 23:33:05 +02:00
Simon Binder a4fe582f25
Collect documentation for 2.0 release 2022-08-13 14:18:17 +02:00
Simon Binder b9a605ed25
Allow async mappings from SQL to row classes
When existing, custom row classes are used, drift now supports using a
(potentially asynchronous) static method to load them instead of just
a named constructor like before.
Tables are also changed to support the `map` method being async for
cases where that is needed. The same applies to custom queries which
may have to be async now.
2022-08-12 22:55:02 +02:00
Simon Binder 50a65b236a
Upgrade to latest analyzer 2022-08-06 22:11:44 +02:00
Simon Binder 22d5f0a8ae
Fix tests 2022-07-19 22:55:08 +02:00
Simon Binder cf8d2618fa
First attempt to get it running again 2022-07-18 23:28:12 +02:00
Simon Binder 388b31e9ea
Remove some moor references in drift_dev 2022-07-03 22:20:24 +02:00
Simon Binder 116f98269d
Always enable the new SQL generation mode 2022-07-03 21:53:17 +02:00
Simon Binder 52c07c9d3f
Remove support for non-nnbd code 2022-07-01 21:51:14 +02:00
Simon Binder bfad77788e
Handle nullable converters for compiled queries 2022-06-28 22:34:11 +02:00
Alexander Wilde 345faa91c7 TypeConverter mapToDart -> fromSql, mapToSql -> toSql 2022-06-22 23:50:19 +01:00
Simon Binder 06af930941
Explicit null-aware types on type converters 2022-06-22 23:56:15 +02:00
Simon Binder 6b6cd30a0c
Move nested query analysis to drift_dev 2022-01-28 21:55:03 +01:00
Daniel Brauner b5acbbf374 Bug fixes and support for dart placeholder 2022-01-20 12:08:39 +01:00
Daniel Brauner cc3cfea5fa Split map function in async map and sync map 2022-01-18 22:50:33 +01:00
Daniel Brauner d74860ec49 Add support for nested query variables 2022-01-18 22:21:54 +01:00
Daniel Brauner e99b66486d Fixed trailing comma bug and nameOfCreationMethod 2022-01-17 23:23:39 +01:00
Daniel Brauner 23de4c5cee Add code generation for nested result queries 2022-01-17 22:19:31 +01:00
Simon Binder 19bd92bfd9
Remove redundant imports 2021-12-09 14:10:51 +01:00
westito 9359defcac Add null aware type converters option 2021-11-24 23:49:13 +01:00
westito fad654a5aa
PostgreSQL support (#1507)
Support PostgreSQL as a dialect in the main package and with an implementation provided in another package.

Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-11-11 14:40:41 +01:00
Simon Binder 6bcb0070b0
Write explicitly inxed variables in new code 2021-10-19 18:15:53 +02:00