17 package ai.heavy.jdbc;
19 import java.sql.DatabaseMetaData;
21 import ai.heavy.thrift.server.TDatumType;
62 nullable = DatabaseMetaData.typeNullable;
79 return java.sql.Types.TINYINT;
81 return java.sql.Types.SMALLINT;
83 return java.sql.Types.INTEGER;
85 return java.sql.Types.BIGINT;
87 return java.sql.Types.FLOAT;
89 return java.sql.Types.DECIMAL;
91 return java.sql.Types.DOUBLE;
93 return java.sql.Types.VARCHAR;
95 return java.sql.Types.TIME;
97 return java.sql.Types.TIMESTAMP;
99 return java.sql.Types.DATE;
101 return java.sql.Types.BOOLEAN;
107 case MULTILINESTRING:
108 return java.sql.Types.OTHER;
110 throw new AssertionError(type.name());
static int toJava(TDatumType type)
void HeavyAIType(String tn, int dt)
boolean unsignedAttribute