From b8499023a2570f36a5ce607d64e3e7ddb8a5fbc4 Mon Sep 17 00:00:00 2001 From: thomashii Date: Thu, 23 Dec 2021 20:05:57 +0800 Subject: [PATCH] Updated ORM --- packages/orm/angel_orm/example/main.dart | 2 -- packages/orm/angel_orm_postgres/CHANGELOG.md | 4 ++++ packages/orm/angel_orm_postgres/README.md | 2 +- packages/orm/angel_orm_postgres/pubspec.yaml | 5 ++++- packages/orm/angel_orm_test/CHANGELOG.md | 4 ++++ packages/orm/angel_orm_test/lib/src/performance_test.dart | 0 packages/orm/angel_orm_test/lib/src/standalone_test.dart | 4 +++- packages/orm/angel_orm_test/pubspec.yaml | 2 +- 8 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 packages/orm/angel_orm_test/lib/src/performance_test.dart diff --git a/packages/orm/angel_orm/example/main.dart b/packages/orm/angel_orm/example/main.dart index b296a5a3..e04ad2cc 100644 --- a/packages/orm/angel_orm/example/main.dart +++ b/packages/orm/angel_orm/example/main.dart @@ -1,8 +1,6 @@ import 'dart:async'; -import 'package:angel3_model/angel3_model.dart'; import 'package:angel3_orm/angel3_orm.dart'; -import 'package:angel3_orm/src/query.dart'; import 'package:angel3_serialize/angel3_serialize.dart'; import 'package:optional/optional.dart'; diff --git a/packages/orm/angel_orm_postgres/CHANGELOG.md b/packages/orm/angel_orm_postgres/CHANGELOG.md index 27d426ed..3477c6ce 100644 --- a/packages/orm/angel_orm_postgres/CHANGELOG.md +++ b/packages/orm/angel_orm_postgres/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 3.2.0 + +* Updated connection pooling + ## 3.1.0 * Updated linter to `package:lints` diff --git a/packages/orm/angel_orm_postgres/README.md b/packages/orm/angel_orm_postgres/README.md index b79751f8..6d781b6d 100644 --- a/packages/orm/angel_orm_postgres/README.md +++ b/packages/orm/angel_orm_postgres/README.md @@ -5,6 +5,6 @@ [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_postgres/LICENSE) -Postgresql support for Angel3 ORM. Supported version: 9, 10, 11 and 12. +Postgresql support for Angel3 ORM. Supported version: 10, 11, 12, 13 and 14 For documentation about the ORM, see [Developer Guide](https://angel3-docs.dukefirehawk.com/guides/orm) diff --git a/packages/orm/angel_orm_postgres/pubspec.yaml b/packages/orm/angel_orm_postgres/pubspec.yaml index 1a9d9f6b..a2ef4060 100644 --- a/packages/orm/angel_orm_postgres/pubspec.yaml +++ b/packages/orm/angel_orm_postgres/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_orm_postgres -version: 3.1.0 +version: 3.2.0 description: PostgreSQL support for Angel3 ORM. Includes functionality for querying and transactions. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_postgres @@ -15,3 +15,6 @@ dev_dependencies: angel3_orm_test: ^3.0.0 test: ^1.17.5 lints: ^1.0.0 +dependency_overrides: + angel3_orm_test: + path: ../angel_orm_test diff --git a/packages/orm/angel_orm_test/CHANGELOG.md b/packages/orm/angel_orm_test/CHANGELOG.md index 0fdb0445..558ab1f0 100644 --- a/packages/orm/angel_orm_test/CHANGELOG.md +++ b/packages/orm/angel_orm_test/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 3.0.3 + +* Added performance test cases + ## 3.0.2 * Updated linter to `package:lints` diff --git a/packages/orm/angel_orm_test/lib/src/performance_test.dart b/packages/orm/angel_orm_test/lib/src/performance_test.dart new file mode 100644 index 00000000..e69de29b diff --git a/packages/orm/angel_orm_test/lib/src/standalone_test.dart b/packages/orm/angel_orm_test/lib/src/standalone_test.dart index f35357a5..b69684aa 100644 --- a/packages/orm/angel_orm_test/lib/src/standalone_test.dart +++ b/packages/orm/angel_orm_test/lib/src/standalone_test.dart @@ -63,6 +63,8 @@ void standaloneTests(FutureOr Function() createExecutor, var query = CarQuery(); query.values ..make = 'Ferrarię±' + ..createdAt = y2k + ..updatedAt = y2k ..description = 'Vroom vroom!' ..familyFriendly = false; ferrari = (await query.insert(executor)).value; @@ -163,7 +165,7 @@ void standaloneTests(FutureOr Function() createExecutor, expect(carOpt.isPresent, true); carOpt.ifPresent((car) { var car = carOpt.value; - print(car.toJson()); + //print(car.toJson()); expect(car.toJson(), cloned.toJson()); }); }); diff --git a/packages/orm/angel_orm_test/pubspec.yaml b/packages/orm/angel_orm_test/pubspec.yaml index 932d6dec..58bcf062 100644 --- a/packages/orm/angel_orm_test/pubspec.yaml +++ b/packages/orm/angel_orm_test/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_orm_test -version: 3.0.2 +version: 3.0.3 description: Common tests for Angel3 ORM. Reference implmentation of the generated ORM files. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/orm/angel_orm_test