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

    MariaDB MariaDB Library for MariaDB is mariadb . const sequelize = new Sequelize ( 'database' , 'username' , 'password' , { dialect : 'mariadb' , diale...
  • Model definition

    Model definition Timestamps Data types Array(ENUM) Range types Deferrable Getters & setters Defining as part of a property Defining as part of the model options Helper funct...
  • Expansion of models

    Expansion of models Indexes Expansion of models Sequelize Models are ES6 classes. You can very easily add custom instance or class level methods. class User extends Mod...
  • TypeScript

    TypeScript 安装 使用 sequelize.define 的用法 TypeScript 从v5开始,Sequelize 提供了自己的 TypeScript 定义. 请注意,仅支持 TS >= 3.1. 由于 Sequelize 严重依赖于运行时属性赋值,因此 TypeScript 在开箱即用时不会非常有用. 需要大量的手动类型声明...
  • Basic usage

    Basic usage Options Read replication Dialects MySQL SQLite PostgreSQL MSSQL Executing raw SQL queries Basic usage To get the ball rollin' you first have to create an in...
  • Creating with Associations - 创建关联

    Creating with Associations - 创建关联 BelongsTo / HasMany / HasOne 关联 一个别名 BelongsTo 关联 HasMany / BelongsToMany 关联 Creating with Associations - 创建关联 只要所有元素都是新元素,就可以一步创建带有嵌套关联的实...
  • Read replication - 读取复制

    Read replication - 读取复制 Read replication - 读取复制 Sequelize 支持读复制,即当你想要进行 SELECT 查询时,可以连接多个服务器. 执行读取复制时,指定一个或多个服务器作为只读副本,并且一个服务器替换相同的副本(请注意,Sequelize不会 处理实际的复制过程,而应由后端数据库处理). co...
  • Relations / Associations

    One-To-One associations BelongsTo Foreign keys Target keys HasOne Difference between HasOne and BelongsTo One-To-Many associations Belongs-To-Many associations Scopes 1:m ...
  • 介绍

    Sequelize Docs 中文版 数据库引擎支持 v6 版本 v6 中文文档 (现行版本) v5 中文文档 (计划停止) v4 中文文档 (停止更新) 文档(v6) 核心概念 高级关联概念 其它主题 简单示例 赞赏支持 Sequelize Docs 中文版 ...
  • Managed transaction (auto-callback)

    Managed transaction (auto-callback) Throw errors to rollback Automatically pass transactions to all queries Managed transaction (auto-callback) Managed transactions handle co...