pub struct SqlForeignKeySchema {
pub constraint_name: Option<String>,
pub columns: Vec<String>,
pub referenced_table: String,
pub referenced_columns: Vec<String>,
}Expand description
Backend-neutral SQL foreign-key constraint metadata.
Per br-frankenpandas-uht8 (fd90.29). Aligns with
SQLAlchemy.Inspector.get_foreign_keys() shape: a single FK
constraint may span multiple columns (composite FK), and
columns[i] references referenced_columns[i] on
referenced_table. constraint_name is None for SQLite
inline FKs declared without an explicit CONSTRAINT name (PRAGMA
foreign_key_list does not surface a name, so we return None
there rather than fabricating one).
Fields§
§constraint_name: Option<String>§columns: Vec<String>§referenced_table: String§referenced_columns: Vec<String>Trait Implementations§
Source§impl Clone for SqlForeignKeySchema
impl Clone for SqlForeignKeySchema
Source§fn clone(&self) -> SqlForeignKeySchema
fn clone(&self) -> SqlForeignKeySchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlForeignKeySchema
impl Debug for SqlForeignKeySchema
impl Eq for SqlForeignKeySchema
Source§impl PartialEq for SqlForeignKeySchema
impl PartialEq for SqlForeignKeySchema
impl StructuralPartialEq for SqlForeignKeySchema
Auto Trait Implementations§
impl Freeze for SqlForeignKeySchema
impl RefUnwindSafe for SqlForeignKeySchema
impl Send for SqlForeignKeySchema
impl Sync for SqlForeignKeySchema
impl Unpin for SqlForeignKeySchema
impl UnsafeUnpin for SqlForeignKeySchema
impl UnwindSafe for SqlForeignKeySchema
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.