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 MirRelationExprs 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

Formats the value using the given formatter. Read more

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Wrap the input message T in a tonic::Request

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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