Package | Description |
---|---|
org.dromara.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
|
Modifier and Type | Method and Description |
---|---|
static Session |
Session.of()
创建默认数据源会话
|
static Session |
Session.of(DataSource ds)
创建会话
|
static Session |
Session.of(String group)
创建会话
|
Modifier and Type | Method and Description |
---|---|
void |
Session.tx(SerConsumer<Session> func)
在事务中执行操作,通过实现
SerConsumer 接口的call方法执行多条SQL语句从而完成事务 |
Copyright © 2025. All rights reserved.