书栈网 · BookStack 本次搜索耗时 0.028 秒,为您找到 619 个相关结果.
  • Preloading (Eager Loading)

    Preload Joins Preloading Preload All Preload with conditions Custom Preloading SQL Nested Preloading Embedded Preloading Preload GORM allows eager loading relations in oth...
  • 连接到数据库

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

    Auto Migration Migrator Interface CurrentDatabase Tables Columns Constraints Indexes Constraints Other Migration Tools Auto Migration Automatically migrate your schema, ...
  • Serializer

    注册序列化器 自定义序列化器类型 Serializer 是一个可扩展的接口,允许自定义如何使用数据库对数据进行序列化和反序列化 GORM 提供了一些默认的序列化器:json、gob、unixtime,这里有一个如何使用它的快速示例 type User struct { Name [] byte ...
  • 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...
  • Write Plugins

    Callbacks Register Callback Delete Callback Replace Callback Register Callback with orders Defined Callbacks Plugin Callbacks GORM itself is powered by Callbacks , it has ...
  • Performance

    Disable Default Transaction Caches Prepared Statement SQL Builder with PreparedStmt Select Fields Iteration / FindInBatches Index Hints Read/Write Splitting GORM optimizes ...
  • 原生 SQL 和 SQL 生成器

    原生 SQL 命名参数 DryRun 模式 ToSQL Row & Rows 将 sql.Rows 扫描至 model 连接 高级 子句(Clause) 子句构造器 子句选项 StatementModifier 原生 SQL 原生查询 SQL 和 Scan type Result struct { ID...
  • Has One

    1316 2020-06-11 《Go语言中文文档》
    1. Has One 1.1. Has One 1.2. 外键 1.3. 关联外键 1.4. 多态关联 1.5. 使用一对一 1. Has One 1.1. Has One has one 关联也是与另一个模型建立一对一的连接,但语义(和结果)有些不同。 此关联表示模型的每个实例包含或拥有另一个模型的一个实例。 例如,如果你的应用...
  • Delete

    Delete a Record Delete with primary key Delete Hooks Batch Delete Block Global Delete Returning Data From Deleted Rows Soft Delete Find soft deleted records Delete permanent...