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 new(
data_type: SqlDataType,
column_size: SQLULEN,
decimal_digits: SQLSMALLINT
) -> Option<DataType>
[src]
data_type: SqlDataType,
column_size: SQLULEN,
decimal_digits: SQLSMALLINT
) -> Option<DataType>
Creates a DataType
from a triplet. If the data_type does not require the information
column_size
or decimal_digits
.
fn sql_data_type(&self) -> SqlDataType
[src]
See SQL Data Types
fn column_size(&self) -> SQLULEN
[src]
See Column Size
fn decimal_digits(&self) -> SQLSMALLINT
[src]
See Decimal Digits
Trait Implementations
impl Debug for DataType
[src]
impl Clone for DataType
[src]
fn clone(&self) -> DataType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for DataType
[src]
impl PartialEq for DataType
[src]
fn eq(&self, __arg_0: &DataType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataType) -> bool
[src]
This method tests for !=
.