书栈网 · BookStack 本次搜索耗时 0.034 秒,为您找到 469 个相关结果.
  • Constraints & Circularities

    Constraints & Circularities Enforcing a foreign key reference without constraints Constraints & Circularities Adding constraints between tables means that tables must be creat...
  • Model definition - 模型定义

    Model definition - 模型定义 时间戳 数据类型 Array(ENUM) 范围类型 可延迟 Getters & setters 定义为属性定义的一部分 定义为模型参数的一部分 用于 getter 和 setter 定义内部的 Helper 方法 验证 验证器 与 allowNull 模型验证 配置 导入 乐观锁定...
  • Querying

    Querying Attributes Where Basics Operators Range Operators Combinations Operators Aliases Operators security JSON PostgreSQL MSSQL JSONB Nested object Nested key Contai...
  • Read Replication

    Read Replication Read Replication Sequelize supports read replication , i.e. having multiple servers that you can connect to when you want to do a SELECT query. When you do rea...
  • Extending Data Types

    Extending Data Types Example PostgreSQL Ranges Extending Data Types Most likely the type you are trying to implement is already included in DataTypes . If a new datatype is ...
  • Associations

    Associations Associations For the most part hooks will work the same for instances when being associated except a few things When using add/set functions the beforeUpdate/aft...
  • Promises and async/await

    Promises and async/await Promises and async/await As shown above by the extensive usage of .then calls, Sequelize uses Promises extensively. This means that, if your Node vers...
  • Read Replication - 读取复制

    Read Replication - 读取复制 Read Replication - 读取复制 Sequelize 支持 读取复制 , 即,当你要执行 SELECT 查询时,可以连接多个服务器. 当你执行读取复制时,你可以指定一台或多台服务器充当读取副本,并指定一台服务器充当写入主机,该主机处理所有写入和更新并将它们传播到副本(请注意,实际复制过程...
  • Validations

    Validations Per-attribute validations Per-attribute validators and allowNull Model-wide validations Validations Model validations allow you to specify format/content/inherit...
  • MariaDB

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