Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sqlrest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
comm
sqlrest
Commits
c2258558
Commit
c2258558
authored
Jun 11, 2025
by
inrgihc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复issue:ICEBYU
parent
864e824c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
README.md
+4
-4
sqlrest-common/src/main/java/com/gitee/sqlrest/common/enums/ProductTypeEnum.java
+1
-1
sqlrest-core/src/main/java/com/gitee/sqlrest/core/serdes/number/NumberValueSerializer.java
+1
-1
No files found.
README.md
View file @
c2258558
...
...
@@ -37,7 +37,7 @@
> 执行器基于sentinel支持接口的流量控制功能。
-
支持接口异常触发告警功能
>
执行器简单配置即可对接已有的告警平台,支持接口的异常
告警功能。
>
简单配置即可对接已有的告警平台,支持接口异常时的
告警功能。
### 2、支持的数据库
...
...
@@ -61,7 +61,7 @@
-
Apache Doris
-
StarRocks
-
OceanBase
-
TD
E
ngine
-
TD
e
ngine
### 3、模块结构功能
...
...
@@ -186,7 +186,7 @@ MYSQLDB_PASSWORD=123456
```
>sqlrest的缓存支持使用分布式的hazelcast或者redis,在conf/{manager,gateway,executor}/目录下的application.yml配
>置文件中,可通过如下
配置所使用的
缓存,默认为使用hazelcast缓存。
>置文件中,可通过如下
调整配置实用redis
缓存,默认为使用hazelcast缓存。
```
sqlrest:
...
...
@@ -195,7 +195,7 @@ sqlrest:
# 是否开启使用hazelcast缓存
enabled: false
redis:
# 是否开启使用redis缓存,开启时需要配置
对应
redis信息
# 是否开启使用redis缓存,开启时需要配置
下面对应的
redis信息
enabled: true
host: 127.0.0.1
port: 6379
...
...
sqlrest-common/src/main/java/com/gitee/sqlrest/common/enums/ProductTypeEnum.java
View file @
c2258558
...
...
@@ -468,7 +468,7 @@ public enum ProductTypeEnum {
ProductContext
.
builder
()
.
id
(
19
)
.
quote
(
"`"
)
.
name
(
"TD
E
ngine"
)
.
name
(
"TD
e
ngine"
)
.
driver
(
"com.taosdata.jdbc.rs.RestfulDriver"
)
.
defaultPort
(
6041
)
.
testSql
(
"/* ping */ SELECT 1"
)
...
...
sqlrest-core/src/main/java/com/gitee/sqlrest/core/serdes/number/NumberValueSerializer.java
View file @
c2258558
...
...
@@ -33,7 +33,7 @@ public class NumberValueSerializer extends StdSerializer<Number> {
throws
IOException
{
if
(
value
!=
null
)
{
if
(
value
instanceof
BigDecimal
)
{
BigDecimal
decimal
=
((
BigDecimal
)
value
).
setScale
(
this
.
decimalScale
);
BigDecimal
decimal
=
((
BigDecimal
)
value
).
setScale
(
this
.
decimalScale
,
BigDecimal
.
ROUND_FLOOR
);
jsonGenerator
.
writeNumber
(
decimal
);
}
else
if
(
value
instanceof
BigInteger
)
{
jsonGenerator
.
writeNumber
((
BigInteger
)
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment