1.0.5 • Published 3 years ago

fastify-drizzle v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago