perf:测试数据库备份

This commit is contained in:
曾文豪
2023-02-21 09:06:53 +08:00
parent 1918dfbaa0
commit f5b8e989b7
4 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
package com.tiesheng.database.utls;
import cn.hutool.core.util.StrUtil;
public class TieshengDbUtil {
/**
* 通过url获取table_schema
*
* @param url
* @return
*/
public static String getTableSchema(String url) {
return StrUtil.sub(url, url.lastIndexOf('/') + 1, StrUtil.indexOf(url, '?'));
}
}