pub struct RelationDataSource { /* private fields */ }Expand description
关联数据源
提供按外键查找关联数据的能力,用于解析嵌套字段
Implementations§
Source§impl RelationDataSource
impl RelationDataSource
pub fn new() -> Self
Sourcepub fn insert_many(&self, type_name: &str, docs: Vec<Value>)
pub fn insert_many(&self, type_name: &str, docs: Vec<Value>)
批量插入文档
Sourcepub fn add_relation(&self, relation: Relation)
pub fn add_relation(&self, relation: Relation)
添加关联关系
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RelationDataSource
impl RefUnwindSafe for RelationDataSource
impl Send for RelationDataSource
impl Sync for RelationDataSource
impl Unpin for RelationDataSource
impl UnsafeUnpin for RelationDataSource
impl UnwindSafe for RelationDataSource
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