pub struct DummyCatalog;
Expand description

A dummy SessionCatalog implementation.

This implementation is suitable for use in tests that plan queries which are not demanding of the catalog, as many methods are unimplemented.

Trait Implementations§

Formats the value using the given formatter. Read more
Attempts to return the a human-readable string for the relation identified by id.
Same as above, but without qualifications, e.g., only foo for materialize.public.foo.
Returns a human-readable name for the specified scalar type.
Returns a human-readable name for the specified scalar type.
Returns the id of the role that is issuing the query.
Returns the database to use if one is not explicitly specified.
Returns the cluster to use if one is not explicitly specified.
Returns the resolved search paths for the current user. (Invalid search paths are skipped.)
Returns the descriptor of the named prepared statement on the session, or None if the prepared statement does not exist.
Resolves the named database. Read more
Gets a database by its ID. Read more
Resolves a partially-specified schema name. Read more
Resolves a schema name within a specified database. Read more
Gets a schema by its ID. Read more
Gets a role by its ID. Read more
Gets a role by its ID.
Returns true if schema is an internal system schema, false otherwise
Resolves the named role.
Resolves a partially-specified item name. Read more
Performs the same operation as SessionCatalog::resolve_item but for functions within the catalog.
Resolves the named cluster. Read more
Gets an item by its ID. Read more
Gets an item by its ID.
Reports whether the specified type exists in the catalog.
Gets a cluster by ID.
Returns a fully qualified human readable name from fully qualified non-human readable name
Returns the configuration of the catalog.
Returns the number of milliseconds since the system epoch. For normal use this means the Unix epoch. This can safely be mocked in tests and start at 0.
Finds a name like name that is not already in use. Read more
Returns the set of supported AWS PrivateLink availability zone ids.
Returns the database to use if one is not explicitly specified.

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
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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