19
Home
Tuuz edited this page 2024-02-18 17:50:52 +08:00

For En reader:

In order to makes it easier to understand, We have already provided the code block. U can copy to your project and made some locally modify. To understand the introduction, try to use "Page Translate" instead.

首先先导入包


package main

import (
    "github.com/tobycroft/gorose-pro"
)

初始化

MySQL初始化

Oracle初始化

增删改

Insert新增数据

Update方法

Delete删除数据

查询

Find-First查询返回Obj对象方法

Get-Select方法

Join-Select方法

Query方法

Paginator复杂的子查询分页构建

Where/OrWhere中的多重复杂And/Or查询

PaginatorWG高性能分页

Scan独立输出到struct

Chunk分块数据读取

事务嵌套

支付环境下复杂的嵌套事务

子查询

subQuery可防止注入的子查询语句方法

参数化SubWhere子查询语句

Oracle

Replace有则更新无则新增

性能相关

Paginator性能问题byChatGPT