Code Monkey home page Code Monkey logo

parse-server-mysql-adapter's Introduction

MySQL Parse Server Adapter

Build Status codecov.io npm version Greenkeeper badge

This is database adapter to add support of MySQL to Parse Server

Setup

Runs on Parse-Server 2.5.0+ Runs on MySQL >= 5.7.

Create one Database using the MySQL CLI or Query Expression Editor on your MySQL instance.

mysql> CREATE DATABASE `database_here`

Usage

const uri = 'mysql://root@localhost:3306/database_here';
const MySQL = require('parse-server-mysql-adapter').MySQL;
const mysql = new MySQL(uri);

var api = new ParseServer({
  databaseAdapter: mysql.getAdapter(),
  appId: 'myAppId',
  masterKey: 'myMasterKey'
  serverURL: 'http://localhost:1337/parse'
  ...
});

This adapter is backwards compatible with node-mysql. You can pass connection options into the adapter. You can find a list of available options here


Limits in MySQL

Just like other databases MySQL has also some limits that are documented here

Compatibility with Parse Server

Please remember MySQL has recently added a JSON Type in version 5.7. This adapter tried its best to simulate how Parse Server works with other Databases like Postgres, however these features or functions won't work as you expect. Features including JSON and Array will be improved in future updates.

  • Removing From Array : You can only remove strings from array and only one.
  • Regex : Limited support for regex.

Logging

You can enable verbose logging with environment variables:

VERBOSE=1

or

VERBOSE_PARSE_SERVER_MYSQL_ADAPTER=1

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.