Skip to main content

based_on

Function based_on 

Source
pub fn based_on<Q: HasWindow>(name: impl Into<Cow<'static, str>>) -> impl Mod<Q>
Expand description

Extend an existing named window, taking its PARTITION BY and — unless this one has its own — its ORDER BY.

SQLite refuses this when the base window has a frame specification, which is why Function::over_name exists: that writes OVER "w", a reference, where this builds OVER ("w" …), a copy.