Skip to main content

QueryEngine

Struct QueryEngine 

Source
pub struct QueryEngine<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> QueryEngine<'a>

Source

pub fn new(engine: &'a ForgeEngine) -> Self

Source

pub fn get_blueprint(&self, id: &BlueprintId) -> ForgeResult<&Blueprint>

Source

pub fn list_blueprints(&self) -> Vec<&Blueprint>

Source

pub fn list_by_status(&self, status: BlueprintStatus) -> Vec<&Blueprint>

Source

pub fn search_blueprints(&self, query: &str) -> Vec<&Blueprint>

Source

pub fn blueprint_count(&self) -> usize

Source

pub fn blueprint_exists(&self, id: &BlueprintId) -> bool

Source

pub fn get_entity( &self, bp_id: &BlueprintId, entity_id: &EntityId, ) -> ForgeResult<&Entity>

Source

pub fn get_entity_by_name( &self, bp_id: &BlueprintId, name: &str, ) -> ForgeResult<&Entity>

Source

pub fn list_entities(&self, bp_id: &BlueprintId) -> ForgeResult<&[Entity]>

Source

pub fn entity_count(&self, bp_id: &BlueprintId) -> ForgeResult<usize>

Source

pub fn search_entities( &self, bp_id: &BlueprintId, query: &str, ) -> ForgeResult<Vec<&Entity>>

Source

pub fn list_aggregate_roots( &self, bp_id: &BlueprintId, ) -> ForgeResult<Vec<&Entity>>

Source

pub fn get_file( &self, bp_id: &BlueprintId, file_id: &FileId, ) -> ForgeResult<&FileBlueprint>

Source

pub fn get_file_by_path( &self, bp_id: &BlueprintId, path: &str, ) -> ForgeResult<&FileBlueprint>

Source

pub fn list_files(&self, bp_id: &BlueprintId) -> ForgeResult<&[FileBlueprint]>

Source

pub fn list_files_by_type( &self, bp_id: &BlueprintId, ft: FileType, ) -> ForgeResult<Vec<&FileBlueprint>>

Source

pub fn file_count(&self, bp_id: &BlueprintId) -> ForgeResult<usize>

Source

pub fn get_dependency( &self, bp_id: &BlueprintId, dep_id: &DependencyId, ) -> ForgeResult<&Dependency>

Source

pub fn get_dependency_by_name( &self, bp_id: &BlueprintId, name: &str, ) -> ForgeResult<&Dependency>

Source

pub fn list_dependencies( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[Dependency]>

Source

pub fn list_dependencies_by_type( &self, bp_id: &BlueprintId, dt: DependencyType, ) -> ForgeResult<Vec<&Dependency>>

Source

pub fn dependency_count(&self, bp_id: &BlueprintId) -> ForgeResult<usize>

Source

pub fn get_test_case( &self, bp_id: &BlueprintId, tc_id: &TestCaseId, ) -> ForgeResult<&TestCase>

Source

pub fn list_test_cases(&self, bp_id: &BlueprintId) -> ForgeResult<&[TestCase]>

Source

pub fn list_tests_by_type( &self, bp_id: &BlueprintId, tt: TestType, ) -> ForgeResult<Vec<&TestCase>>

Source

pub fn test_count(&self, bp_id: &BlueprintId) -> ForgeResult<usize>

Source

pub fn list_type_definitions( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[TypeDefinition]>

Source

pub fn get_type_definition( &self, bp_id: &BlueprintId, name: &str, ) -> ForgeResult<&TypeDefinition>

Source

pub fn list_function_blueprints( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[FunctionBlueprint]>

Source

pub fn list_layers( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[ArchitectureLayer]>

Source

pub fn list_concerns( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[CrossCuttingConcern]>

Source

pub fn list_wiring( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[ComponentWiring]>

Source

pub fn list_data_flows(&self, bp_id: &BlueprintId) -> ForgeResult<&[DataFlow]>

Source

pub fn list_import_graph( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[ImportEdge]>

Source

pub fn get_generation_order( &self, bp_id: &BlueprintId, ) -> ForgeResult<&[String]>

Source

pub fn validate_blueprint( &self, bp_id: &BlueprintId, ) -> ForgeResult<Vec<String>>

Source

pub fn blueprint_summary( &self, bp_id: &BlueprintId, ) -> ForgeResult<BlueprintSummary>

Auto Trait Implementations§

§

impl<'a> Freeze for QueryEngine<'a>

§

impl<'a> RefUnwindSafe for QueryEngine<'a>

§

impl<'a> Send for QueryEngine<'a>

§

impl<'a> Sync for QueryEngine<'a>

§

impl<'a> Unpin for QueryEngine<'a>

§

impl<'a> UnsafeUnpin for QueryEngine<'a>

§

impl<'a> UnwindSafe for QueryEngine<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.