Struct ghastoolkit::codeql::database::CodeQLDatabase
source · pub struct CodeQLDatabase { /* private fields */ }
Expand description
CodeQL Database
Implementations§
source§impl CodeQLDatabase
impl CodeQLDatabase
sourcepub fn init() -> CodeQLDatabaseBuilder
pub fn init() -> CodeQLDatabaseBuilder
Initialize a new CodeQLDatabaseBuilder
sourcepub fn configuration_path(&self) -> PathBuf
pub fn configuration_path(&self) -> PathBuf
Get the path to the CodeQL Database configuration file
sourcepub fn version(&self) -> String
pub fn version(&self) -> String
Get the version of the CodeQL CLI used to create the database If the version is not available, it will return “0.0.0”
sourcepub fn creation_time(&self) -> Option<DateTime<Utc>>
pub fn creation_time(&self) -> Option<DateTime<Utc>>
Get the creation time of the database
sourcepub fn lines_of_code(&self) -> usize
pub fn lines_of_code(&self) -> usize
Get the number of lines of code in the database
Trait Implementations§
source§impl Clone for CodeQLDatabase
impl Clone for CodeQLDatabase
source§fn clone(&self) -> CodeQLDatabase
fn clone(&self) -> CodeQLDatabase
Returns a copy of the value. Read more
1.0.0 · 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 CodeQLDatabase
impl Debug for CodeQLDatabase
source§impl Default for CodeQLDatabase
impl Default for CodeQLDatabase
source§fn default() -> CodeQLDatabase
fn default() -> CodeQLDatabase
Returns the “default value” for a type. Read more
source§impl Display for CodeQLDatabase
impl Display for CodeQLDatabase
source§impl From<&Path> for CodeQLDatabase
impl From<&Path> for CodeQLDatabase
source§impl From<&str> for CodeQLDatabase
impl From<&str> for CodeQLDatabase
source§impl From<PathBuf> for CodeQLDatabase
impl From<PathBuf> for CodeQLDatabase
Auto Trait Implementations§
impl Freeze for CodeQLDatabase
impl RefUnwindSafe for CodeQLDatabase
impl Send for CodeQLDatabase
impl Sync for CodeQLDatabase
impl Unpin for CodeQLDatabase
impl UnwindSafe for CodeQLDatabase
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moresource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.