Updated ORM

This commit is contained in:
thomashii 2021-12-23 20:05:57 +08:00
parent d8336d26b5
commit b8499023a2
8 changed files with 17 additions and 6 deletions

View file

@ -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';

View file

@ -1,5 +1,9 @@
# Change Log
## 3.2.0
* Updated connection pooling
## 3.1.0
* Updated linter to `package:lints`

View file

@ -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)

View file

@ -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

View file

@ -1,5 +1,9 @@
# Change Log
## 3.0.3
* Added performance test cases
## 3.0.2
* Updated linter to `package:lints`

View file

@ -63,6 +63,8 @@ void standaloneTests(FutureOr<QueryExecutor> 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<QueryExecutor> Function() createExecutor,
expect(carOpt.isPresent, true);
carOpt.ifPresent((car) {
var car = carOpt.value;
print(car.toJson());
//print(car.toJson());
expect(car.toJson(), cloned.toJson());
});
});

View file

@ -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