Trait apollo_compiler::database::InputDatabase  
source · pub trait InputDatabase: Database + HasQueryGroup<InputStorage> {
Show 22 methods
    // Required methods
    fn recursion_limit(&self) -> Option<usize>;
    fn set_recursion_limit(&mut self, value__: Option<usize>);
    fn set_recursion_limit_with_durability(
        &mut self,
        value__: Option<usize>,
        durability__: Durability
    );
    fn token_limit(&self) -> Option<usize>;
    fn set_token_limit(&mut self, value__: Option<usize>);
    fn set_token_limit_with_durability(
        &mut self,
        value__: Option<usize>,
        durability__: Durability
    );
    fn type_system_hir_input(&self) -> Option<Arc<TypeSystem>>;
    fn set_type_system_hir_input(&mut self, value__: Option<Arc<TypeSystem>>);
    fn set_type_system_hir_input_with_durability(
        &mut self,
        value__: Option<Arc<TypeSystem>>,
        durability__: Durability
    );
    fn input(&self, key0: FileId) -> Source;
    fn set_input(&mut self, key0: FileId, value__: Source);
    fn set_input_with_durability(
        &mut self,
        key0: FileId,
        value__: Source,
        durability__: Durability
    );
    fn source_code(&self, key0: FileId) -> Arc<str>;
    fn source_type(&self, key0: FileId) -> SourceType;
    fn source_files(&self) -> Vec<FileId>;
    fn set_source_files(&mut self, value__: Vec<FileId>);
    fn set_source_files_with_durability(
        &mut self,
        value__: Vec<FileId>,
        durability__: Durability
    );
    fn source_file(&self, key0: PathBuf) -> Option<FileId>;
    fn source_with_lines(&self, key0: FileId) -> Arc<AriadneSource>;
    fn source_cache(&self) -> Arc<SourceCache>;
    fn type_definition_files(&self) -> Vec<FileId>;
    fn executable_definition_files(&self) -> Vec<FileId>;
}Required Methods§
sourcefn recursion_limit(&self) -> Option<usize>
 
fn recursion_limit(&self) -> Option<usize>
Get the currently set recursion limit.
sourcefn set_recursion_limit(&mut self, value__: Option<usize>)
 
fn set_recursion_limit(&mut self, value__: Option<usize>)
Set the value of the recursion_limit input.
See recursion_limit for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_recursion_limit_with_durability(
    &mut self,
    value__: Option<usize>,
    durability__: Durability
)
 
fn set_recursion_limit_with_durability( &mut self, value__: Option<usize>, durability__: Durability )
Set the value of the recursion_limit input and promise
that its value will never change again.
See recursion_limit for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn token_limit(&self) -> Option<usize>
 
fn token_limit(&self) -> Option<usize>
Get the currently set token limit.
sourcefn set_token_limit(&mut self, value__: Option<usize>)
 
fn set_token_limit(&mut self, value__: Option<usize>)
Set the value of the token_limit input.
See token_limit for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_token_limit_with_durability(
    &mut self,
    value__: Option<usize>,
    durability__: Durability
)
 
fn set_token_limit_with_durability( &mut self, value__: Option<usize>, durability__: Durability )
Set the value of the token_limit input and promise
that its value will never change again.
See token_limit for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn type_system_hir_input(&self) -> Option<Arc<TypeSystem>>
 
fn type_system_hir_input(&self) -> Option<Arc<TypeSystem>>
Get input source of the corresponding file.
sourcefn set_type_system_hir_input(&mut self, value__: Option<Arc<TypeSystem>>)
 
fn set_type_system_hir_input(&mut self, value__: Option<Arc<TypeSystem>>)
Set the value of the type_system_hir_input input.
See type_system_hir_input for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_type_system_hir_input_with_durability(
    &mut self,
    value__: Option<Arc<TypeSystem>>,
    durability__: Durability
)
 
fn set_type_system_hir_input_with_durability( &mut self, value__: Option<Arc<TypeSystem>>, durability__: Durability )
Set the value of the type_system_hir_input input and promise
that its value will never change again.
See type_system_hir_input for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
fn input(&self, key0: FileId) -> Source
sourcefn set_input(&mut self, key0: FileId, value__: Source)
 
fn set_input(&mut self, key0: FileId, value__: Source)
Set the value of the input input.
See input for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_input_with_durability(
    &mut self,
    key0: FileId,
    value__: Source,
    durability__: Durability
)
 
fn set_input_with_durability( &mut self, key0: FileId, value__: Source, durability__: Durability )
Set the value of the input input and promise
that its value will never change again.
See input for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn source_code(&self, key0: FileId) -> Arc<str>
 
fn source_code(&self, key0: FileId) -> Arc<str>
Get the GraphQL source text for a file.
sourcefn source_type(&self, key0: FileId) -> SourceType
 
fn source_type(&self, key0: FileId) -> SourceType
Get the source type (document/schema/executable) for a file.
sourcefn source_files(&self) -> Vec<FileId>
 
fn source_files(&self) -> Vec<FileId>
Get all file ids currently in the compiler.
sourcefn set_source_files(&mut self, value__: Vec<FileId>)
 
fn set_source_files(&mut self, value__: Vec<FileId>)
Set the value of the source_files input.
See source_files for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn set_source_files_with_durability(
    &mut self,
    value__: Vec<FileId>,
    durability__: Durability
)
 
fn set_source_files_with_durability( &mut self, value__: Vec<FileId>, durability__: Durability )
Set the value of the source_files input and promise
that its value will never change again.
See source_files for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
sourcefn source_file(&self, key0: PathBuf) -> Option<FileId>
 
fn source_file(&self, key0: PathBuf) -> Option<FileId>
Find source file by file name.
sourcefn source_with_lines(&self, key0: FileId) -> Arc<AriadneSource>
 
fn source_with_lines(&self, key0: FileId) -> Arc<AriadneSource>
Get the GraphQL source text for a file, split up into lines for printing diagnostics.
sourcefn source_cache(&self) -> Arc<SourceCache>
 
fn source_cache(&self) -> Arc<SourceCache>
Get all GraphQL sources known to the compiler, split up into lines for printing diagnostics.
sourcefn type_definition_files(&self) -> Vec<FileId>
 
fn type_definition_files(&self) -> Vec<FileId>
Get all type system definition (GraphQL schema) files.
sourcefn executable_definition_files(&self) -> Vec<FileId>
 
fn executable_definition_files(&self) -> Vec<FileId>
Get all executable definition (GraphQL query) files.