xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Node.js ORM All In One

Node.js ORM All In One

Node.js

Sequelize

Sequelize is a modern TypeScript and Node.js ORM for Oracle, Postgres, MySQL, MariaDB, SQLite and SQL Server, and more.

$ npm install sequelize sqlite3
# or
$ yarn add sequelize sqlite3
import { Sequelize, Model, DataTypes } from 'sequelize';

const sequelize = new Sequelize('sqlite::memory:');
const User = sequelize.define('User', {
  username: DataTypes.STRING,
  birthday: DataTypes.DATE,
});
const jane = await User.create({
  username: 'janedoe',
  birthday: new Date(1980, 6, 20),
});

const users = await User.findAll();

https://sequelize.org/

https://github.com/sequelize/sequelize

https://www.npmjs.com/package/sequelize

TypeScript

TypeORM

https://typeorm.io/

https://github.com/typeorm/typeorm

https://www.npmjs.com/package/typeorm

Prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

https://www.prisma.io

https://github.com/prisma/prisma

mongo

The MongoDB Database

www.mongodb.com/

https://github.com/mongodb/mongo

ORM

ORM DadaBases

MySQL

SQLite

https://github.com/topics/orm

https://github.com/topics/mysql

ODM

ODM DadaBases

MongoDB

https://github.com/topics/odm
https://github.com/topics/odm?o=desc&s=stars

https://github.com/topics/mongodb

https://github.com/NodeBB/NodeBB

tools

名称 描述 下载链接
Robomongo MongoDB 客户端连接工具 https://robomongo.org/download
https://studio3t.com/download-studio3t-free
Navicat MySQL 数据库连接工具 https://www.navicat.com/en/download/navicat-for-mysql
https://www.navicat.com/en/download/navicat-for-mysql#mac

refs

https://www.cnblogs.com/xgqfrms/p/12861528.html

https://www.cnblogs.com/xgqfrms/p/12009776.html

https://www.cnblogs.com/xgqfrms/p/13595464.html



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-10-13 18:40  xgqfrms  阅读(25)  评论(3编辑  收藏  举报