mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-15 06:29:01 +08:00
🔖 Releasing / Version tags. v4.3.0.snapshot
This commit is contained in:
1 parent
0aba0eaa48
commit
b8e6deacc8
52 files changed
+193
-65
No files matched your search
+25
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+25
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user