pub struct IntelDb { /* private fields */ }Expand description
SQLite-backed passive intelligence database for bulk dataset queries.
Implementations§
Source§impl IntelDb
impl IntelDb
Sourcepub fn insert_batch(&self, records: &[IntelRecord]) -> Result<()>
pub fn insert_batch(&self, records: &[IntelRecord]) -> Result<()>
Insert a batch of records transactionally.
Sourcepub fn query_by_ip(&self, ip: &str) -> Result<Vec<IntelRecord>>
pub fn query_by_ip(&self, ip: &str) -> Result<Vec<IntelRecord>>
Query records by IP.
Sourcepub fn query_by_host(&self, host: &str) -> Result<Vec<IntelRecord>>
pub fn query_by_host(&self, host: &str) -> Result<Vec<IntelRecord>>
Query records by hostname.
Auto Trait Implementations§
impl !Freeze for IntelDb
impl RefUnwindSafe for IntelDb
impl Send for IntelDb
impl Sync for IntelDb
impl Unpin for IntelDb
impl UnsafeUnpin for IntelDb
impl UnwindSafe for IntelDb
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