@cheetah.js/orm 0.1.127 → 0.1.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +673 -673
- package/README.md +435 -435
- package/build.d.ts +1 -0
- package/cheetah.config.d.ts +3 -0
- package/dist/driver/bun-driver.base.js +7 -1
- package/package.json +3 -3
package/build.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -19,7 +19,13 @@ class BunDriverBase {
|
|
|
19
19
|
if (this.sql) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
this.sql = new bun_1.SQL(
|
|
22
|
+
this.sql = new bun_1.SQL({
|
|
23
|
+
url: this.connectionString,
|
|
24
|
+
max: 20,
|
|
25
|
+
idleTimeout: 20, // segundos antes de fechar idle
|
|
26
|
+
maxLifetime: 300, // recicla conexões a cada 5 min
|
|
27
|
+
connectionTimeout: 10
|
|
28
|
+
});
|
|
23
29
|
await this.validateConnection();
|
|
24
30
|
}
|
|
25
31
|
async validateConnection() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheetah.js/orm",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A simple ORM for Cheetah.js",
|
|
3
|
+
"version": "0.1.131",
|
|
4
|
+
"description": "A simple ORM for Cheetah.js.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"bun",
|
|
56
56
|
"value-object"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1770fe312c1227aa2928ebfc4f9ac82a8411d4e6"
|
|
59
59
|
}
|