JSPM

fastify-drizzle

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 69
  • Score
    100M100P100Q99195F
  • License MIT

fastify drizzle plugin

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

Test

NPM

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.