forked fromloopbackio/loopback-connector-mysql
- Notifications
You must be signed in to change notification settings - Fork0
Loopback Connector for MySQL
License
NotificationsYou must be signed in to change notification settings
edvisor-io/loopback-connector-mysql
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
loopback-connector-mysql is the MySQL connector module forloopback-datasource-juggler.
For complete documentation, seeStrongLoop Documentation | MySQL Connector.
npm install loopback-connector-mysql --save
To use it you needloopback-datasource-juggler.
Setup dependencies in
package.json:{..."dependencies": {"loopback-datasource-juggler":"latest","loopback-connector-mysql":"latest" },...}Use:
varDataSource=require('loopback-datasource-juggler').DataSource;vardataSource=newDataSource('mysql',{host:'localhost',port:3306,database:'mydb',username:'myuser',password:'mypass'});
You can optionally pass a few additional parameters supported by
node-mysql,most particularlypasswordandcollation.Collationcurrently defaultstoutf8_general_ci. Thecollationvalue will also be used to derive theconnection charset.
The tests in this repository are mainly integration tests, meaning you will need to run them using our preconfigured test server.
- Ask a core developer for instructions on how to set up test server credentials on your machine
npm test
About
Loopback Connector for MySQL
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Languages
- JavaScript99.7%
- Makefile0.3%