You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
You can optionally pass a few additional parameters supported bynode-mysql, most particularlypassword andcollation.Collation currently defaults toutf8mb4_general_ci. Thecollation value will also be used to derive the connection charset.
Running tests
npm test
Using thedataType field/column option with MySQL
The jugglingdb MySQL adapter now supports using thedataType column/property attribute to specify what MySQL column type is used for many jugglingdb types.
The following type-dataType combinations are supported:
Mysql adapter uses the pooling provided by the node-mysql module. Simply setpool option to true in the connection settings.
Pool Options
Taken from node-mysql module
waitForConnections: Determines the pool's action when no connections are available and the limit has been reached. Iftrue, the pool will queue the connection request and call it when one becomes available. Iffalse, the pool will immediately call back with an error. (Default:true)
connectionLimit: The maximum number of connections to create at once.(Default:10)
queueLimit: The maximum number of connection requests the pool will queue before returning an error fromgetConnection. If set to0, there is no limit to the number of queued connection requests. (Default:0)
Creating Multi-Column Indexes
The mysql adapter supports the declaration of multi-column indexes on models via the theindexes option in the 3rd argument todefine.
Copyright (C) 2012 by Anatoliy ChakkaevPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.