Skip to content

Commit 8f14666

Browse files
committed
chore: remove example access
1 parent d1d36b1 commit 8f14666

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/typescript/row-data-packet.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/**
2-
* docker run --rm --name mysql2-examples -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=mysql2_examples -p 3306:3306 -d mysql:latest
3-
*
42
* The types are explicity for learning purpose
5-
*
63
* By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
74
*/
85

@@ -19,11 +16,10 @@ interface User extends RowDataPacket {
1916

2017
(async () => {
2118
const access: ConnectionOptions = {
22-
host: 'localhost',
23-
user: 'root',
24-
password: 'root',
25-
port: 3306,
26-
database: 'mysql2_examples',
19+
host: '',
20+
user: '',
21+
password: '',
22+
database: '',
2723
};
2824

2925
const conn = await mysql.createConnection(access);

0 commit comments

Comments
 (0)