{"id":15024554,"url":"https://github.com/yihleego/mypages","last_synced_at":"2025-04-12T06:32:36.545Z","repository":{"id":52611139,"uuid":"219547090","full_name":"yihleego/mypages","owner":"yihleego","description":"📖 MyPages is a java based, open source pagination plugin for MyBatis that simplifies database paging queries. Many databases, one plugin.","archived":false,"fork":false,"pushed_at":"2022-05-31T13:28:27.000Z","size":703,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T11:20:21.610Z","etag":null,"topics":["antlr","antlr4","database","java","mybatis","mybatis-page","mybatis-plugin","mysql","oracle","page","pageable","pagination","postgresql","spring-boot","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yihleego.png","metadata":{"files":{"readme":"README.ZH_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-04T16:33:01.000Z","updated_at":"2024-02-15T13:36:36.000Z","dependencies_parsed_at":"2022-08-13T02:01:19.271Z","dependency_job_id":null,"html_url":"https://github.com/yihleego/mypages","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihleego%2Fmypages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihleego%2Fmypages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihleego%2Fmypages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yihleego%2Fmypages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yihleego","download_url":"https://codeload.github.com/yihleego/mypages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248529899,"owners_count":21119580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antlr","antlr4","database","java","mybatis","mybatis-page","mybatis-plugin","mysql","oracle","page","pageable","pagination","postgresql","spring-boot","sql"],"created_at":"2024-09-24T20:00:32.323Z","updated_at":"2025-04-12T06:32:35.395Z","avatar_url":"https://github.com/yihleego.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyPages\n\nMyPages是Java实现基于[MyBatis](https://github.com/mybatis/mybatis-3)的开源分页插件，最大程度简化数据库分页查询操作，支持市面上大部分数据库，如：MySQL、PostgreSQL、Oracle、SQLServer等。\n\n## 安装\n\n请确保您的Java版本在1.8及以上。\n\n```bash\n$ git clone https://github.com/yihleego/mypages.git\n$ cd mypages\n$ mvn clean install\n```\n\n## 依赖\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.leego\u003c/groupId\u003e\n    \u003cartifactId\u003emypages\u003c/artifactId\u003e\n    \u003cversion\u003e2.2.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```xml\nimplementation 'io.leego:mypages:2.2.1'\n```\n\n## 支持数据库\n\n|数据库|\n|:---|\n|![PostgreSQL](docs/databases/postgresql.svg) PostgreSQL|\n|![MySQL](docs/databases/mysql.svg) MySQL|\n|![Oracle](docs/databases/oracle.svg) Oracle|\n|![Microsoft SQL Server](docs/databases/sql_server.svg) Microsoft SQL Server|\n|![SQLite](docs/databases/sqlite.svg) SQLite|\n|![DB2](docs/databases/db2.svg) DB2|\n|![H2](docs/databases/h2.svg) H2|\n|![MariaDB](docs/databases/mariadb.svg) MariaDB|\n|![HSQLDB](docs/databases/hsqldb.svg) HSQLDB|\n|![Apache Phoenix](docs/databases/apache_phoenix.svg) Apache Phoenix|\n|![Apache Derby](docs/databases/apache_derby.svg) Apache Derby|\n|![Apache Hive](docs/databases/hive.svg) Apache Hive|\n|![Informix](docs/databases/informix.svg) Informix|\n\n## ANTLR\n\n**ANTLR** (ANother Tool for Language Recognition) 是一个强大的解析器生成器，用于读取、处理、执行或翻译结构化文本或二进制文件。它被广泛用于构建语言、工具和框架。根据语法，ANTLR 生成可以构建和遍历解析树的解析器。\n\n### 原始的SQL\n\n```sql\nselect * from t where k = v\n```\n\n![Query Statement Tree](docs/sql/query_tree.png)\n\n### 生成的SQL\n\n```sql\nselect count(*) from t where k = v\n```\n\n![Count Statement Tree](docs/sql/count_tree.png)\n\n## 文档\n\n[English Document 英文版](README.md)\n\n\u003e * [用户指南 (中文版)](mypages/README.ZH_CN.md)\n\u003e * [User Guide (English)](mypages/README.md)\n\u003e * [mypages-spring-boot-starter (中文版)](mypages-spring-boot-starter/README.ZH_CN.md)\n\u003e * [mypages-spring-boot-starter (English)](mypages-spring-boot-starter/README.md)\n\n## 交流\n\n\u003e * 问题与意见: [点击这里](https://github.com/yihleego/mypages/issues)\n\n## License\n\nMyPages is under the MIT license. See the [LICENSE](LICENSE.txt) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihleego%2Fmypages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyihleego%2Fmypages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyihleego%2Fmypages/lists"}