pub enum StreamingStatement {
Show 22 variants
Standard(Box<Statement>),
TemporalProbeQuery {
statement: Box<Statement>,
analysis: Box<JoinAnalysis>,
},
CreateSource(Box<CreateSourceStatement>),
CreateSink(Box<CreateSinkStatement>),
CreateContinuousQuery {
name: ObjectName,
query: Box<StreamingStatement>,
emit_clause: Option<EmitClause>,
},
DropSource {
name: ObjectName,
if_exists: bool,
cascade: bool,
},
DropSink {
name: ObjectName,
if_exists: bool,
cascade: bool,
},
DropMaterializedView {
name: ObjectName,
if_exists: bool,
cascade: bool,
},
Show(ShowCommand),
Describe {
name: ObjectName,
extended: bool,
},
Explain {
statement: Box<StreamingStatement>,
analyze: bool,
},
CreateMaterializedView {
name: ObjectName,
query: Box<StreamingStatement>,
emit_clause: Option<EmitClause>,
or_replace: bool,
if_not_exists: bool,
query_sql: String,
},
CreateStream {
name: ObjectName,
query: Box<StreamingStatement>,
emit_clause: Option<EmitClause>,
or_replace: bool,
if_not_exists: bool,
query_sql: String,
retention_bytes: Option<u64>,
},
DropStream {
name: ObjectName,
if_exists: bool,
cascade: bool,
},
AlterSource {
name: ObjectName,
operation: AlterSourceOperation,
},
InsertInto {
table_name: ObjectName,
columns: Vec<Ident>,
values: Vec<Vec<Expr>>,
},
CreateLookupTable(Box<CreateLookupTableStatement>),
DropLookupTable {
name: ObjectName,
if_exists: bool,
},
Checkpoint,
RestoreCheckpoint {
checkpoint_id: u64,
},
Subscribe(Box<SubscribeStatement>),
DeclareCursorForSubscribe {
name: Ident,
no_scroll: bool,
subscribe: Box<SubscribeStatement>,
},
}Expand description
SQL statements understood by the streaming parser.
Variants§
Standard(Box<Statement>)
A standard SQL statement without streaming syntax.
TemporalProbeQuery
A multi-horizon temporal probe normalized to the canonical AS-OF query shape.
Fields
analysis: Box<JoinAnalysis>Parsed temporal-join contract.
CreateSource(Box<CreateSourceStatement>)
CREATE SOURCE.
CreateSink(Box<CreateSinkStatement>)
CREATE SINK.
CreateContinuousQuery
CREATE CONTINUOUS QUERY.
Fields
name: ObjectNameQuery name.
query: Box<StreamingStatement>Streaming query body.
emit_clause: Option<EmitClause>Optional output strategy.
DropSource
DROP SOURCE.
Fields
name: ObjectNameSource to drop.
DropSink
DROP SINK.
Fields
name: ObjectNameSink to drop.
DropMaterializedView
DROP MATERIALIZED VIEW.
Fields
name: ObjectNameView to drop.
Show(ShowCommand)
A SHOW command.
Describe
DESCRIBE a streaming object.
Explain
EXPLAIN [ANALYZE] a streaming query plan.
Fields
statement: Box<StreamingStatement>Statement to explain.
CreateMaterializedView
CREATE MATERIALIZED VIEW.
Fields
name: ObjectNameView name.
query: Box<StreamingStatement>Backing query.
emit_clause: Option<EmitClause>Optional output strategy.
CreateStream
CREATE STREAM for a named streaming pipeline.
Fields
name: ObjectNameStream name.
query: Box<StreamingStatement>Backing query.
emit_clause: Option<EmitClause>Optional output strategy.
DropStream
DROP STREAM.
Fields
name: ObjectNameStream to drop.
AlterSource
ALTER SOURCE.
InsertInto
INSERT INTO a streaming source or table.
Fields
table_name: ObjectNameTarget source or table.
CreateLookupTable(Box<CreateLookupTableStatement>)
CREATE LOOKUP TABLE.
DropLookupTable
DROP LOOKUP TABLE.
Checkpoint
Trigger an immediate checkpoint.
RestoreCheckpoint
RESTORE FROM CHECKPOINT <id>.
Subscribe(Box<SubscribeStatement>)
SUBSCRIBE <name> [WHERE ...] [WITH (...)].
DeclareCursorForSubscribe
DECLARE <name> [NO SCROLL] CURSOR [WITHOUT HOLD] FOR SUBSCRIBE …
Forward-only cursor over a SUBSCRIBE, scoped to the current SimpleQuery connection. SCROLL, BINARY, WITH HOLD, INSENSITIVE, and ASENSITIVE are rejected at parse time.
Trait Implementations§
Source§impl Clone for StreamingStatement
impl Clone for StreamingStatement
Source§fn clone(&self) -> StreamingStatement
fn clone(&self) -> StreamingStatement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamingStatement
impl Debug for StreamingStatement
Source§impl PartialEq for StreamingStatement
impl PartialEq for StreamingStatement
impl StructuralPartialEq for StreamingStatement
Auto Trait Implementations§
impl Freeze for StreamingStatement
impl RefUnwindSafe for StreamingStatement
impl Send for StreamingStatement
impl Sync for StreamingStatement
impl Unpin for StreamingStatement
impl UnsafeUnpin for StreamingStatement
impl UnwindSafe for StreamingStatement
Blanket Implementations§
impl<T> Allocation for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].