pub struct WindowSqlGenerator { /* private fields */ }Expand description
Window function SQL generator
Implementations§
Source§impl WindowSqlGenerator
impl WindowSqlGenerator
Sourcepub const fn new(database_type: DatabaseType) -> Self
pub const fn new(database_type: DatabaseType) -> Self
Create new generator for database type
Sourcepub fn generate(&self, plan: &WindowExecutionPlan) -> Result<WindowSql>
pub fn generate(&self, plan: &WindowExecutionPlan) -> Result<WindowSql>
Generate SQL from window execution plan
§Errors
Returns error if:
- Unsupported function for database
- Invalid frame specification
- WHERE clause generation fails
Sourcepub fn format_frame_boundary(&self, boundary: &FrameBoundary) -> String
pub fn format_frame_boundary(&self, boundary: &FrameBoundary) -> String
Format frame boundary
Auto Trait Implementations§
impl Freeze for WindowSqlGenerator
impl RefUnwindSafe for WindowSqlGenerator
impl Send for WindowSqlGenerator
impl Sync for WindowSqlGenerator
impl Unpin for WindowSqlGenerator
impl UnsafeUnpin for WindowSqlGenerator
impl UnwindSafe for WindowSqlGenerator
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