All Projects → boiawang → sequelize-db-export-import

boiawang / sequelize-db-export-import

Licence: MIT license
Generater models from mysql db or import tables from models files

Programming Languages

coffeescript
4710 projects
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to sequelize-db-export-import

StackQuest
A multiplayer and team-based action/shooter game.
Stars: ✭ 21 (-19.23%)
Mutual labels:  sequelize
z
基于 MidwayJS(EggJS) + TypeScript 的多模块应用 [ NodeJS 版 ]
Stars: ✭ 122 (+369.23%)
Mutual labels:  sequelize
NodeAngular
🚀 Full Stack Framework Béta : mean with last Angular and Node (Example)
Stars: ✭ 13 (-50%)
Mutual labels:  sequelize
libstack
NodeJS modules to boost productivity
Stars: ✭ 24 (-7.69%)
Mutual labels:  sequelize
template-server-nodejs
No description or website provided.
Stars: ✭ 20 (-23.08%)
Mutual labels:  sequelize
express-crud-router
Simply expose resource CRUD (Create Read Update Delete) routes for Express & Sequelize. Compatible with React Admin Simple Rest Data Provider
Stars: ✭ 109 (+319.23%)
Mutual labels:  sequelize
koa-orm
koa orm using sequelize & sk2 (fork from knex)
Stars: ✭ 62 (+138.46%)
Mutual labels:  sequelize
node-express-clean-architecture
A modular folder structure for developing highly scalable and maintainable APIs in nodejs using express.
Stars: ✭ 41 (+57.69%)
Mutual labels:  sequelize
doc
Sequelize Documentation
Stars: ✭ 32 (+23.08%)
Mutual labels:  sequelize
Express-REST-API-Generator
Express REST API Generator is an Express Based API skeleton. A template for starting projects with express as an API. This project can be used for creating a RESTful API using Node JS, Express as the framework, Mongoose to interact with a MongoDB instance and Sequelize for support of SQL compatible databases. Mocha is also used for running unit …
Stars: ✭ 100 (+284.62%)
Mutual labels:  sequelize
wildebeest
Database migration for Sequelize.
Stars: ✭ 13 (-50%)
Mutual labels:  sequelize
chanyeong
👨‍💻 chanyeong's portfolio and blog webpage
Stars: ✭ 39 (+50%)
Mutual labels:  sequelize
sequelize-connect
A simple connection wrapper for the sequelize ORM, making it easier to configure and build models & connections.
Stars: ✭ 37 (+42.31%)
Mutual labels:  sequelize
sequelize-mig
Sequelize migration generator and es6 init tool (Planned)
Stars: ✭ 54 (+107.69%)
Mutual labels:  sequelize
nodejs-integration-testing
Integration testing of a Node.js / Express.js / Sequelize app
Stars: ✭ 23 (-11.54%)
Mutual labels:  sequelize
northwind-demo
Breeze demo with .NET and NodeJS servers and Angular, Aurelia, React, and Vue clients
Stars: ✭ 23 (-11.54%)
Mutual labels:  sequelize
pg-search-sequelize
Postgres full-text search in Node.js and Sequelize.
Stars: ✭ 31 (+19.23%)
Mutual labels:  sequelize
node-sequelize
nodejs使用sequelize的api测试应用
Stars: ✭ 29 (+11.54%)
Mutual labels:  sequelize
graphql-sequelize-generator
A Graphql API generator based on Sequelize.
Stars: ✭ 20 (-23.08%)
Mutual labels:  sequelize
node-crudapi-ts
CRUD boilerplate for create Node Restful API's with Express Framework and Sequelize ORM written in Typescript.
Stars: ✭ 41 (+57.69%)
Mutual labels:  sequelize

Sequelize-DB-Export-Import

Build Status

Generate models files from db or generate tables from models.

Only mysql

cmd


preview

Install

npm install -g sequelize-db-export-import

Usage

seq-ei Create models by database or Create tables by models

-h, --help            output usage information
-V, --version         output the version number
-r, --reverse         is generate model files or generate tables
-H, --host <n>        host ip default: 127.0.0.1
-u, --user <n>        host user default: root
-p, --password <n>    host password. default: ""
-d, --database <n>    database name
-o, --output <dir>    select models dir
-m, --dialect <n>     db type
-P, --port <n>        db port. default: 3306
-e, --compile <type>  model file type
-c, --config <file>   config file
-C, --camel           convert tableName and file to camelCase
-s, --space <n>       you can select 2 space or 4 space
--no-default-value    exclude default data values

Export models from db

seq-ei -H 192.168.1.220 -u root -p 123 -d test -o ./models -m mysql -P 3306 -e coffee -s 2

Import tables from model files

seq-ei -r -H 192.168.1.220 -u root -p 123 -d test -o ./models -m mysql -P 3306 -e coffee -s 2

Also use config file

config.json

{
  "user": "root",
  "password": "",
  "host": "127.0.0.1",
  "database": "test",
  "dir": "./models",
  "port": 3306,
  "compile": "coffee",
  "logging": false,
  "space": 2,
  "reverse": false
}
seq-ei -c config.json

Test

# test all
make test

# test coverage
make test-cov

# test watch
make test-watch

Todo

  • postgres
  • add cmd color
  • add table output

License

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].