26 lines
981 B
Markdown
26 lines
981 B
Markdown
# `Client` [class-Client]
|
|
|
|
## Constructor
|
|
|
|
```typescript
|
|
new Client(opts: [ClientOptions](./ClientOptions.md));
|
|
```
|
|
|
|
## Properties [class-properties-Client]
|
|
|
|
| Name | Type | Description |
|
|
| - | - | - |
|
|
| `connectionPool` | [BaseConnectionPool](./BaseConnectionPool.md) | |
|
|
| `diagnostic` | [Diagnostic](./Diagnostic.md) | |
|
|
| `helpers` | [Helpers](./Helpers.md) | |
|
|
| `name` | string | symbol | |
|
|
| `serializer` | [Serializer](./Serializer.md) | |
|
|
| `transport` | [SniffingTransport](./SniffingTransport.md) | |
|
|
|
|
## Methods [class-methods-Client]
|
|
|
|
| Name | Signature | Description |
|
|
| - | - | - |
|
|
| `child` | `child(opts: [ClientOptions](./ClientOptions.md)): [Client](./Client.md);` | Creates a child client instance that shared its connection pool with the parent client |
|
|
| `close` | `close(): Promise<void>;` | Closes all connections in the connection pool. Connections shared with any parent or child instances will also be closed. |
|