Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fruit-mysql

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fruit-mysql

MySQL Fruit ORM adapter

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fruit

CI Buimd Dependencied MIT license Gitter

Introduction :

This is the mysql adapter for the fruit ORM, if you haven't take a look at its documentation yet, please make sure to do so.

Installation :

  $ npm install fruit fruit-mysql

Connection options :

This is an example the options you need to pass to the fruit constructor:

  {
      host                : 'host'
    , database            : 'db'
    , user                : 'user'
    , password            : '******'
    , multipleStatements  : true
  }

The multipleStatements option is optional. If you need to get correct arguments for successCallBack after inserting multiple row, then you need to set it to true. And you also need to pass a boolean set to true as second argument to the .insert() method.

  fruit.insert({ name: 'Khalid', age: 26 }, true)
    .success(successCallBack)
    .error(errorCallBack);

Contributing

All contributions are welcome. Let's get this project to the next level. Significant and valuable contributions will allow you to be part of Fruit organisation. See the contribution guide for more details

Community

If you'd like to chat and discuss this project, you can find us here:

Keywords

FAQs

Package last updated on 18 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc