SQL Plugin
This plugin integrates SQL database functionality into the Hapi server. It uses the `dataClient` module
to create a SQL client based on the configuration provided in `server.app.config.sql`, and exposes the client
for use by other parts of the application.
- Version:
- 1.0.0
- Source:
Methods
(async, static) register(server) → {Promise.<void>}
Registers the SQL client with the Hapi server.
Retrieves the SQL configuration from the server's application settings, initializes the SQL client using
the `dataClient` function, and exposes it on the server instance so it can be accessed by other plugins.
Parameters:
| Name | Type | Description |
|---|---|---|
server |
Object | The Hapi server instance. |
- Source:
Returns:
A promise that resolves once the SQL client has been registered and exposed.
- Type
- Promise.<void>