pub mod ddl;
mod sql_type;
mod type_category;
pub mod types {
macro_rules! mysql_markers {
($($name:ident),+ $(,)?) => {
$(
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
pub struct $name;
)+
};
}
mysql_markers!(
TinyInt,
TinyIntUnsigned,
SmallInt,
SmallIntUnsigned,
MediumInt,
MediumIntUnsigned,
Int,
IntUnsigned,
BigInt,
BigIntUnsigned,
Float,
Double,
Decimal,
Boolean,
Char,
Varchar,
TinyText,
Text,
MediumText,
LongText,
Binary,
Varbinary,
TinyBlob,
Blob,
MediumBlob,
LongBlob,
Json,
Date,
Time,
DateTime,
Timestamp,
Year,
Enum,
Set,
Bit,
Any,
);
pub type Integer = Int;
pub type IntegerUnsigned = IntUnsigned;
pub type Numeric = Decimal;
}
pub use sql_type::MySQLType;
pub use type_category::{MySQLTypeCategory, TypeCategory};