pub struct ArrayDesc {
pub relation: String,
pub field: String,
pub blr_type: u8,
pub sub_type: i32,
pub scale: i32,
pub length: u16,
pub dimensions: Vec<Dimension>,
}Expand description
Descreve uma coluna ARRAY: o tipo do elemento e as dimensões. Obtido por
Connection::array_desc; consumido por Connection::read_array /
Connection::write_array para montar a SDL.
Fields§
§relation: StringNome da relação (tabela), como armazenado (normalmente em maiúsculas).
field: StringNome do campo (coluna), como armazenado.
blr_type: u8Tipo BLR do elemento (= RDB$FIELD_TYPE; ex.: 37 = VARYING, 8 = LONG).
sub_type: i32Sub-tipo (charset para texto: 1 = OCTETS; sub-tipo de blob, etc.).
scale: i32Escala (para NUMERIC/DECIMAL e inteiros escalados).
length: u16Comprimento do elemento em bytes (largura declarada do tipo).
dimensions: Vec<Dimension>Limites de cada dimensão, da mais externa para a mais interna.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrayDesc
impl RefUnwindSafe for ArrayDesc
impl Send for ArrayDesc
impl Sync for ArrayDesc
impl Unpin for ArrayDesc
impl UnsafeUnpin for ArrayDesc
impl UnwindSafe for ArrayDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more