书栈网 · BookStack 本次搜索耗时 0.043 秒,为您找到 718 个相关结果.
  • Connecting to Database

    MySQL Customize Driver Existing database connection PostgreSQL Customize Driver Existing database connection SQLite SQL Server TiDB Clickhouse Connection Pool Unsupporte...
  • Connecting to Database

    MySQL Customize Driver Existing database connection PostgreSQL Customize Driver Existing database connection SQLite SQL Server TiDB Clickhouse Connection Pool Unsupporte...
  • Contribute

    Help others to know GORM Documentation and Writing Translate this site Program Donations You can help to deliver a better GORM! there are many things that you can do: Help...
  • Conventions

    ID as Primary Key Pluralized Table Name TableName Temporarily specify a name NamingStrategy Column Name Timestamp Tracking CreatedAt UpdatedAt ID as Primary Key GORM u...
  • 事务

    禁用默认事务 事务 嵌套事务 手动事务 一个特殊的示例 SavePoint、RollbackTo 禁用默认事务 为了确保数据一致性,GORM 会在事务里执行写入操作(创建、更新、删除)。如果没有这方面的要求,您可以在初始化时禁用它,这将获得大约 30%+ 性能提升。 // 全局禁用 db , err := gorm . Open...
  • 连接到数据库

    MySQL 自定义驱动 现有的数据库连接 PostgreSQL 自定义驱动 现有的数据库连接 SQLite SQL Server Clickhouse Connection Pool Unsupported Databases GORM 官方支持的数据库类型有: MySQL, PostgreSQL, SQlite, SQL Serve...
  • Migration

    Auto Migration Migrator Interface CurrentDatabase Tables Columns Views Constraints Indexes Constraints Atlas Integration Other Migration Tools Auto Migration Automatic...
  • 设置

    Set / Get InstanceSet / InstanceGet GORM 提供了 Set , Get , InstanceSet , InstanceGet 方法来允许用户传值给 勾子 或其他方法 Gorm 中有一些特性用到了这种机制,如迁移表格时传递表格选项。 // 创建表时添加表后缀 db . Set ( "gorm:table...
  • Overview

    Overview Install Quick Start The fantastic ORM library for Golang aims to be developer friendly. Overview Full-Featured ORM Associations (Has One, Has Many, Belongs To, Many...
  • Overview

    Overview Install Quick Start The fantastic ORM library for Golang aims to be developer friendly. Overview Full-Featured ORM Associations (Has One, Has Many, Belongs To, Many...