1.0.7 • Published 5 years ago

switch-orm v1.0.7

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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

  • Nodejs - The runtime javaScript framework used
  • NPM - Dependency Management

Authors

  • Omar Ahmed - Initial work - Co-Mora

See also the project repository Repository.

License

This project is licensed under the MIT License

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago