You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The `@types/node` ensure the proper interaction between **TypeScript** and the **Node.js** modules used by **MySQL2** (*net*, *events*, *stream*, *tls*, etc.).
10
10
11
+
Requires **TypeScript**`>=4.5.2`.
12
+
13
+
---
14
+
11
15
## Usage
12
16
You can import **MySQL2** in two ways:
13
17
- By setting the `esModuleInterop` option to `true` in `tsconfig.json`
@@ -287,16 +291,15 @@ By using `SELECT` and `SHOW` queries in a **Procedure Call**, it groups the resu
287
291
// ProcedureCallPacket<RowDataPacket[][]>
288
292
[...RowDataPacket[][], ResultSetHeader]
289
293
```
290
-
For `ProcedureCallPacket<RowDataPacket[]>` and `ProcedureCallPacket<RowDataPacket[][]>`, please see the following advanced examples.
294
+
For `ProcedureCallPacket<RowDataPacket[]>` and `ProcedureCallPacket<RowDataPacket[][]>`, please see the following examples.
291
295
292
296
---
293
297
294
298
## Examples
295
299
296
-
You can also check various code examples using **MySQL2** and **TypeScript** to understand advanced concepts:
297
-
> In progress
300
+
You can also check some code examples using **MySQL2** and **TypeScript** to understand advanced concepts:
298
301
299
-
- Extending and using **Interfaces** with `RowDataPacket`.
300
-
- Checking for `ResultSetHeader` or `RowDataPacket[]` using **Procedure Calls**
301
-
- Checking for `ResultSetHeader` or `RowDataPacket[][]` using **Procedure Calls**
302
-
- Creating a custom **MySQL2****Class**
302
+
- Extending and using **Interfaces** with `RowDataPacket` (*in progress*)
303
+
- Checking for `ResultSetHeader` or `RowDataPacket[]` using **Procedure Calls** (*in progress*)
304
+
- Checking for `ResultSetHeader` or `RowDataPacket[][]` using **Procedure Calls** (*in progress*)
305
+
- Creating a custom **MySQL2****Class** (*in progress*)
0 commit comments