Simon Binder
|
349b245089
|
Write implementation for Dart placeholders
|
2019-09-14 16:42:24 +02:00 |
Simon Binder
|
bf7c9feddf
|
Write parameter declarations for Dart placeholders
|
2019-09-14 12:26:58 +02:00 |
Simon Binder
|
7a8191fe7e
|
Fix moor queries not expanding array vars properly
|
2019-09-14 09:27:36 +02:00 |
Simon Binder
|
c8ae99b52e
|
Breaking changes for the upcoming version
1. Removes transaction parameter in callbacks, custom queries
2. Removes MigrationStrategy.onFinished
|
2019-09-13 21:04:15 +02:00 |
Simon Binder
|
3097bb0591
|
Don't write get/watch methods for queries declared in moor
|
2019-09-13 20:23:48 +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
|
4af370f0cb
|
Tests: Verify that an executor is open when used.
|
2019-08-30 19:32:44 +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
|
4e83c0275b
|
Generate constructor for companions with @required fields
|
2019-08-29 13:54:08 +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
|
397d3f2383
|
Support absent values on INTEGER PRIMARY KEY
|
2019-08-23 22:50:15 +02:00 |
Simon Binder
|
4ce9e12c0e
|
Write copyWith methods in companion classes
Fixes #102
|
2019-08-16 15:01:03 +02:00 |
Simon Binder
|
7d89f12aa7
|
Use explicit indices for array parameters
|
2019-08-15 21:26:27 +02:00 |
Simon Binder
|
aa6fea6caa
|
Fix wrong double primary key on generated tables
|
2019-08-01 20:14:42 +02:00 |
Simon Binder
|
635b902352
|
Add test case without any additional constraints
|
2019-07-30 10:33:32 +02:00 |
Simon Binder
|
b1820ef5aa
|
Generate code to match default values for CREATE TABLE
|
2019-07-30 10:30:06 +02:00 |
Simon Binder
|
aa3706ae9d
|
Support table constraints in CREATE TABLE
|
2019-07-30 10:13:47 +02:00 |
Simon Binder
|
634b1adb72
|
Support includes on the @UseDao annotation as well
|
2019-07-29 15:19:58 +02:00 |
Simon Binder
|
e0a82b0e32
|
Finally generate table classes from sql
|
2019-07-29 14:22:39 +02:00 |
Simon Binder
|
b4cdcf0431
|
Support type converters in compiled custom statements
|
2019-07-28 00:02:17 +02:00 |
Simon Binder
|
dbda5dccc1
|
Cache type converters in static fields
|
2019-07-27 22:44:44 +02:00 |
Simon Binder
|
21956a6b48
|
Use variables instead of failing to write string literals
Fixes #88
|
2019-07-26 09:25:55 +02:00 |
Simon Binder
|
b3d381afe6
|
Rollback transactions when callback throws
Closes #83
|
2019-07-23 09:06:02 +02:00 |
Simon Binder
|
35e6ed67df
|
Use new GeneratorSession for the writer
|
2019-07-20 10:18:41 +02:00 |
Simon Binder
|
c5e9e8cfc8
|
Start generator refactoring
Remove global shared state in favor of sessions that are only valid for a single build step.
|
2019-07-18 18:01:27 +02:00 |
Simon Binder
|
ff93af231c
|
Write correct mapping code for custom objects
|
2019-07-18 12:53:26 +02:00 |
Simon Binder
|
bf4d16add6
|
Write verification and to-sql mapping for custom columns
|
2019-07-18 12:21:10 +02:00 |
Simon Binder
|
c2bff3ae42
|
API and parser for custom types
|
2019-07-18 12:02:16 +02:00 |
Simon Binder
|
0e7ee6114b
|
Avoid writing duplicate mapping methods
|
2019-07-10 19:37:15 +02:00 |
Simon Binder
|
02a8dabd63
|
Fix crash when variables appear more than once
|
2019-07-10 18:25:18 +02:00 |
Simon Binder
|
df05e643e0
|
Migrate example to 1.6, update readme
|
2019-07-10 17:55:57 +02:00 |
Simon Binder
|
809f239ca3
|
Generate code for array variables in compiled statements
|
2019-07-07 16:04:55 +02:00 |
Simon Binder
|
b9e9135ac3
|
Write "DEFAULT VALUES" in insert when appropriate
|
2019-07-02 22:42:49 +02:00 |
Simon Binder
|
316f9e1052
|
Only resolve columns declared in scope of a statement
Fixes #52
|
2019-07-02 12:28:54 +02:00 |
Simon Binder
|
3dddc6993a
|
Remove outdated todo entries
|
2019-07-01 21:37:08 +02:00 |
Simon Binder
|
464754267e
|
Document new features for version 1.5
|
2019-06-30 22:16:58 +02:00 |
Simon Binder
|
f5492b8bcb
|
Generate code for update and delete statements
|
2019-06-30 19:34:54 +02:00 |
Simon Binder
|
f8834f0e15
|
More fluent api to define queries
|
2019-06-30 13:35:13 +02:00 |
Simon Binder
|
b4de942915
|
Write query engine override param for generated queries
This allows them to be used in transactions and post-
migration callbacks.
|
2019-06-30 13:09:07 +02:00 |
Simon Binder
|
53ea5835a8
|
For custom queries, use a matching data class if possible
|
2019-06-30 12:01:46 +02:00 |
Simon Binder
|
22f78589db
|
Support custom queries in daos
|
2019-06-29 15:51:23 +02:00 |
Simon Binder
|
53d57d6a96
|
Refactor generator: Extract common operations
|
2019-06-29 15:23:14 +02:00 |
Simon Binder
|
33682a0ad1
|
Write readsFrom field for custom queries
|
2019-06-29 14:04:01 +02:00 |
Simon Binder
|
646987ad69
|
Correctly write variables in analyzed queries
|
2019-06-29 13:47:33 +02:00 |
Simon Binder
|
2a8edbde0d
|
Write implementation methods for queries
|
2019-06-29 11:23:06 +02:00 |
Simon Binder
|
40a4ebdadf
|
Started to integrate the sqlparser into moor generator
|
2019-06-28 23:41:27 +02:00 |
Simon Binder
|
62c5106e7d
|
Migrate tests to companion
|
2019-06-21 20:29:42 +02:00 |
Simon Binder
|
0616fb7082
|
Migrate to update companions everywhere :)
|
2019-06-21 20:08:42 +02:00 |
Simon Binder
|
0abc3993f4
|
Fully migrate to new update companions
|
2019-06-21 19:48:18 +02:00 |
Simon Binder
|
eee11d53d3
|
Start to migrate verification logic with update companions
|
2019-06-21 10:48:42 +02:00 |
Simon Binder
|
ecf6740cb7
|
Constraints on type parameters for data classes
|
2019-06-21 10:27:14 +02:00 |
Simon Binder
|
6ac9109c0a
|
Fix dead code in generated update companions
|
2019-06-21 09:44:38 +02:00 |
Simon Binder
|
b79611e6e0
|
Backwards compatibility: Use DataClasses as companion
|
2019-06-21 09:42:42 +02:00 |
Simon Binder
|
ec2592203c
|
Generate update companions for data classes
|
2019-06-21 09:16:22 +02:00 |
Simon Binder
|
5fc921aefc
|
Provide detailed error messages for inconsistent data
|
2019-06-16 14:44:43 +02:00 |
Simon Binder
|
9241bbccc1
|
Better integration of floating-point values
|
2019-06-08 15:04:49 +02:00 |
Simon Binder
|
8cc2c21c9a
|
Annotation to change the generated json key
|
2019-06-04 22:04:21 +02:00 |
Simon Binder
|
023c055e44
|
Implement new serialization api in generated classes
|
2019-05-23 19:17:47 +02:00 |
Simon Binder
|
5db9a5f87d
|
Actually use the real type, add parent for data classes
|
2019-05-17 21:25:02 +02:00 |
Simon Binder
|
b2345a9f28
|
Add real datatype for numeric values
|
2019-05-12 10:53:00 +02:00 |
Simon Binder
|
f5a1bc7edd
|
Add constant default value test case
|
2019-05-09 15:30:17 +02:00 |
Simon Binder
|
cd520e5d1e
|
Fix syntax error in generated code with empty primary key
|
2019-04-29 18:25:03 +02:00 |
Simon Binder
|
211bf56ae7
|
Fix use of primary key in migrations
|
2019-04-29 18:04:40 +02:00 |
Simon Binder
|
333e71f0a5
|
Tests for custom table constraints
|
2019-04-19 21:36:00 +02:00 |
Simon Binder
|
f28eb13b4c
|
Fix hashcodes, document joins
|
2019-04-06 13:11:49 +02:00 |
Simon Binder
|
ab5ac57778
|
Use jenkins hash
|
2019-04-05 17:47:51 +02:00 |
Simon Binder
|
040f54d004
|
Write default expressions in column creations
|
2019-04-01 15:20:01 +02:00 |
Simon Binder
|
d284aca4f6
|
Improve examples app, fix many issues with joins
|
2019-04-01 12:27:13 +02:00 |
Simon Binder
|
e36470211c
|
Implement transactions
|
2019-03-31 17:06:22 +02:00 |
Simon Binder
|
9ca52d7f87
|
Use aliases in the operations
|
2019-03-30 19:21:44 +01:00 |
Simon Binder
|
df2a681410
|
Preparation for aliased tables
|
2019-03-30 18:48:09 +01:00 |
Simon Binder
|
9490cd22fe
|
Finish custom constraints implementation
|
2019-03-27 18:37:29 +01:00 |
Simon Binder
|
3e1cbee3c6
|
Implement fromJson factory in data classes.
|
2019-03-15 17:56:39 +01:00 |
Simon Binder
|
e7ece27528
|
Implement insertOrReplace method for insert statements
|
2019-03-15 12:56:22 +01:00 |
Simon Binder
|
5de1656e07
|
Memoized getters for generated classes
|
2019-03-10 20:04:32 +01:00 |
Simon Binder
|
e3fbbb8c13
|
Implement a BlobColumn to hold arbitrary data
|
2019-03-10 19:45:32 +01:00 |
Simon Binder
|
d506d54315
|
Bugfixes, formatting, and finalizing transactions
|
2019-03-10 15:08:29 +01:00 |
Simon Binder
|
cbd217317a
|
Let data classes override toString()
|
2019-03-10 12:54:50 +01:00 |
Simon Binder
|
09d047a868
|
Tests for transactions
|
2019-03-10 12:38:53 +01:00 |
Simon Binder
|
d70b447c65
|
Fix some typos
|
2019-03-09 20:35:29 +01:00 |
Simon Binder
|
4d80ff77c9
|
Finalize renaming
|
2019-03-09 17:02:56 +01:00 |
Simon Binder
|
62900a93a9
|
Rename project to "moor"
|
2019-03-09 16:37:37 +01:00 |