mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add OceanBase test
This commit is contained in:
parent
d1f4862407
commit
0b7133a185
@ -153,5 +153,11 @@
|
||||
<version>21.13.0.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.oceanbase</groupId>
|
||||
<artifactId>oceanbase-client</artifactId>
|
||||
<version>2.4.9</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -0,0 +1,15 @@
|
||||
package org.dromara.hutool.db;
|
||||
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class OceanBaseTest {
|
||||
@Test
|
||||
void connectTest() {
|
||||
final Db db = Db.of("ob");
|
||||
//db.insert(Entity.of("test").set("id", 1).set("name", "测试"));
|
||||
|
||||
final Entity test = db.get(Entity.of("test"));
|
||||
Console.log(test);
|
||||
}
|
||||
}
|
@ -82,10 +82,18 @@ user = looly@looly
|
||||
pass = 123
|
||||
remarks = true
|
||||
|
||||
# 测试用dm数据库
|
||||
# 测试用达梦8数据库
|
||||
# 测试环境使用docker启动,见:https://eco.dameng.com/document/dm/zh-cn/start/dm-install-docker.html
|
||||
[dm]
|
||||
url = jdbc:dm://localhost:5236
|
||||
user = SYSDBA
|
||||
pass = SYSDBA001
|
||||
remarks = true
|
||||
|
||||
# OceanBase
|
||||
# 测试环境使用docker启动,见:https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000217958
|
||||
[ob]
|
||||
url = jdbc:oceanbase://localhost:2881/test
|
||||
user = root
|
||||
pass = 123456
|
||||
remarks = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user