Struct coord::catalog::ConnCatalog[][src]

pub struct ConnCatalog<'a> {
    catalog: &'a Catalog,
    conn_id: u32,
    database: String,
    search_path: &'a [&'a str],
    user: String,
    prepared_statements: Option<&'a HashMap<String, PreparedStatement>>,
}

Fields

catalog: &'a Catalogconn_id: u32database: Stringsearch_path: &'a [&'a str]user: Stringprepared_statements: Option<&'a HashMap<String, PreparedStatement>>

Implementations

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 search path used by the catalog.

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.

Resolves the named database. Read more

Resolves a partially-specified schema name. Read more

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

Gets an item by its ID.

Gets an item by its ID. Read more

Gets an item by its OID. Read more

Reports whether the specified type exists in the catalog.

Returns a lossy ScalarType associated with id if one exists. Read more

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

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

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

Performs the conversion.

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

Performs the conversion.

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