Skip to content

Commit 2652234

Browse files
author
litongjava
committed
update tio-boot version to 1.9.4
2 parents 9afdb44 + c82a834 commit 2652234

File tree

163 files changed

+3842
-3064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+3842
-3064
lines changed

frameworks/Dart/angel3/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Angel3 Framework Benchmarking Test
22

3-
This is the Angel3 framework portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
3+
This is the Angel3 framework portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
44

55
## Description
66

7-
All the tests are implemented using the [Angel3 Framework](https://angel3-framework.web.app) with ORM for Postgresql database enabled. The directory layout follows the standard ORM boilerplate template.
7+
All the tests are implemented using the [Angel3 Framework](https://angel3-framework.web.app) with ORM for Postgresql and MySQL database on Dart 3.6. The directory layout follows the standard ORM boilerplate template.
88

99
### Test Type Implementation Source Code
1010

@@ -28,24 +28,24 @@ The tests were run with:
2828

2929
### JSON
3030

31-
http://localhost:8080/json
31+
<http://localhost:8080/json>
3232

3333
### PLAINTEXT
3434

35-
http://localhost:8080/plaintext
35+
<http://localhost:8080/plaintext>
3636

3737
### DB
3838

39-
http://localhost:8080/db
39+
<http://localhost:8080/db>
4040

4141
### QUERY
4242

43-
http://localhost:8080/query?queries=
43+
<http://localhost:8080/query?queries=>
4444

4545
### UPDATE
4646

47-
http://localhost:8080/updates?queries=
47+
<http://localhost:8080/updates?queries=>
4848

4949
### FORTUNES
5050

51-
http://localhost:8080/fortunes
51+
<http://localhost:8080/fortunes>

frameworks/Dart/angel3/angel3-mysql.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dart:2.19.6
1+
FROM dart:3.6.1
22

33
COPY ./orm-mysql/config /app/config
44
COPY ./orm-mysql/lib /app/lib

frameworks/Dart/angel3/angel3.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dart:2.19.6
1+
FROM dart:3.6.1
22

33
COPY ./orm/config /app/config
44
COPY ./orm/lib /app/lib

frameworks/Dart/angel3/benchmark_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@
2626
"versus": "None"
2727
},
2828
"mysql": {
29+
"json_url": "/json",
2930
"db_url": "/db",
31+
"plaintext_url": "/plaintext",
3032
"query_url": "/query?queries=",
3133
"fortune_url": "/fortunes",
34+
"update_url": "/updates?queries=",
3235
"port": 8080,
3336
"approach": "Realistic",
3437
"classification": "Fullstack",

frameworks/Dart/angel3/orm-mysql/config/default.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
host: 127.0.0.1
33
port: 8080
44
mysql:
5-
#host: localhost
65
host: tfb-database
76
port: 3306
87
database_name: hello_world

frameworks/Dart/angel3/orm-mysql/lib/orm_mysql_app.dart renamed to frameworks/Dart/angel3/orm-mysql/lib/benchmark_app.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// Your very own web application!
21
import 'dart:async';
32
import 'package:angel3_framework/angel3_framework.dart';
43
import 'package:file/local.dart';

frameworks/Dart/angel3/orm-mysql/lib/src/config/config.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// Configuration for this Angel instance.
21
import 'package:angel3_configuration/angel3_configuration.dart';
32
import 'package:angel3_framework/angel3_framework.dart';
43
import 'package:angel3_jael/angel3_jael.dart';

frameworks/Dart/angel3/orm-mysql/lib/src/config/plugins/orm.dart

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,9 @@ import 'dart:io';
33
import 'package:angel3_framework/angel3_framework.dart';
44
import 'package:angel3_orm/angel3_orm.dart';
55
import 'package:angel3_orm_mysql/angel3_orm_mysql.dart';
6-
import 'package:mysql1/mysql1.dart';
76
import 'package:mysql_client/mysql_client.dart';
87

9-
// For MariaDb
10-
Future<void> configureServer2(Angel app) async {
11-
try {
12-
var connection = await connectToMariaDb(app.configuration);
13-
var executor = MariaDbExecutor(connection, logger: app.logger);
14-
15-
app
16-
..container.registerSingleton<QueryExecutor>(executor)
17-
..shutdownHooks.add((_) => connection.close());
18-
} catch (e) {
19-
app.logger.severe("Failed to connect to MariaDB. ORM disabled.", e);
20-
}
21-
}
22-
23-
// MariaDB connection
24-
Future<MySqlConnection> connectToMariaDb(Map configuration) async {
25-
var mariaDbConfig = configuration['mysql'] as Map? ?? {};
26-
var settings = ConnectionSettings(
27-
host: mariaDbConfig['host'] as String? ?? 'localhost',
28-
port: mariaDbConfig['port'] as int? ?? 3306,
29-
db: mariaDbConfig['database_name'] as String? ??
30-
Platform.environment['USER'] ??
31-
Platform.environment['USERNAME'] ??
32-
'',
33-
user: mariaDbConfig['username'] as String?,
34-
password: mariaDbConfig['password'] as String?,
35-
timeout: Duration(
36-
seconds: mariaDbConfig['timeout_in_seconds'] as int? ?? 30000),
37-
useSSL: mariaDbConfig['use_ssl'] as bool? ?? false);
38-
39-
var connection = await MySqlConnection.connect(settings);
40-
return connection;
41-
}
42-
438
// For Mysql
44-
459
Future<void> configureServer(Angel app) async {
4610
try {
4711
var connection = await connectToMysql(app.configuration);

frameworks/Dart/angel3/orm-mysql/lib/src/config/plugins/plugins.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// Custom plugins go here.
21
import 'dart:async';
32
import 'package:angel3_framework/angel3_framework.dart';
43
import 'orm.dart' as orm;

frameworks/Dart/angel3/orm-mysql/lib/src/models/fortune.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:angel3_migration/angel3_migration.dart';
2-
//import 'package:angel3_model/angel3_model.dart';
32
import 'package:angel3_serialize/angel3_serialize.dart';
43
import 'package:angel3_orm/angel3_orm.dart';
54
import 'package:optional/optional.dart';

0 commit comments

Comments
 (0)