1.0.5 • Published 2 years ago

fastify-drizzle v1.0.5

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

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago