pub struct ConnCatalog<'a> {
    state: Cow<'a, CatalogState>,
    conn_id: u32,
    compute_instance: String,
    database: Option<DatabaseId>,
    search_path: Vec<(ResolvedDatabaseSpecifier, SchemaSpecifier)>,
    user: String,
    prepared_statements: Option<Cow<'a, HashMap<String, PreparedStatement>>>,
}

Fields

state: Cow<'a, CatalogState>conn_id: u32compute_instance: Stringdatabase: Option<DatabaseId>search_path: Vec<(ResolvedDatabaseSpecifier, SchemaSpecifier)>user: Stringprepared_statements: Option<Cow<'a, HashMap<String, PreparedStatement>>>

Implementations

returns a PartialObjectName with the minimum amount of qualifiers to unambiguously resolve the object.

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. Read more

Returns a human-readable name for the specified scalar type.

Returns a human-readable name for the specified scalar type.

Returns the name of the user who is issuing the query.

Returns the descriptor of the named prepared statement on the session, or None if the prepared statement does not exist. Read more

Returns the database to use if one is not explicitly specified.

Returns the compute instance to use if one is not explicitly specified.

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

Returns true if schema is an internal system schema, false otherwise

Resolves the named role.

Resolves the named compute instance. Read more

Resolves a partially-specified item name. Read more

Performs the same operation as SessionCatalog::resolve_item but for functions within the catalog. Read more

Gets an item by its ID.

Gets an item by its ID. Read more

Reports whether the specified type exists in the catalog.

Finds a name like name that is not already in use. Read more

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. Read more

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

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