Commit Graph

376 Commits

Author SHA1 Message Date
Simon Binder ef40045846
Don't require type parameters on Variable 2021-01-26 21:08:15 +01:00
Simon Binder 821a1009cf
Also format generated SQL for schema entities 2021-01-26 14:33:33 +01:00
Simon Binder 76e6d2d219
Fix whitespace handling in new SQL generator 2021-01-24 12:27:53 +01:00
Simon Binder 4ba12c4868
Strip whitespace and comments from generated queries 2021-01-23 21:03:03 +01:00
Simon Binder 362b61a178
Add trim() function for text (#1012) 2021-01-21 20:16:42 +01:00
Simon Binder 6c1650151e
Run migrated tests in strong null safety 2021-01-20 12:50:21 +01:00
Simon Binder 896d0f90c7
Migrate more tests to null safety 2021-01-20 12:30:59 +01:00
Simon Binder e07397006f
Remove SelectableUtils extension 2021-01-20 12:06:48 +01:00
Simon Binder 5ff74c7bcb
Improve table analysis, parse key ordering (#1007) 2021-01-18 14:44:05 +01:00
Simon Binder b8eed2f75b
Make order by placeholders optional (#998) 2021-01-08 22:30:17 +01:00
Simon Binder 5e8cd53bc6
Use handwritten mocks instead of generating them 2021-01-06 19:36:50 +01:00
Simon Binder ab105cf77f
Throw from TypedResult.read/readTable if there's no data 2021-01-06 12:59:09 +01:00
Simon Binder c47471a3db
Test for migrations on without rowid tables 2020-12-16 19:26:10 +01:00
Simon Binder 36edcf0ed6
Make getSingle() and watchSingle() non-nullable 2020-12-14 20:22:27 +01:00
Simon Binder 6aa022e547
Add nullability hints, generate nullable variables 2020-12-14 18:35:19 +01:00
Simon Binder 5db10342b0
Fix nnbd generation around type converters (#968) 2020-12-14 15:13:59 +01:00
Simon Binder a749f38e2b
Make columns from LEFT OUTER joins nullable 2020-12-12 23:22:21 +01:00
Simon Binder 1edcc634b1
Fix bug with VmDatabase.opened 2020-12-07 22:03:55 +01:00
Simon Binder cf8215ecfe
Add Migrator.renameTable (#956) 2020-12-04 21:15:43 +01:00
Simon Binder 35d2d1fca8
Merge branch 'develop' into nnbd
# Conflicts:
#	moor/test/data/tables/custom_tables.g.dart
2020-12-04 20:01:22 +01:00
Simon Binder 87d6e2ad31
Remove some usages of dynamic 2020-11-26 17:22:59 +01:00
Simon Binder 0c075a2b44
Support overriding column getters and table classes (#932) 2020-11-23 20:01:31 +01:00
Simon Binder 51e62d4e2f
Run tests with null assertions enabled 2020-11-22 17:40:53 +01:00
Simon Binder 05feecf32c
Don't run isolate tests in GitHub actions 2020-11-20 19:36:03 +01:00
Simon Binder 0c9f3a3286
Fix tests for null safety 2020-11-19 18:10:43 +01:00
Simon Binder 01258d25ab
Fix nnbd code emitted by the generator 2020-11-19 14:06:51 +01:00
Simon Binder aec69a357a
Migrate to generated mockito 2020-11-18 22:53:27 +01:00
Simon Binder 13056b0cf6
Migrate core libraries 2020-11-18 17:07:05 +01:00
Simon Binder b2ef4ddbcf
Optionally generate named parameters (#918) 2020-11-16 17:03:22 +01:00
Simon Binder 08470abd47
Fix VmDatabase.opened reporting wrong open status 2020-11-11 18:29:45 +01:00
Simon Binder 5ebc7a9040
Escape keywords with double instead of backticks 2020-11-11 18:22:59 +01:00
Simon Binder b9c007f782
Add VmDatabase.opened factory 2020-11-11 10:59:03 +01:00
Simon Binder c6a6c9ac5a
Another tests for streams and migrations 2020-11-09 18:24:30 +01:00
Simon Binder 1f2dca0240
Add test to reproduce #910 2020-11-08 17:02:50 +01:00
Simon Binder 56d89b8676
Add extensions for isNull and isNotNull 2020-11-03 18:45:38 +01:00
Simon Binder ca4b2b7d8c
Use TEXT instead of VARCHAR (#886) 2020-10-23 19:29:08 +02:00
Peter Leibiger d0fae0b814
Recreate migration test failure with unique constraint 2020-10-13 12:38:16 +02:00
Simon Binder 14aa07fffa
Add another test for alterTable 2020-10-12 19:16:28 +02:00
Simon Binder 3470d0485a
Add current_time_millis SQL function (#857) 2020-10-11 11:25:21 +02:00
Simon Binder 9d9658248b
Add renameColumn method to migrator 2020-10-11 11:14:02 +02:00
Simon Binder f295af1398
Add closeExistingInstances api for #835 2020-09-30 15:39:02 +02:00
Simon Binder 430ba5b175
More tests for new alterTable migration, reword docs 2020-09-25 12:34:46 +02:00
Simon Binder 0b8aa9b3dd
Also fix sqlite_schema usages in test 2020-09-24 18:43:04 +02:00
Simon Binder 3fdac823dd
More docs, tests for advanced migrations 2020-09-18 19:15:26 +02:00
Simon Binder 9d9a4f4065
Add customStatement to batch api (#817) 2020-09-11 11:19:18 +02:00
Simon Binder 70096357e0
Add date() function to query builder 2020-09-06 13:26:56 +02:00
Simon Binder d2996af72e
Add cast function to query builder 2020-09-04 13:25:05 +02:00
Simon Binder a317bf253a
Begin with new api for complex table migrations 2020-09-04 13:13:26 +02:00
Simon Binder d6a321ca3c
Add generate_values_in_copy_with build option (#795) 2020-09-01 13:34:02 +02:00
Simon Binder b59d5b8f58
Simplify moor files integration test 2020-08-30 13:51:52 +02:00