MCPcopy
hub / github.com/sequelize/sequelize

github.com/sequelize/sequelize @v7.0.0-oc-test.4 sqlite

repository ↗ · DeepWiki ↗ · release v7.0.0-oc-test.4 ↗ · compare 2 versions
2,281 symbols 6,763 edges 419 files 392 documented · 17%
README


Sequelize

npm version Build Status npm downloads sponsor Merged PRs semantic-release

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

Sequelize follows Semantic Versioning and the official Node.js LTS schedule. Version 7 of Sequelize officially supports the Node.js versions ^12.22.0, ^14.17,0, ^16.0.0. Other version might be working as well.

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

Would you like to contribute? Read our contribution guidelines to know more. There are many ways to help.

Major version changelog

Please find upgrade information to major versions here:

Supporting the project

Do you like Sequelize and would like to give back to the engineering team behind it?

We have recently created an OpenCollective based money pool which is shared amongst all core maintainers based on their contributions. Every support is wholeheartedly welcome. ❤️

Installation

$ npm i sequelize # This will install v6

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

Documentation

Responsible disclosure

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

Resources

Tools

Translations

Extension points exported contracts — how you extend this code

PoolOptions (Interface)
(no doc) [32 implementers]
types/lib/sequelize.d.ts
FilmToJson (Interface)
* Tests for toJson() type [2 implementers]
types/test/model.ts
Invokeable (Interface)
* Utility type for a class which can be called in addion to being used as a constructor.
lib/utils/class-to-invokable.ts
CommonErrorProperties (Interface)
(no doc) [2 implementers]
lib/errors/base-error.ts
OpTypes (Interface)
(no doc)
lib/operators.ts
StringDataType (Interface)
(no doc) [32 implementers]
types/lib/data-types.d.ts
UserAttributes (Interface)
(no doc) [1 implementers]
types/test/attributes.ts
LoggerConfig (Interface)
(no doc)
lib/utils/logger.ts

Core symbols most depended-on inside this repo

define
called by 2048
lib/sequelize.js
create
called by 1439
lib/model.js
sync
called by 1071
lib/model.js
findAll
called by 690
lib/model.js
get
called by 604
types/lib/model.d.ts
all
called by 522
lib/model-manager.js
findOne
called by 451
lib/model.js
bulkCreate
called by 410
lib/model.js

Shape

Method 1,117
Class 591
Function 307
Interface 255
Enum 11

Languages

TypeScript100%

Modules by API surface

lib/data-types.js154 symbols
lib/model.js94 symbols
lib/dialects/postgres/data-types.js86 symbols
types/lib/data-types.d.ts71 symbols
lib/dialects/abstract/query-generator.js65 symbols
lib/utils.js59 symbols
lib/dialects/postgres/query-generator.js59 symbols
types/lib/model.d.ts58 symbols
lib/dialects/db2/data-types.js58 symbols
lib/dialects/abstract/query-interface.js56 symbols
lib/dialects/mssql/query-generator.js53 symbols
lib/dialects/db2/query-generator.js52 symbols

Dependencies from manifests, versioned

@commitlint/cli15.0.0 · 1×
@commitlint/config-angular15.0.0 · 1×
@types/chai4.2.22 · 1×
@types/debug4.1.7 · 1×
@types/mocha9.0.0 · 1×
@types/node16.11.11 · 1×
@types/sinon10.0.6 · 1×
@types/validator13.7.0 · 1×
@typescript-eslint/eslint-plugin5.5.0 · 1×
@typescript-eslint/parser5.5.0 · 1×
acorn8.6.0 · 1×
chai4.3.4 · 1×

Datastores touched

(mysql)Database · 1 repos
mydbDatabase · 1 repos
database_nameDatabase · 1 repos
dbnameDatabase · 1 repos
dbnameDatabase · 1 repos

For agents

$ claude mcp add sequelize \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact