Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03103f9

Browse files
[new] 新增方言
1 parent c27ee91 commit 03103f9

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.vonchange.mybatis.dialect;
2+
3+
public class MariaDialect extends MySQLDialect {
4+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.vonchange.mybatis.dialect;
2+
3+
import com.vonchange.common.util.ConvertUtil;
4+
import com.vonchange.common.util.UtilAll;
5+
6+
public class PostgresDialect implements Dialect {
7+
@Override
8+
public String getPageSql(String sql, int beginNo, int pageSize) {
9+
return UtilAll.UString.format("{} limit {} OFFSET {} ", sql,ConvertUtil.toString(pageSize), ConvertUtil.toString(beginNo));
10+
}
11+
12+
@Override
13+
public int getBigDataFetchSize() {
14+
return 500;
15+
}
16+
17+
@Override
18+
public int getFetchSize() {
19+
return 500;
20+
}
21+
22+
@Override
23+
public String getDialogName() {
24+
return "postgres";
25+
}
26+
27+
@Override
28+
public LikeTemplate getLikeTemplate() {
29+
return new LikeTemplate(" CONCAT('%',#{{}},'%') "," CONCAT('%',#{{}})"," CONCAT(#{{}},'%') ");
30+
}
31+
}

‎recommend.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
简单点 开发的方法简单点 繁琐的功能请省略
3+
数据脱敏 数据缓存 为啥要在ORM框架层实现
4+
QueryWrapper

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /