mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 10:43:06 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -8,6 +8,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import ai.chat2db.plugin.oracle.builder.OracleSqlBuilder;
|
||||
import ai.chat2db.plugin.oracle.type.OracleColumnTypeEnum;
|
||||
import ai.chat2db.plugin.oracle.type.OracleDefaultValueEnum;
|
||||
import ai.chat2db.plugin.oracle.type.OracleIndexTypeEnum;
|
||||
import ai.chat2db.spi.MetaData;
|
||||
import ai.chat2db.spi.SqlBuilder;
|
||||
@ -295,6 +296,7 @@ public class OracleMetaData extends DefaultMetaService implements MetaData {
|
||||
.charsets(Lists.newArrayList())
|
||||
.collations(Lists.newArrayList())
|
||||
.indexTypes(OracleIndexTypeEnum.getIndexTypes())
|
||||
.defaultValues(OracleDefaultValueEnum.getDefaultValues())
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package ai.chat2db.plugin.oracle.type;
|
||||
|
||||
import ai.chat2db.spi.model.DefaultValue;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public enum OracleDefaultValueEnum {
|
||||
|
||||
EMPTY_STRING("EMPTY_STRING"),
|
||||
NULL("NULL"),
|
||||
;
|
||||
private DefaultValue defaultValue;
|
||||
|
||||
OracleDefaultValueEnum(String defaultValue) {
|
||||
this.defaultValue = new DefaultValue(defaultValue);
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue getDefaultValue() {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public static List<DefaultValue> getDefaultValues() {
|
||||
return Arrays.stream(OracleDefaultValueEnum.values()).map(OracleDefaultValueEnum::getDefaultValue).collect(java.util.stream.Collectors.toList());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user