sequelize

Node.js易于使用的多SQL方言ORM。(An easy-to-use multi SQL dialect ORM for Node.js.)

Github星跟蹤圖

Sequelize

Sequelize是一个基于承诺的Node.js ORM,用于Postgres、MySQL、SQLite和Microsoft SQL Server。它具有坚实的事务支持、关系、读取复制等功能。

v5 Beta Release

我们已经启动了v5 beta发布流程。 希望这将涵盖完整的v5里程碑。 您可以在此处找到升级指南和更改日志。

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

安装

$ 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遵循 SEMVER 。支持Node v4及以上版本以使用ES6功能。

功能

  • 架构定义
  • 模式同步/放弃
  • 1:1, 1:M & N:M Associations
  • 通过模型
  • 承诺
  • 挂钩/回调/生命周期事件
  • 预取/关联包括
  • 交易
  • 迁移
  • CLI( sequelize-cli

责任披露

如果您有任何需要报告的安全问题,请私下联系项目维护人员。您可以在此处找到联系信息

文档

资源

工具

学习

翻译

概覽

名稱與所有者sequelize/sequelize
主編程語言TypeScript
編程語言JavaScript (語言數: 4)
平台Docker, Linux, Mac, Windows
許可證MIT License
發布數664
最新版本名稱v6.37.3 (發布於 )
第一版名稱0.1.0 (發布於 )
創建於2010-07-22 07:11:11
推送於2024-05-05 16:32:52
最后一次提交2021-10-28 06:26:13
星數29.1k
關注者數417
派生數4.2k
提交數10.9k
已啟用問題?
問題數10267
打開的問題數797
拉請求數4712
打開的拉請求數74
關閉的拉請求數1675
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Sequelize

npm version
Travis Build Status
Appveyor Build Status
codecov
npm downloads
Merged PRs
semantic-release

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

New to Sequelize? Take a look at the Tutorials and Guides. You might also be interested in the API Reference.

v6-beta Release

npm version

v6-beta is now available. You can find detailed changelog here.

Installation

$ npm install --save sequelize # This will install v5
$ npm install --save sequelize@next # This will install v6-beta

# And one of the following:
$ npm install --save pg pg-hstore # Postgres
$ npm install --save mysql2
$ npm install --save mariadb
$ npm install --save sqlite3
$ npm install --save tedious # Microsoft SQL Server

Documentation

Responsible disclosure

If you have security issues to report, please refer to our Responsible Disclosure Policy for more details.

Resources

Tools

Translations

去到頂部