提交 | 用户 | 时间 | ||
e7c126 | 1 | package com.iailab.framework.mybatis.core.enums; |
H | 2 | |
3 | import com.baomidou.mybatisplus.annotation.DbType; | |
4 | ||
5 | /** | |
6 | * SQL相关常量类 | |
7 | * | |
8 | * @author iailab | |
9 | */ | |
10 | public class SqlConstants { | |
11 | ||
12 | /** | |
13 | * 数据库的类型 | |
14 | */ | |
15 | // TODO 此处使用nacos配置文件的话,先初始化nacos配置才初始化dbType,导致读不到值。暂时先固定Mysql | |
16 | public static DbType DB_TYPE = DbType.MYSQL; | |
17 | ||
18 | public static void init(DbType dbType) { | |
19 | DB_TYPE = dbType; | |
20 | } | |
21 | ||
22 | } |