Trait apollo_compiler::InputDatabase
source · pub trait InputDatabase: Database + HasQueryGroup<InputStorage> {
Show 13 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 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 type_definition_files(&self) -> Vec<FileId>;
fn executable_definition_files(&self) -> Vec<FileId>;
}Required Methods§
fn recursion_limit(&self) -> Option<usize>
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.
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.