Skip to content

feat: 添加华为云 GaussDB 数据库分页支持feat: 添加华为云 GaussDB 数据库分页支持#872

Merged
pagehelper merged 1 commit into
masterfrom
feature/gaussdb-support
Nov 21, 2025
Merged

feat: 添加华为云 GaussDB 数据库分页支持feat: 添加华为云 GaussDB 数据库分页支持#872
pagehelper merged 1 commit into
masterfrom
feature/gaussdb-support

Conversation

@pagehelper
Copy link
Copy Markdown
Collaborator

概述

添加华为云 GaussDB 数据库的分页支持。

变更内容

  • 新增 GaussDBDialect 实现 GaussDB 分页方言
  • 新增 GaussDBRowBoundsDialect 实现基于 RowBounds 的分页
  • PageAutoDialect 中注册 gaussdb 别名

技术实现

GaussDB 使用 LIMIT offset, count 语法(类似 MySQL):

  • 当 offset 为 0 时,使用 LIMIT count 简化语法
  • 当 offset > 0 时,使用 LIMIT offset, count

参考文档:https://support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-1702.html

验证

  • ✅ 代码编译通过 (mvn clean compile)
  • ✅ 代码风格符合项目规范
  • ✅ 与现有方言实现保持一致

相关 Issue/PR

测试建议

建议在实际 GaussDB 环境中进行集成测试,可参考测试工程:https://github.com/nieqiurong/gaussdb-pagehelper-demo

Co-authored-by: nieqiurong nieqiuqiu@gmail.com- 新增 GaussDBDialect 实现 GaussDB 分页方言

  • 新增 GaussDBRowBoundsDialect 实现基于 RowBounds 的分页
  • 在 PageAutoDialect 中注册 gaussdb 别名
  • GaussDB 使用 LIMIT offset, count 语法

参考 PR #861

- 新增 GaussDBDialect 实现 GaussDB 分页方言
- 新增 GaussDBRowBoundsDialect 实现基于 RowBounds 的分页
- 在 PageAutoDialect 中注册 gaussdb 别名
- GaussDB 使用 LIMIT offset, count 语法

参考 PR #861
Co-authored-by: nieqiurong <nieqiuqiu@gmail.com>
@pagehelper pagehelper merged commit 7d0422f into master Nov 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants