Package Exports
- fastify-drizzle
- fastify-drizzle/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fastify-drizzle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fastify Drizzle Plugin
Fastify plugin to conveniently use Drizzle across your application.
Installation
npm install fastify-drizzleUsage
const opts = {
connectionString: '', // required
connector: '', // required - supported connectors are [node-postgres, postgresjs, neon]
alias: '' // optional
};
fastify.register(require('fastify-drizzle'), opts, (err) => console.error(err));
fastify.get('/', (request, reply) => {
const drizzle = fastify.drizzle; // Drizzle instance
console.log(drizzle);
});Contributing
See an opportunity to extend this package? Pull requests are encouraged! Please include test coverage.
License
Licensed under MIT.
