pub struct SQLUserFunction {
pub def: CreateFunction,
pub body: RoutineBody,
/* private fields */
}Expand description
A registered routine: the persistable definition and its body as the catalog keeps it.
Fields§
§def: CreateFunction§body: RoutineBodyImplementations§
Source§impl SQLUserFunction
impl SQLUserFunction
pub const fn new(def: CreateFunction, body: RoutineBody) -> Self
Sourcepub fn catalog_revision(&self) -> Option<[u8; 16]>
pub fn catalog_revision(&self) -> Option<[u8; 16]>
The identity of this catalog tuple, preserved through reload and rollback. A legacy definition starts from its immutable object identity; publication assigns a new revision even when it keeps every SQL attribute unchanged.
Sourcepub fn definition_version(&self) -> Result<u64, SQLError>
pub fn definition_version(&self) -> Result<u64, SQLError>
A fingerprint for the compiled-body cache, including the published catalog revision so an identical replacement recompiles its body. Exact catalog dependency checks use catalog_revision instead of this hash.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SQLUserFunction
impl RefUnwindSafe for SQLUserFunction
impl Send for SQLUserFunction
impl Sync for SQLUserFunction
impl Unpin for SQLUserFunction
impl UnsafeUnpin for SQLUserFunction
impl UnwindSafe for SQLUserFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more