Implement data type enum
andygrove opened this issue · comments
Andy Grove commented
We need an enum describing all available/supported data types. It could be based on https://docs.oracle.com/javase/8/docs/api/java/sql/JDBCType.html
Ken Suenobu commented
Are you wanting an enum that just defines the sizes, or do you want an enum that contains a store of sorts for each result?
Rumato Estorsky commented
Should consider that JDBC lack of some features like supporting JSON like column types. And it is also not so good for working with array types.
Andy Grove commented
Closing this for now since there is a basic enum in place.
/// RDBC Data Types
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum DataType {
Bool,
Byte,
Char,
Short,
Integer,
Float,
Double,
Decimal,
Date,
Time,
Datetime,
Utf8,
Binary,
}