1.0.7 • Published 5 years ago
switch-orm v1.0.7
Switch ORM
switch-orm is a promise-based Node.js ORM for MySQL
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
npm install switch-orm --save
Installing
var { SwitchOrm, Model } = require('switch-orm');
End with an example of getting some data out of the system or using it for a little demo
Break down into end to end ORM
A step by step series of examples that tell you how to get a development env running
const con = new SwitchOrm(dbName, username, password, {
dialect:'mysql'
}).exec();
And coding style tests
CREATE a Model to Initial tables in the Database
const customer = new Model(tableName).define({
name: Number,
email: String,
transactionID: String,
addressData: String,
});
Example to fetch all data
customer.findAll();
Built With
Authors
- Omar Ahmed - Initial work - Co-Mora
See also the project repository Repository.
License
This project is licensed under the MIT License