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 Catalog
conn_id: u32
database: String
search_path: &'a [&'a str]
user: String
prepared_statements: Option<&'a HashMap<String, PreparedStatement>>
Implementations
Trait Implementations
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 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.
fn resolve_database(
&self,
database_name: &str
) -> Result<&dyn CatalogDatabase, SqlCatalogError>
fn resolve_database(
&self,
database_name: &str
) -> Result<&dyn CatalogDatabase, SqlCatalogError>
Resolves the named database. Read more
fn resolve_schema(
&self,
database: Option<String>,
schema_name: &str
) -> Result<&dyn CatalogSchema, SqlCatalogError>
fn resolve_schema(
&self,
database: Option<String>,
schema_name: &str
) -> Result<&dyn CatalogSchema, SqlCatalogError>
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
impl<'a> !RefUnwindSafe for ConnCatalog<'a>
impl<'a> Send for ConnCatalog<'a>
impl<'a> Sync for ConnCatalog<'a>
impl<'a> Unpin for ConnCatalog<'a>
impl<'a> !UnwindSafe for ConnCatalog<'a>
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