Enum odbc_safe::DataType
[−]
[src]
pub enum DataType { Char(SQLULEN), Numeric(SQLULEN, SQLSMALLINT), Decimal(SQLULEN, SQLSMALLINT), Integer, SmallInt, Float, Real, Double, Varchar(SQLULEN), }
Describes a column or parameter type.
Variants
Char(SQLULEN)
Fixed sized single byte character data
Numeric(SQLULEN, SQLSMALLINT)
Exact numerical, with (Precision, Scale)
Decimal(SQLULEN, SQLSMALLINT)
Exact numerical, with (Precision, Scale)
Integer
Integer numerical with precision 10
SmallInt
Small integer numerical with precision 5
Float
Approximate numerical with precision 15
Real
Approximate numerical with precison 7
Double
Approximate numerical with precision 15
Varchar(SQLULEN)
Variadic sized single byte character data
Methods
impl DataType
[src]
Determines the type stored at the data source
See Data Types
fn sql_data_type(&self) -> SqlDataType
See SQL Data Types
fn column_size(&self) -> SQLULEN
See Column Size
fn decimal_digits(&self) -> SQLSMALLINT
See Decimal Digits
Trait Implementations
impl Debug for DataType
[src]
impl Clone for DataType
[src]
fn clone(&self) -> DataType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more