#[non_exhaustive]pub enum CatalogEntryType {
Invalid,
Table,
View,
Index,
Schema,
PreparedStatement,
Sequence,
Collation,
Type,
Database,
}Expand description
Types of entries in the DuckDB catalog.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
Invalid catalog entry.
Table
A table.
View
A view.
Index
An index.
Schema
A schema.
PreparedStatement
A prepared statement.
Sequence
A sequence.
Collation
A collation.
Type
A user-defined type.
Database
A database.
Implementations§
Source§impl CatalogEntryType
impl CatalogEntryType
Sourcepub fn may_autoload_extension(self, name: &str) -> bool
pub fn may_autoload_extension(self, name: &str) -> bool
Whether a lookup of name as this kind of entry can make DuckDB
autoload an extension — see the module docs.
DuckDB lower-cases the name before matching it against its lists, so
this does too.
Sourcepub const fn is_lookup_supported(self) -> bool
pub const fn is_lookup_supported(self) -> bool
Whether duckdb_catalog_get_entry can look this kind of entry up.
Lookups go through a schema’s catalog sets, which exist only for
tables, views, indexes, sequences, collations and types. For
Schema, Database, PreparedStatement and Invalid, DuckDB
1.5.5 throws an InternalException (“Unsupported catalog type in
schema”) from inside the C API with no try/catch, which aborts the
Rust process. CatalogEntry::lookup therefore refuses them.
(Type and Collation are supported, but a few of their names are
refused too; see may_autoload_extension.)
Trait Implementations§
Source§impl Clone for CatalogEntryType
impl Clone for CatalogEntryType
Source§fn clone(&self) -> CatalogEntryType
fn clone(&self) -> CatalogEntryType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more