精华内容
参与话题
问答
  • Sequelize

    2020-11-28 11:19:14
    <div><ul>[x] Configure all the Sequelize things</li><li>[x] Create Installation model</li><li>[x] Configure pg on travis</li><li>[x] Create & migrate db with <code>script/bootstrap</code></li>[x] ...
  • sequelize

    2019-12-13 11:44:50
    Sequelize是用于Postgres,MySQL,MariaDB,SQLite和Microsoft SQL Server的基于承诺的Node.js ORM。它具有可靠的事务支持,关系,渴望和延迟加载,读取复制等功能。 简单的讲就是对SQL查询语句的封装. GitHub:地址...

    Sequelize是用于Postgres,MySQL,MariaDB,SQLite和Microsoft SQL Server的基于承诺的Node.js ORM。它具有可靠的事务支持,关系,渴望和延迟加载,读取复制等功能。

    简单的讲就是对SQL查询语句的封装.

    GitHub:地址
    文档:地址

    它支持Node v6及更高版本以使用ES6功能。
    功能示例:

    const { Sequelize, Model, DataTypes } = require('sequelize');
    const sequelize = new Sequelize('sqlite::memory:');
    
    class User extends Model {}
    User.init({
      username: DataTypes.STRING,
      birthday: DataTypes.DATE
    }, { sequelize, modelName: 'user' });
    
    sequelize.sync()
      .then(() => User.create({
        username: 'janedoe',
        birthday: new Date(1980, 6, 20)
      }))
      .then(jane => {
        console.log(jane.toJSON());
      });
    
    展开全文
  • Sequelize 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 ...
  • Sequelize Migrations

    2020-11-29 13:48:07
    Since Sequelize has a CLI that can generate migration files, do y'all use that and copy the javascript file into your code bases? <p>Is there a way we could create a sequelize-typescript ...
  • Support for Sequelize v6

    2020-11-29 19:07:38
    <p>There is a new major <a href="https://github.com/sequelize/sequelize/releases/tag/v6.1.0">Sequelize release v6</a> that changes Sequelize's internals quite a bit (for example removing Bluebird,...
  • <div><p>https://david-dm.org/sequelize/sequelize gives "Failed to get dependency info" <p>It has been working previously, so I'm not sure what's wrong - perhaps that one of our ...
  • Sequelize vs Typeorm

    2020-11-29 04:17:26
    m down to use TypeORM but we should loop into this conversation as I believe it was he who initially proposed sequelize. <p><em>Originally posted by in ...
  • Sequelize migration example

    2020-11-27 17:38:45
    <div><p>Hi there! <p>I'm trying to wrap my head around umzug and can't seem to figure out how to actually run a Sequalize migration in the proposed format given here: ...sequelize/umzug</p></div>
  • <pre><code>export const sequelize = new Sequelize({ database: process.env.DB_DEFAULT || '', username: process.env.DB_USER || '', password: process.env.DB_PASSWORD || '',...
  • Upgrade to sequelize 6.3.0

    2020-12-02 08:30:58
    <p>I have already had a change accepted in the master branch of sequelize and am currently porting to the <code>v6</code> branch for release to npm. <p>Is there any reason an upgrade to a 6.x version...
  • Sequelize V6

    2020-12-02 15:08:42
    <div><p>Should be pretty simple, the only breaking change I see is 'addHook'/'removeHook' removing. ...overlookmotel/sequelize-hierarchy</p></div>
  • node_modules/sequelize-typescript/dist/sequelize/sequelize/sequelize.d.ts:12:5 - error TS2416: Property 'model' in type 'Sequelize' is not assignable to the same property in base type ...
  • export function idFetcher(sequelize) { return globalId => { let {type, id} = fromGlobalId(globalId); const models = Object.keys(sequelize.models); type = type.toLowerCase(); if...
  • <p>So far we install both /sequelize and /sequelize-typescript and then import Transaction from sequelize but as soon as I upgrade the version to 0.6.6, I get this error in VSCode and I am not even ...
  • <ul><li><a href="https://urls.greenkeeper.io/sequelize/sequelize/commit/cc765cc89f97b1b462bcb5039f84bfacac663747"><code>cc765cc</code></a> <code>build(travis): run lint stage first</code></li><li><a ...
  • <div><h2>Version <strong>4.32.0</strong> of <a href="https://github.com/sequelize/sequelize">sequelize</a> was just published. Branch ...

空空如也

1 2 3 4 5 ... 20
收藏数 2,973
精华内容 1,189
关键字:

sequelize