A hapi plugin integrating Waterline ORM, currently at v2.3.0. It allows defining models, adapters, and connections for Waterline within a hapi server, and provides convenience methods like `server.dogwater()`, `server.collections()`, and `request.collections()` to access Waterline collections. Supports multi-plugin deployments with collision protection. Works with hapi >=10 <17 and waterline >=0.10.0 <0.13.0. Last updated in 2019; no major releases since v2. Alternative to using Waterline standalone with hapi.
npm install dogwaterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full hapi server setup with Dogwater, including model definition, route using request.collections(), and startup with data creation.
Upgrade to hapi 10+ and waterline 0.10+. Use server.dogwater() to register models after registration.
Consider migrating to a different ORM or using Waterline standalone with hapi.
Ensure each model has a unique identity string (lowercase, typically plural).
Register all adapters in the `adapters` option when registering Dogwater on the root server.
Add `identity: 'mymodel'` to the model config object passed to server.dogwater().
Include the adapter in the `adapters` option when registering Dogwater: `adapters: { xyz: require('sails-xyz') }`Ensure Dogwater is registered in the plugin or at the server level, and that the plugin exposes `request.collections`.