pub trait InputDatabase: Database + HasQueryGroup<InputStorage> {
Show 19 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 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§

source

fn recursion_limit(&self) -> Option<usize>

Get the currently set recursion limit.

source

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.

source

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.

source

fn type_system_hir_input(&self) -> Option<Arc<TypeSystem>>

Get input source of the corresponding file.

source

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.

source

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.

source

fn input(&self, key0: FileId) -> Source

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.

source

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.

source

fn source_code(&self, key0: FileId) -> Arc<str>

Get the GraphQL source text for a file.

source

fn source_type(&self, key0: FileId) -> SourceType

Get the source type (document/schema/executable) for a file.

source

fn source_files(&self) -> Vec<FileId>

Get all file ids currently in the compiler.

source

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.

source

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.

source

fn source_file(&self, key0: PathBuf) -> Option<FileId>

Find source file by file name.

source

fn source_with_lines(&self, key0: FileId) -> Arc<AriadneSource>

Get the GraphQL source text for a file, split up into lines for printing diagnostics.

source

fn source_cache(&self) -> Arc<SourceCache>

Get all GraphQL sources known to the compiler, split up into lines for printing diagnostics.

source

fn type_definition_files(&self) -> Vec<FileId>

Get all type system definition (GraphQL schema) files.

source

fn executable_definition_files(&self) -> Vec<FileId>

Get all executable definition (GraphQL query) files.

Implementors§

source§

impl<DB> InputDatabase for DBwhere DB: Database + HasQueryGroup<InputStorage>,