Coder Social home page Coder Social logo

zhouhaimei / sequelize-docs-zh-cn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from demopark/sequelize-docs-zh-cn

0.0 1.0 0.0 332 KB

Sequelize 文档的中文版本 , 更新至 v5.18.1 版本.

Home Page: https://demopark.github.io/sequelize-docs-Zh-CN/

License: GNU General Public License v2.0

sequelize-docs-zh-cn's Introduction

Sequelize Docs 中文版

npm version Travis Build Status Appveyor Build Status npm downloads codecov Last commit Merged PRs GitHub stars Bountysource Slack Status node License semantic-release

此项目同步自 sequelize / sequelize 项目中的 docs. 除特殊情况, 将保持每月一次的同步频率.

更新日志请参阅: CHANGELOG

Sequelize 是一个基于 promise 的 Node.js ORM, 目前支持 Postgres, MySQL, SQLite 和 Microsoft SQL Server. 它具有强大的事务支持, 关联关系, 预读和延迟加载,读取复制等功能.

Sequelize 遵从 SEMVER. 支持 Node v6 及更高版本以便使用 ES6 功能.

Sequelize v5 已发布于 2019-3-21. 现在包括官方的 TypeScript 类型.

你目前正在查看 Sequelize 的教程和指南.你可能还对API 参考 (英文)感兴趣.

版本

v4 中文文档(停止更新)

简单示例

const Sequelize = require('sequelize');
const sequelize = new Sequelize('postgres://user:[email protected]:5432/dbname');

class User extends Sequelize.Model {}
User.init({
  username: Sequelize.STRING,
  birthday: Sequelize.DATE
}, { sequelize, modelName: 'user' });

sequelize.sync()
  .then(() => User.create({
    username: 'janedoe',
    birthday: new Date(1980, 6, 20)
  }))
  .then(jane => {
    console.log(jane.toJSON());
  });

请通过 Getting started - 入门 来学习更多相关内容. 如果你想要学习 Sequelize API 请通过 API 参考 (英文).

文档(v5)

赞赏支持

赞赏支持

sequelize-docs-zh-cn's People

Contributors

demopark avatar xiaohp avatar cocacolf avatar carlhey avatar kennytian avatar wujjpp avatar simonguo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.