{"library":"hapi-plugin-mysql","type":"library","category":null,"description":"Hapi plugin that attaches a MySQL connection pool to every request via request.app.db. Provides both plugin registration and manual pool management (init/stop). Uses the `mysql` npm package under the hood. Current stable version is 7.2.7, with a dependency on @hapi/hapi >=19.0.0. Transactions are not handled by the plugin; users must manage them manually. The plugin uses the connection pool pattern, and the pool can be initialized before registration for use outside of hapi.","language":"javascript","status":"active","version":"7.2.7","tags":["javascript","hapi","mysql","plugin"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install hapi-plugin-mysql","imports":["await server.register({ plugin: require('hapi-plugin-mysql'), options: {...} })","const { init } = require('hapi-plugin-mysql'); await init(options)","const { getConnection } = require('hapi-plugin-mysql'); const conn = await getConnection()"]},{"cmd":"yarn add hapi-plugin-mysql","imports":[]},{"cmd":"pnpm add hapi-plugin-mysql","imports":[]}],"homepage":"https://github.com/Salesflare/hapi-plugin-mysql","github":"https://github.com/Salesflare/hapi-plugin-mysql","docs":null,"changelog":null,"pypi":null,"npm":"hapi-plugin-mysql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}