书栈网 · BookStack 本次搜索耗时 0.031 秒,为您找到 464 个相关结果.
  • Adapters

    Database adapters Memory/Filesystem SQL NoSQL Database adapters Feathers database adapters are modules that provide services that implement standard CRUD functionality for...
  • Usage

    Data retrieval / Finders find - Search for one specific element in the database findOrCreate - Search for a specific element or create it if not available findAndCountAll - Searc...
  • 构建非持久性实例

    构建非持久性实例 构建非持久性实例 为了创建定义类的实例,请执行以下操作. 如果你以前编写过 Ruby,你可能认识该语法. 使用 build - 该方法将返回一个未保存的对象,你要明确地保存它. const project = Project . build ({ title : 'my awesome project' , ...
  • Upgrade to v6 - 升级到 V6

    Upgrade to v6 - 升级到 V6 重大变化 支持 Node 10 以及更高 CLS 数据库引擎支持 Sequelize 模型 options.returning Model.changed() Model.bulkCreate() Model.upsert() 查询接口 addConstraint 变更日志 6....
  • A Note About Transactions

    A Note About Transactions Internal Transactions A Note About Transactions Note that many model operations in Sequelize allow you to specify a transaction in the options parame...
  • Deferrable

    Deferrable() -> object INITIALLY_DEFERRED() INITIALLY_IMMEDIATE() NOT() SET_DEFERRED(constraints) SET_IMMEDIATE(constraints) Deferrable() -> object View code A colle...
  • Scopes

    Scopes Definition Usage Merging Merging includes Scopes Scopes are used to help you reuse code. You can define commonly used queries, specifying options such as where , inc...
  • 安装

    安装 安装 Sequelize 可通过 npm ( 或 yarn ) 获得. // 通过 npm 安装 npm install -- save sequelize 你还需要手动安装对应的数据库驱动程序: # 选择对应的安装: $ npm install -- save pg pg - hstore # Postg...
  • Deferrable

    Deferrable Deferrable When you specify a foreign key column it is optionally possible to declare the deferrabletype in PostgreSQL. The following options are available: // Defe...
  • Eager Loading - 预先加载

    Eager Loading - 预先加载 基本示例 获取单个关联元素 获取所有关联的元素 获取别名关联 需要预先加载 在模型级别的预先加载过滤 参考其他列 顶层的复杂 where 子句 使用 RIGHT OUTER JOIN 获取 (仅限 MySQL, MariaDB, PostgreSQL 和 MSSQL) 多次预先加载 多对多关系的...