🔖 Releasing / Version tags. v4.3.0.snapshot

This commit is contained in:
lbw committed 2022-01-14 12:20:03 +08:00
1 parent 0aba0eaa48
commit b8e6deacc8
52 files changed
+193 -65

No files matched your search

@@ -0,0 +1,25 @@
package com.pig4cloud.pigx.common.sequence.range.impl.db.provider;
import com.baomidou.mybatisplus.annotation.DbType;
import org.springframework.stereotype.Component;
/**
* 数据源提供者
*
* @author lengleng
* @date 2022-01-13
*/
@Component
public class PostgreSqlProvider implements SqlProvider {
@Override
public String getInsertRangeSql() {
return "INSERT INTO #tableName(id,name,value,gmt_create,gmt_modified)" + " VALUE(?,?,?,?,?)";
}
@Override
public Boolean support(DbType dbType) {
return DbType.POSTGRE_SQL.equals(dbType);
}
}
@@ -0,0 +1,25 @@
package com.pig4cloud.pigx.common.sequence.range.impl.db.provider;
import com.baomidou.mybatisplus.annotation.DbType;
import org.springframework.stereotype.Component;
/**
* SQL server 数据源提供者
*
* @author lengleng
* @date 2022-01-13
*/
@Component
public class SqlServerSqlProvider implements SqlProvider {
@Override
public String getInsertRangeSql() {
return "INSERT INTO #tableName(id,name,value,gmt_create,gmt_modified)" + " VALUE(?,?,?,?,?)";
}
@Override
public Boolean support(DbType dbType) {
return DbType.SQL_SERVER.equals(dbType);
}
}