1.0.5 • Published 10 months ago

fastify-drizzle v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago