sequelize支持mysql版本_Sequelize - Multi-dialect ORM。支持PostgreSQL, SQLite, MySQL

Sequelize

68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f73657175656c697a652e73766768747470733a2f2f7472617669732d63692e6f72672f73657175656c697a652f73657175656c697a652e7376673f6272616e63683d6d617374657268747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f396c3179706777737035696a34366d332f6272616e63682f6d61737465723f7376673d7472756568747470733a2f2f636f6465636f762e696f2f67682f73657175656c697a652f73657175656c697a652f6272616e63682f6d61737465722f67726170682f62616467652e73766768747470733a2f2f7777772e626f756e7479736f757263652e636f6d2f62616467652f7465616d3f7465616d5f69643d393535267374796c653d626f756e746965735f7265636569766564687474703a2f2f73657175656c697a652d736c61636b2e6865726f6b756170702e636f6d2f62616467652e73766768747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f73657175656c697a652e7376673f6d61784167653d3235393230303068747470733a2f2f696d672e736869656c64732e696f2f6e6f64652f762f73657175656c697a652e73766768747470733a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f73657175656c697a652e7376673f6d61784167653d323539323030303f7374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f62616467652f2532302532302546302539462539332541362546302539462539412538302d73656d616e7469632d2d72656c656173652d6531303037392e73766768747470733a2f2f6261646765732e677265656e6b65657065722e696f2f73657175656c697a652f73657175656c697a652e737667

Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.

v5 Beta Release

We have started v5 beta release process. Hopefully this will cover full v5 milestone. You can find upgrade guide and changelog here

npm install --save sequelize # will install v4

npm install --save sequelize@next # will install v5-beta

Table of Contents

Installation

$ npm install --save sequelize

# And one of the following:

$ npm install --save pg pg-hstore

$ npm install --save mysql2

$ npm install --save mariadb

$ npm install --save sqlite3

$ npm install --save tedious # MSSQL

Sequelize follows SEMVER. Supports Node v4 and above to use ES6 features.

Features

Schema definition

Schema synchronization/dropping

1:1, 1:M & N:M Associations

Through models

Promises

Hooks/lifecycle events

Prefetching/association including

Transactions

Migrations

Responsible disclosure

If you have any security issue to report, contact project maintainers privately. You can find contact information here

Documentation

Resources

Tools

Learning

Translations

English v4 (OFFICIAL)

中文文档 v4 (UNOFFICIAL)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值