pub struct DuckPgqName {
pub name: &'static str,
pub function: &'static str,
pub fixed: &'static [(&'static str, &'static str)],
pub column: &'static str,
}Expand description
A DuckPGQ function name that Ursa runs as one of its own functions (#298):
weakly_connected_component(pg, Student, know) is
connected_components(pg, Student, know, mode => 'weak'), with DuckPGQ’s
column name.
These are other systems’ spellings, accepted so DuckPGQ’s queries run
unchanged; they are not old names of Ursa’s own (Ursa keeps none).
ursa_functions() lists each as a row of its own, with same_as naming
Ursa’s function and duckpgq true.
Fields§
§name: &'static strDuckPGQ’s name.
function: &'static strThe Ursa function it runs.
fixed: &'static [(&'static str, &'static str)]Parameters the name fixes, as (name, value); a call cannot give them.
column: &'static strThe output column, DuckPGQ’s name for it. Unquoted identifiers are
folded to lower case, so DuckPGQ’s componentId is componentid:
a query that writes componentId unquoted finds it.
Implementations§
Source§impl DuckPgqName
impl DuckPgqName
Sourcepub fn spec(&self) -> &'static FunctionSpec
pub fn spec(&self) -> &'static FunctionSpec
The Ursa function this name runs.
Sourcepub fn ursa_call(&self) -> String
pub fn ursa_call(&self) -> String
The Ursa call it is, as written: connected_components(<graph>, mode => 'weak').
Sourcepub fn fixed_param(&self, param: &str) -> Option<String>
pub fn fixed_param(&self, param: &str) -> Option<String>
The message for a call that gives one of the parameters the name
fixes, if param is one.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DuckPgqName
impl Freeze for DuckPgqName
impl Move for DuckPgqName
impl RefUnwindSafe for DuckPgqName
impl Send for DuckPgqName
impl Sync for DuckPgqName
impl Unpin for DuckPgqName
impl UnsafeUnpin for DuckPgqName
impl UnwindSafe for DuckPgqName
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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