sequelize

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

Github stars Tracking Chart

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

责任披露

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

文档

资源

工具

学习

翻译

Overview

Name With Ownersequelize/sequelize
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 4)
PlatformDocker, Linux, Mac, Windows
License:MIT License
Release Count664
Last Release Namev6.37.3 (Posted on )
First Release Name0.1.0 (Posted on )
Created At2010-07-22 07:11:11
Pushed At2024-04-21 16:17:59
Last Commit At2021-10-28 06:26:13
Stargazers Count29k
Watchers Count416
Fork Count4.2k
Commits Count10.9k
Has Issues Enabled
Issues Count10257
Issue Open Count786
Pull Requests Count4708
Pull Requests Open Count72
Pull Requests Close Count1675
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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

To the top