We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d36b1 commit 8f14666Copy full SHA for 8f14666
examples/typescript/row-data-packet.ts
@@ -1,8 +1,5 @@
1
/**
2
- * docker run --rm --name mysql2-examples -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=mysql2_examples -p 3306:3306 -d mysql:latest
3
- *
4
* The types are explicity for learning purpose
5
6
* By extending the `RowDataPacket`, you can use your Interface in `query` and `execute`
7
*/
8
@@ -19,11 +16,10 @@ interface User extends RowDataPacket {
19
16
20
17
(async () => {
21
18
const access: ConnectionOptions = {
22
- host: 'localhost',
23
- user: 'root',
24
- password: 'root',
25
- port: 3306,
26
- database: 'mysql2_examples',
+ host: '',
+ user: '',
+ password: '',
+ database: '',
27
};
28
29
const conn = await mysql.createConnection(access);
0 commit comments