Migrate to workspace

This commit is contained in:
Simon Binder
2025-08-17 16:11:07 +02:00
parent 9bbb57a740
commit 66fe2ddc96
41 changed files with 1418 additions and 122 deletions
+3 -14
View File
@@ -1,9 +1,10 @@
name: drift_docs
description: Documentation website for the drift project.
publish_to: none
resolution: workspace
environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
flutter:
@@ -32,7 +33,7 @@ dependencies:
dev_dependencies:
build_runner: ^2.4.11
build_verify: ^3.1.0
lints: ^5.1.0
lints: ^6.0.0
build: ^3.0.0-0
build_web_compilers: ^4.0.0
json_serializable: ^6.1.6
@@ -48,17 +49,5 @@ dev_dependencies:
version: ^0.0.19
sass_builder: ^2.2.1
dependency_overrides:
drift_flutter:
path: ../drift_flutter
drift:
path: ../drift
drift_dev:
path: ../drift_dev
drift_postgres:
path: ../extras/drift_postgres
sqlparser:
path: ../sqlparser
flutter:
uses-material-design: true
+2 -1
View File
@@ -4,6 +4,7 @@ version: 2.28.1
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- drift
@@ -13,7 +14,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
async: ^2.10.0
+2 -1
View File
@@ -4,6 +4,7 @@ version: 2.28.1
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- codegen
@@ -15,7 +16,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
charcode: ^1.3.1
+3 -2
View File
@@ -4,6 +4,7 @@ version: 0.2.5
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- drift
@@ -13,7 +14,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: ">=3.4.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
drift: ^2.21.0
@@ -28,7 +29,7 @@ dependencies:
dev_dependencies:
build_runner: ^2.4.14
drift_dev: ^2.21.0
lints: ^5.1.0
lints: ^6.0.0
test: ^1.25.0
flutter_test:
sdk: flutter
@@ -117,7 +117,7 @@ Future<void> main() async {
}
class EmptyDb extends GeneratedDatabase {
EmptyDb(QueryExecutor q) : super(q);
EmptyDb(super.q);
@override
final List<TableInfo> allTables = const [];
@override
+1 -1
View File
@@ -2,7 +2,7 @@
///
/// The [SqfliteQueryExecutor] class can be used as a drift database
/// implementation based on the `sqflite` package.
library drift_sqflite;
library;
import 'dart:async';
import 'dart:io';
+3 -2
View File
@@ -4,6 +4,7 @@ version: 2.0.1
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- drift
@@ -14,7 +15,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: '>=2.12.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift: ^2.0.0
@@ -26,7 +27,7 @@ dependencies:
dev_dependencies:
integration_test:
sdk: flutter
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter
drift_testcases:
+1 -1
View File
@@ -4,7 +4,7 @@ import 'package:drift_flutter/drift_flutter.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' show Colors;
import 'package:path_provider/path_provider.dart';
import 'package:riverpod/riverpod.dart';
import 'package:riverpod/legacy.dart';
import 'connection/connection.dart' as impl;
// Manually generated by `drift_dev make-migrations` - this file makes writing
+1
View File
@@ -1,4 +1,5 @@
import 'package:riverpod/riverpod.dart';
import 'package:riverpod/legacy.dart';
import '../../database/database.dart';
+8 -7
View File
@@ -1,11 +1,12 @@
name: app
description: A cross-platform todo tracker built with drift.
publish_to: "none"
resolution: workspace
version: 1.0.0+1
environment:
sdk: ">=3.0.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
flutter:
@@ -13,22 +14,22 @@ dependencies:
drift: ^2.23.1
drift_dev: ^2.23.1
drift_flutter: ^0.2.4
file_picker: ^8.0.0
file_picker: ^10.0.0
flutter_colorpicker: ^1.0.3
flutter_riverpod: ^2.3.0
go_router: ^14.2.0
intl: ^0.19.0
flutter_riverpod: ^3.0.0-dev
go_router: ^16.1.0
intl: ^0.20.2
sqlite3_flutter_libs: ^0.5.5
sqlite3: ^2.0.0
path_provider: ^2.0.9
path: ^1.8.0
riverpod: ^2.3.0
riverpod: ^3.0.0-dev
stack_trace: ^1.11.1
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
build_runner: ^2.1.8
# We use this to compile the shared web worker for the web database. This dependency
# isn't required for most apps. You only need it if you want to target the web, use
+3 -2
View File
@@ -3,9 +3,10 @@ description: A small Flutter app demonstrating how to use drift with encryption.
publish_to: 'none'
version: 1.0.0+1
resolution: workspace
environment:
sdk: ">=3.3.0 <4.0.0"
sdk: ">=3.5.0 <4.0.0"
dependencies:
drift: ^2.0.2+1
@@ -19,7 +20,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
drift_dev: ^2.0.2
build_runner: ^2.2.0
@@ -1,8 +1,9 @@
name: flutter_web_worker_example
description: An absolute bare-bones flutter web app.
resolution: workspace
environment:
sdk: "^3.3.0"
sdk: "^3.5.0"
flutter: ">=2.5.2"
dependencies:
@@ -15,5 +16,5 @@ dependencies:
dev_dependencies:
build_runner: ^2.1.4
build_web_compilers: ^4.0.3
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
drift_dev:
+3 -2
View File
@@ -1,15 +1,16 @@
name: migrations_example
publish_to: none
version: 1.0.0
resolution: workspace
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift:
drift_dev:
dev_dependencies:
lints: ^4.0.0
lints: any # resolved by workspace, updated globally
build_runner: ^2.0.0
test: ^1.15.4
+3 -2
View File
@@ -1,9 +1,10 @@
name: modular
version: 1.0.0
publish_to: none
resolution: workspace
environment:
sdk: '>=3.3.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift:
@@ -11,5 +12,5 @@ dependencies:
dev_dependencies:
build_runner: ^2.3.2
drift_dev:
lints: ^4.0.0
lints: any # resolved by workspace, updated globally
test: ^1.25.14
+3 -2
View File
@@ -1,8 +1,9 @@
name: client
publish_to: none
resolution: workspace
environment:
sdk: ^3.2.5
sdk: ^3.5.0
dependencies:
drift: ^2.15.0
@@ -11,7 +12,7 @@ dependencies:
path: ../shared/
dev_dependencies:
lints: ^2.1.0
lints: any # resolved by workspace, updated globally
test: ^1.24.0
drift_dev: ^2.15.0
build_runner: ^2.4.8
@@ -66,7 +66,8 @@ void main(List<String> args) async {
});
// Configure a pipeline that logs requests.
final handler = Pipeline().addMiddleware(logRequests()).addHandler(router);
final handler =
Pipeline().addMiddleware(logRequests()).addHandler(router.call);
// For running in containers, we respect the PORT environment variable.
final port = int.parse(Platform.environment['PORT'] ?? '8080');
+3 -2
View File
@@ -1,8 +1,9 @@
name: server
publish_to: none
resolution: workspace
environment:
sdk: ^3.2.5
sdk: ^3.5.0
dependencies:
args: ^2.4.0
@@ -18,6 +19,6 @@ dependencies:
dev_dependencies:
build_runner: ^2.4.8
http: ^1.1.0
lints: ^2.1.0
lints: any # resolved by workspace, updated globally
test: ^1.24.0
drift_dev: ^2.15.0
+3 -2
View File
@@ -1,8 +1,9 @@
name: shared
publish_to: none
resolution: workspace
environment:
sdk: ^3.2.5
sdk: ^3.5.0
# Add regular dependencies here.
dependencies:
@@ -11,6 +12,6 @@ dependencies:
drift_dev: ^2.15.0
dev_dependencies:
lints: ^2.1.0
lints: any # resolved by workspace, updated globally
test: ^1.24.0
build_runner: ^2.4.8
+3 -4
View File
@@ -1,11 +1,10 @@
name: web_worker_example
description: Simple web app showing how to compile a custom drift worker with build_web_compilers.
publish_to: none
# version: 1.0.0
#homepage: https://www.example.com
resolution: workspace
environment:
sdk: '^3.5.0'
sdk: ^3.5.0
dependencies:
drift:
@@ -14,5 +13,5 @@ dependencies:
dev_dependencies:
build_runner: ^2.1.11
build_web_compilers: ^4.0.0
lints: ^4.0.0
lints: any # resolved by workspace, updated globally
drift_dev:
+1 -1
View File
@@ -23,7 +23,7 @@ void main() async {
output.innerHTML = ''.toJS;
for (final row in rows) {
output.appendChild(HTMLLIElement()..text = row.value);
output.appendChild(HTMLLIElement()..textContent = row.value);
}
});
+2 -1
View File
@@ -1,9 +1,10 @@
name: with_built_value
publish_to: none
version: 1.0.0
resolution: workspace
environment:
sdk: '>=3.3.0 <4.0.0'
sdk: ^3.5.0
dependencies:
drift: ^2.11.0
@@ -4,9 +4,10 @@ version: 4.1.0
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ^3.5.0
dependencies:
moor: ^4.0.0
+3 -2
View File
@@ -4,15 +4,16 @@ version: 4.6.1+2
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
environment:
sdk: '>=2.13.0 <3.0.0'
sdk: ^3.5.0
dependencies:
async: ^2.5.0
convert: ^3.0.0
collection: ^1.15.0
drift: ^1.1.0
drift: ^2.0.0
meta: ^1.3.0
stream_channel: ^2.1.0
sqlite3: '>=1.0.0 <3.0.0'
+5 -12
View File
@@ -1,26 +1,19 @@
name: benchmarks
description: Runs simple and complex benchmarks to measure performance of moor and moor_ffi
resolution: workspace
environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift: ^1.0.0
drift: ^2.0.0
sqlite3: '>=1.0.0 <3.0.0'
benchmark_harness: ^2.0.0
intl: ^0.17.0
intl: ^0.20.0
uuid: ^4.0.0
path: ^1.8.0
dev_dependencies:
drift_dev: ^1.0.0
drift_dev: ^2.0.0
build_runner:
test:
dependency_overrides:
drift:
path: ../../drift
drift_dev:
path: ../../drift_dev
sqlparser:
path: ../../sqlparser
@@ -1,4 +1,4 @@
import 'package:devtools_app_shared/service.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:drift_devtools_extension/src/schema_validator.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@@ -1,5 +1,5 @@
import 'package:devtools_app_shared/service.dart';
import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_riverpod/legacy.dart';
@@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:convert';
import 'package:devtools_app_shared/service.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:devtools_extensions/devtools_extensions.dart';
import 'package:drift/drift.dart';
import 'package:drift/internal/versioned_schema.dart';
+5 -5
View File
@@ -1,18 +1,19 @@
name: drift_devtools_extension
description: A Flutter web app contribution drift tools to DevTools
publish_to: 'none'
resolution: workspace
version: 1.0.0+1
environment:
sdk: '>=3.1.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
flutter:
sdk: flutter
devtools_extensions: ^0.3.1
devtools_app_shared: ^0.3.1
devtools_extensions: ^0.4.0
devtools_app_shared: ^0.4.0
db_viewer:
drift_db_viewer:
rxdart: ^0.28.0
@@ -28,10 +29,9 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^6.0.0
dependency_overrides:
web: ^0.5.0
db_viewer:
git:
url: https://github.com/simolus3/db_viewer.git
+1 -1
View File
@@ -1,6 +1,6 @@
/// Experimental Drift integration for MariaDB.
@experimental
library drift.mariadb;
library;
import 'package:meta/meta.dart';
+3 -2
View File
@@ -1,6 +1,7 @@
name: drift_mariadb
description: Mariadb support for drift.
version: 1.0.0
resolution: workspace
topics:
- drift
@@ -11,7 +12,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift: ^2.0.0
@@ -19,7 +20,7 @@ dependencies:
mysql_client: ^0.0.27
dev_dependencies:
lints: ^4.0.0
lints: ^6.0.0
test: ^1.21.0
drift_testcases:
path: ../integration_tests/drift_testcases
+3 -6
View File
@@ -4,6 +4,7 @@ version: 1.3.1
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/docs/platforms/postgres/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- drift
@@ -14,7 +15,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
collection: ^1.16.0
@@ -24,13 +25,9 @@ dependencies:
uuid: ^4.2.0
dev_dependencies:
lints: ^5.1.0
lints: ^6.0.0
test: ^1.18.0
drift_dev:
drift_testcases:
path: ../integration_tests/drift_testcases
build_runner: ^2.4.6
dependency_overrides:
drift:
path: ../../drift
+3 -2
View File
@@ -1,9 +1,10 @@
name: encrypted_drift
description: Encryption support for drift, built with sqflite_sqlcipher
version: 1.1.0
resolution: workspace
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
flutter: ^3.0.0
dependencies:
@@ -16,7 +17,7 @@ dependencies:
dev_dependencies:
drift_testcases:
path: ../integration_tests/drift_testcases
flutter_lints: ^5.0.0
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter
integration_test:
@@ -1,5 +1,3 @@
library tests;
export 'package:drift/drift.dart' hide isNull, isNotNull;
export 'data/sample_data.dart';
@@ -1,10 +1,11 @@
name: drift_testcases
description: A starting point for Dart libraries or applications.
version: 1.0.0
resolution: workspace
# homepage: https://www.example.com
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
drift: ^2.0.0-0
@@ -15,4 +16,4 @@ dev_dependencies:
build_runner: ^2.1.11
drift_dev: ^2.0.0
json_serializable: ^6.2.0
lints: ^4.0.0
lints: ^6.0.0
@@ -1,11 +1,12 @@
name: flutter_db
description: Testing drift's `NativeDatabase` on Flutter.
version: 1.0.0+1
resolution: workspace
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=3.5.0"
flutter: ">=3.10.0"
dependencies:
@@ -20,14 +21,10 @@ dependencies:
dev_dependencies:
test: ^1.18.0
flutter_lints: ^2.0.1
flutter_lints: ^6.0.0
integration_test:
sdk: flutter
dependency_overrides:
drift:
path: ../../../drift
flutter:
assets:
- test_asset.db
@@ -1,8 +1,10 @@
name: legacy_web
description: Run integration tests for drift/web
publish_to: none
resolution: workspace
environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ^3.5.0
dependencies:
drift: ^2.0.0-dev
@@ -15,11 +17,3 @@ dev_dependencies:
build_runner:
build_web_compilers:
drift_dev: ^2.0.0-dev
dependency_overrides:
drift:
path: ../../../drift
drift_dev:
path: ../../../drift_dev
sqlparser:
path: ../../../sqlparser
@@ -1,9 +1,10 @@
name: web_wasm
description: Integration tests for the drift wasm implementation
publish_to: none
resolution: workspace
environment:
sdk: ^3.0.0
sdk: ^3.5.0
dependencies:
collection: ^1.17.2
@@ -13,7 +14,6 @@ dependencies:
shelf: ^1.4.1
shelf_proxy: ^1.0.4
path: ^1.8.3
js: ^0.7.0
package_config: ^2.1.0
async: ^2.11.0
http: ^1.0.0
@@ -24,5 +24,5 @@ dev_dependencies:
build_runner: ^2.4.5
build_web_compilers: ^4.1.0
drift_dev:
lints: ^4.0.0
lints: any # resolved by workspace, updated globally
test: ^1.24.3
+1257 -11
View File
File diff suppressed because it is too large Load Diff
+63 -2
View File
@@ -2,7 +2,68 @@ name: drift_workspace
publish_to: none
environment:
sdk: ">=3.3.0 <4.0.0"
sdk: ^3.6.0
workspace:
- drift
- drift_dev
- drift_sqflite
- drift_flutter
- sqlparser
- docs
- extras/assets/old_moor_flutter_package
- extras/assets/old_moor_package
- extras/benchmarks
- extras/drift_devtools_extension
- extras/drift_mariadb
- extras/drift_postgres
- extras/encryption
- extras/integration_tests/drift_testcases
- extras/integration_tests/ffi_on_flutter
- extras/integration_tests/legacy_web
- extras/integration_tests/web_wasm
- examples/app
- examples/encryption
- examples/flutter_web_worker_example
- examples/migrations_example
- examples/modular
- examples/multi_package/client
- examples/multi_package/server
- examples/multi_package/shared
- examples/web_worker_example
- examples/with_built_value
dev_dependencies:
melos: ^6.3.2
melos: ^7.0.0
melos:
name: drift
repository: https://github.com/simolus3/drift
scripts:
downgrade:
run: dart pub downgrade
exec: { concurrency: 1 }
check_format:
run: dart format -o none --set-exit-if-changed .
analyze:
run: dart analyze --fatal-infos
exec: { concurrency: 1 }
build:
run: dart run build_runner build --delete-conflicting-outputs
exec: { concurrency: 1 }
packageFilters:
dependsOn: build_runner
test:
run: dart test
exec: { concurrency: 1 }
packageFilters:
dependsOn: test
ignore: drift_postgres # this is an integration test
+3 -2
View File
@@ -5,6 +5,7 @@ homepage: https://github.com/simolus3/drift/tree/develop/sqlparser
repository: https://github.com/simolus3/drift
#homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues
resolution: workspace
topics:
- drift
@@ -15,7 +16,7 @@ funding:
- https://github.com/sponsors/simolus3
environment:
sdk: '>=3.0.0 <4.0.0'
sdk: '>=3.5.0 <4.0.0'
dependencies:
meta: ^1.3.0
@@ -24,7 +25,7 @@ dependencies:
charcode: ^1.2.0
dev_dependencies:
lints: ^5.1.0
lints: ^6.0.0
test: ^1.17.4
path: ^1.8.0
ffi: ^2.0.0
@@ -38,7 +38,7 @@ class _SuggestionWithCode extends Matcher {
}
class _SuggestsMatcher extends CustomMatcher {
_SuggestsMatcher(matcher)
_SuggestsMatcher(Object? matcher)
: super('Suggestions containing', 'suggestions', matcher);
@override