书栈网 · BookStack 本次搜索耗时 0.028 秒,为您找到 586 个相关结果.
  • GORM 配置

    跳过默认事务 命名策略 Logger NowFunc DryRun PrepareStmt DisableNestedTransaction AllowGlobalUpdate DisableAutomaticPing DisableForeignKeyConstraintWhenMigrating GORM 提供的配置可以在初始化时使...
  • GORM Dialects

    创建新方言 方言的特殊类型 PostgreSQL 创建新方言 GORM 官方支持以下几种方言:sqlite , mysql , postgres , mssql . 你可以通过创建一个新的方言来为其它数据库提供支持。 当你创建一个新方言的时候,你必须实现 the dialect interface 接口。 某些数据库可能兼容 mysql ...
  • GORM Config

    SkipDefaultTransaction NamingStrategy Logger NowFunc DryRun PrepareStmt DisableNestedTransaction AllowGlobalUpdate DisableAutomaticPing DisableForeignKeyConstraintWhenMigr...
  • 6.7 Client gorm

    6.7 Client gorm 范式 示例 6.7 Client gorm 范式 参考地址 名称 类型 描述 dsn string 数据库地址 debug bool 是否debug maxIdleConns int 最大空闲连接数 MaxOpenConns int 最大活动连接数 connMaxLifetime time 连接的...
  • Gorm 基础示例

    gorm 基础示例 开始前准备 环境配置 新建表 插入数据 查询数据 更新数据 删除数据 gorm 基础示例 本篇文档将指导你如何使用 golang 和 gorm 构建一个简单的应用程序,并实现 CRUD(创建、读取、更新、删除)功能。 Gorm 是 Golang 语言中最流行的 ORM 工具之一。 开始前准备 相关软件的简单...
  • 6.7 Client gorm

    6.7 Client gorm 范式 示例 6.7 Client gorm 范式 参考地址 (opens new window) 名称 类型 描述 dsn string 数据库地址 debug bool 是否debug maxIdleConns int 最大空闲连接数 MaxOpenConns int 最大活动连接数 connMaxL...
  • 4.3 调用Gorm

    4.3 调用Gorm 4.3.1 简介 4.3.2 配置 4.3.3 用法 4.3 调用Gorm 4.3.1 简介 4.3.2 配置 Gorm配置说明 (opens new window) [ jupiter . mysql . test ] connMaxLifetime = "300s" debug = ...
  • Gorm CRUD demo

    Gorm CRUD demo Before you start Setup your environment Create Inserting Data Querying Data Updating Data Deleting Data Gorm CRUD demo This tutorial shows you how to build...
  • Gorm 基础示例

    gorm 基础示例 开始前准备 环境配置 新建表 插入数据 查询数据 更新数据 删除数据 gorm 基础示例 本篇文档将指导你如何使用 golang 和 gorm 构建一个简单的应用程序,并实现 CRUD(创建、读取、更新、删除)功能。 Gorm 是 Golang 语言中最流行的 ORM 工具之一。 开始前准备 相关软件的简单...
  • Gorm用法介绍

    1011 2020-06-11 《Go语言中文文档》
    1. Gorm用法介绍 1.1.1. 库安装 1.1.2. 数据库连接 1.1.3. 表定义 1.1.4. 创建表 1.1.5. 插入 1.1.6. 删除 1.1.7. 查询 1.1.8. 修改 1.1.9. 错误处理 1.1.10. 事务 1.1.11. 其他 1. Gorm用法介绍 1.1.1. 库安装 go ...