Skip to content

Commit e806944

Browse files
committed
ci: add createPool releaseConnection tsc build test
1 parent 737be62 commit e806944

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { mysql } from '../../../index';
2+
import { access } from '../../baseConnection';
3+
4+
const pool = mysql.createPool(access);
5+
6+
pool.getConnection((err, conn) => {
7+
pool.releaseConnection(conn);
8+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { mysql } from '../../../index';
2+
import { access } from '../../baseConnection';
3+
4+
(async () => {
5+
const pool = mysql.createPool(access);
6+
const conn = await pool.promise().getConnection();
7+
8+
pool.releaseConnection(conn);
9+
})();
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { mysqlp as mysql } from '../../index';
2+
import { access } from '../baseConnection';
3+
4+
(async () => {
5+
const pool = mysql.createPool(access);
6+
const conn = await pool.getConnection();
7+
8+
pool.releaseConnection(conn);
9+
})();

0 commit comments

Comments
 (0)