fastify-drizzle
v1.0.5
Published
fastify drizzle plugin
Downloads
488
Readme
Fastify Drizzle Plugin
Fastify plugin to conveniently use Drizzle across your application.
Installation
npm install fastify-drizzle
Usage
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.