书栈网 · BookStack 本次搜索耗时 0.023 秒,为您找到 619 个相关结果.
  • Method Chaining

    Chain Method Finisher Method New Session Method GORM allows method chaining, so you can write code like this: db . Where ( "name = ?" , "jinzhu" ). Where ( "age = ?" , 18 ...
  • Serializer

    Register Serializer Customized Serializer Type Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae. GORM provide...
  • Many To Many

    Many To Many 反向引用 重写外键 自引用 Many2Many 预加载 Many2Many 的 CURD 自定义连接表 外键约束 复合外键 Many To Many Many to Many 会在两个 model 中添加一张连接表。 例如,您的应用包含了 user 和 language,且一个 user 可以说多种 lan...
  • Community

    Ask Chat Links Videos Open Sources Contribute to this page Ask How do I ask a good question? Stackoverflow - https://stackoverflow.com/questions/tagged/go-gorm Github ...
  • 社区

    Ask Chat Links Videos Open Sources Contribute to this page Ask How do I ask a good question? Stackoverflow - https://stackoverflow.com/questions/tagged/go-gorm Github ...
  • 创建

    1583 2020-06-11 《Go语言中文文档》
    1. 创建 1.1. 创建记录 1.2. 默认值 1.3. 在钩子中设置字段值 1.4. 创建额外选项 1. 创建 1.1. 创建记录 user := User { Name : "Jinzhu" , Age : 18 , Birthday : time . Now ()} db . NewRecord ...
  • Constraints

    CHECK Constraint Index Constraint Foreign Key Constraint GORM allows create database constraints with tag, constraints will be created when AutoMigrate or CreateTable with GORM...
  • Constraints

    CHECK Constraint Index Constraint Foreign Key Constraint GORM allows create database constraints with tag, constraints will be created when AutoMigrate or CreateTable with GORM...
  • Prometheus

    用法 用户自定义指标 MySQL GORM 提供了 Prometheus 插件来收集 DBStats 和用户自定义指标 https://github.com/go-gorm/prometheus 用法 import ( "gorm.io/gorm" "gorm.io/driver/sqlite" "gorm...
  • 链式操作

    链式方法 Finisher 方法 New Session Method GORM 允许进行链式操作,所以您可以像这样写代码: db . Where ( "name = ?" , "jinzhu" ). Where ( "age = ?" , 18 ). First (& user ) GORM 中有三种类型的方法: 链式方法 、F...