https://github.com/yihleego/mypages
📖 MyPages is a java based, open source pagination plugin for MyBatis that simplifies database paging queries. Many databases, one plugin.
https://github.com/yihleego/mypages
antlr antlr4 database java mybatis mybatis-page mybatis-plugin mysql oracle page pageable pagination postgresql spring-boot sql
Last synced: about 2 months ago
JSON representation
📖 MyPages is a java based, open source pagination plugin for MyBatis that simplifies database paging queries. Many databases, one plugin.
- Host: GitHub
- URL: https://github.com/yihleego/mypages
- Owner: yihleego
- License: mit
- Created: 2019-11-04T16:33:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T13:28:27.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T11:20:21.610Z (about 2 months ago)
- Topics: antlr, antlr4, database, java, mybatis, mybatis-page, mybatis-plugin, mysql, oracle, page, pageable, pagination, postgresql, spring-boot, sql
- Language: Java
- Homepage:
- Size: 687 KB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.ZH_CN.md
- License: LICENSE
Awesome Lists containing this project
README
# MyPages
MyPages是Java实现基于[MyBatis](https://github.com/mybatis/mybatis-3)的开源分页插件,最大程度简化数据库分页查询操作,支持市面上大部分数据库,如:MySQL、PostgreSQL、Oracle、SQLServer等。
## 安装
请确保您的Java版本在1.8及以上。
```bash
$ git clone https://github.com/yihleego/mypages.git
$ cd mypages
$ mvn clean install
```## 依赖
### Maven
```xml
io.leego
mypages
2.2.1```
### Gradle
```xml
implementation 'io.leego:mypages:2.2.1'
```## 支持数据库
|数据库|
|:---|
| PostgreSQL|
| MySQL|
| Oracle|
| Microsoft SQL Server|
| SQLite|
| DB2|
| H2|
| MariaDB|
| HSQLDB|
| Apache Phoenix|
| Apache Derby|
| Apache Hive|
| Informix|## ANTLR
**ANTLR** (ANother Tool for Language Recognition) 是一个强大的解析器生成器,用于读取、处理、执行或翻译结构化文本或二进制文件。它被广泛用于构建语言、工具和框架。根据语法,ANTLR 生成可以构建和遍历解析树的解析器。
### 原始的SQL
```sql
select * from t where k = v
```
### 生成的SQL
```sql
select count(*) from t where k = v
```
## 文档
[English Document 英文版](README.md)
> * [用户指南 (中文版)](mypages/README.ZH_CN.md)
> * [User Guide (English)](mypages/README.md)
> * [mypages-spring-boot-starter (中文版)](mypages-spring-boot-starter/README.ZH_CN.md)
> * [mypages-spring-boot-starter (English)](mypages-spring-boot-starter/README.md)## 交流
> * 问题与意见: [点击这里](https://github.com/yihleego/mypages/issues)
## License
MyPages is under the MIT license. See the [LICENSE](LICENSE.txt) file for details.