Giter VIP home page Giter VIP logo

Comments (3)

FennNaten avatar FennNaten commented on June 1, 2024

Hi,
I'm not a contributor but I'm passing by and I think I can answer your question (even if you may have found the answer yourself considered how much time has passed since you asked).
Glue is not responsible for the support of multiple registrations of a plugin: it should be an attribute of the plugin itself, which must in this case expose its functionality in a way that works with it.
If the plugin you use is this one: https://github.com/seldo/hapi-mysql , then you can see in its index.js that it doesn't offer the attributes.multiple, and that the way it's built is not compatible with multiple registration (each registration would overload the previous pool with the new one).
If you really need this functionality, you can open an issue in the repo of the plugin or maybe write your own.

from glue.

csrl avatar csrl commented on June 1, 2024

"attributes.multiple" is not a value that can be set via an API call. As FennNaten pointed, out the plugin must itself set the flag and support the feature. The glue documentation is simply pointing that requirement out.

For more details see Hapi's Server.register docs http://hapijs.com/api#serverregisterplugins-options-callback and also the Hapi Plugin docs http://hapijs.com/api#plugins

The https://github.com/hapijs/discuss support group is a good general place for questions that touch on using Hapi.

from glue.

lock avatar lock commented on June 1, 2024

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

from glue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.