Skip to main content

DdColumn

Struct DdColumn 

Source
pub struct DdColumn {
Show 25 fields pub name: String, pub dd_type: u64, pub column_type_utf8: String, pub ordinal_position: u64, pub hidden: u64, pub is_nullable: bool, pub is_unsigned: bool, pub is_auto_increment: bool, pub is_virtual: bool, pub char_length: u64, pub numeric_precision: u64, pub numeric_scale: u64, pub datetime_precision: u64, pub collation_id: u64, pub default_value_utf8: String, pub default_value_utf8_null: bool, pub has_no_default: bool, pub default_option: String, pub update_option: String, pub generation_expression: String, pub generation_expression_utf8: String, pub elements: Vec<DdColumnElement>, pub comment: String, pub is_zerofill: bool, pub se_private_data: Option<String>,
}
Expand description

Data dictionary column definition.

Fields§

§name: String

Column name.

§dd_type: u64

dd_type code (internal MySQL type enumeration).

§column_type_utf8: String

SQL type string from MySQL (e.g., “varchar(255)”, “int unsigned”).

§ordinal_position: u64

Position in the column list (1-based).

§hidden: u64

Hidden flag: 1=visible, 2=SE-hidden (DB_TRX_ID, DB_ROLL_PTR, DB_ROW_ID), 3=SQL-hidden (functional index backing columns), 4=user INVISIBLE (MySQL 8.0.23+).

§is_nullable: bool

Whether the column allows NULL.

§is_unsigned: bool

Whether the column is unsigned.

§is_auto_increment: bool

Whether the column is AUTO_INCREMENT.

§is_virtual: bool

Whether the column is virtual (generated).

§char_length: u64

Character length.

§numeric_precision: u64

Numeric precision.

§numeric_scale: u64

Numeric scale.

§datetime_precision: u64

Datetime fractional seconds precision.

§collation_id: u64

Collation ID for this column.

§default_value_utf8: String

Default value as UTF-8 string.

§default_value_utf8_null: bool

Whether default_value_utf8 is NULL.

§has_no_default: bool

Whether the column has no default.

§default_option: String

Default option (e.g., “CURRENT_TIMESTAMP”).

§update_option: String

Update option (e.g., “CURRENT_TIMESTAMP”).

§generation_expression: String

Generation expression (raw).

§generation_expression_utf8: String

Generation expression as UTF-8.

§elements: Vec<DdColumnElement>

ENUM/SET value elements.

§comment: String

Column comment.

§is_zerofill: bool

Whether the column is zerofill.

§se_private_data: Option<String>

Storage engine private data (e.g., “version_added=1;physical_pos=5;”).

Trait Implementations§

Source§

impl Debug for DdColumn

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DdColumn

Source§

fn default() -> DdColumn

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for DdColumn

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,