whycxzp
2021-08-27 9f1dab940da5cef62e90333ec978d2fe48635273
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.whyc.mapper;
 
import com.whyc.pojo.Tables;
 
import java.util.List;
 
/**
 * 建库建表相关Mapper
 */
public interface DBMapper {
 
    String DBExist(String dbName);
 
    String tableExist(String dbName,String tableName);
 
    boolean createDB(String dbName);
 
    boolean createTable(String sql);
 
    /**模糊查询表名,获取表名*/
    List<Tables> getTableNames(String dbName, String tableNameRegexp);
 
    boolean deleteAll(String dbName,String tableName);
}