Struct expr_test_util::TestCatalog [−][src]
pub struct TestCatalog {
pub(crate) objects: HashMap<String, (GlobalId, RelationType)>,
pub(crate) names: HashMap<GlobalId, String>,
}
Expand description
A catalog that holds types of objects previously created for the unit test.
This is for the purpose of allowing MirRelationExpr
s can refer to them
later.
Fields
objects: HashMap<String, (GlobalId, RelationType)>
names: HashMap<GlobalId, String>
Implementations
Registers an object in the catalog.
Specifying transient
as true allows the object to be deleted by
Self::remove_transient_objects.
Returns the GlobalId assigned by the catalog to the object.
Errors if an object of the same name is already in the catalog.
Looks up the name of the object referred to as id
.
Handles instructions to modify the catalog.
Currently supported commands:
(defsource [types_of_cols] [[optional_sets_of_key_cols]])
insert a source into the catalog.
Clears all transient objects from the catalog.
Trait Implementations
Returns the “default value” for a type. Read more
Attempts to return the a human-readable string for the relation
identified by id
. Read more
Returns a human-readable name for the specified scalar type.
Returns a human-readable name for the specified scalar type.
Auto Trait Implementations
impl RefUnwindSafe for TestCatalog
impl Send for TestCatalog
impl Sync for TestCatalog
impl Unpin for TestCatalog
impl UnwindSafe for TestCatalog
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more