Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Loopback Connector for MySQL

License

NotificationsYou must be signed in to change notification settings

edvisor-io/loopback-connector-mysql

 
 

Repository files navigation

loopback-connector-mysql is the MySQL connector module forloopback-datasource-juggler.

For complete documentation, seeStrongLoop Documentation | MySQL Connector.

Installation

npm install loopback-connector-mysql --save

Basic use

To use it you needloopback-datasource-juggler.

  1. Setup dependencies inpackage.json:

    {..."dependencies": {"loopback-datasource-juggler":"latest","loopback-connector-mysql":"latest"  },...}
  2. 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 bynode-mysql,most particularlypassword andcollation.Collation currently defaultstoutf8_general_ci. Thecollation value will also be used to derive theconnection charset.

Running Tests

The tests in this repository are mainly integration tests, meaning you will need to run them using our preconfigured test server.

  1. Ask a core developer for instructions on how to set up test server credentials on your machine
  2. npm test

About

Loopback Connector for MySQL

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript99.7%
  • Makefile0.3%

[8]ページ先頭

©2009-2025 Movatter.jp