pub struct Stmts {Show 76 fields
pub upsert: String,
pub select_body: String,
pub select_status: String,
pub select_submitted: String,
pub delete: String,
pub list: String,
pub purge_runs: String,
pub purge_idem: String,
pub select_orphans: String,
pub renew_leases: String,
pub insert_idem: String,
pub select_idem: String,
pub takeover_idem: String,
pub delete_idem_by_run: String,
pub select_pending: String,
pub claim_one: String,
pub reclaim_select: String,
pub reclaim_requeue: String,
pub reclaim_fail: String,
pub finalize_owned: String,
pub cancel_pending: String,
pub request_cancel: String,
pub pending_cancellations: String,
pub heartbeat_instance: String,
pub live_instances: String,
pub prune_instances: String,
pub insert_shard: String,
pub claim_shards_select: String,
pub claim_shard_one: String,
pub renew_shard_leases: String,
pub reclaim_shards_select: String,
pub reclaim_shard_requeue: String,
pub reclaim_shard_fail: String,
pub finalize_shard: String,
pub shard_progress: String,
pub pending_shard_cancellations: String,
pub select_sharded_parents: String,
pub finalize_sharded_parent: String,
pub delete_shards_by_run: String,
pub purge_orphan_shards: String,
pub insert_audit: String,
pub list_audit: String,
pub purge_audit: String,
pub catalog_select_dataset: String,
pub catalog_upsert_dataset: String,
pub catalog_select_datasets: String,
pub catalog_insert_schema_version: String,
pub catalog_select_schema_versions: String,
pub catalog_upsert_edge: String,
pub catalog_select_edges: String,
pub catalog_insert_stat: String,
pub catalog_select_stats: String,
pub catalog_prune_stats: String,
pub catalog_upsert_config_snapshot: String,
pub catalog_select_config_snapshot: String,
pub template_max_version: String,
pub template_insert: String,
pub template_select_version: String,
pub template_select_latest: String,
pub template_select_all: String,
pub template_versions: String,
pub template_delete_version: String,
pub template_delete_all: String,
pub template_upsert_tag: String,
pub template_select_tags: String,
pub template_delete_tag: String,
pub template_delete_tags_all: String,
pub template_delete_tags_for_version: String,
pub template_max_launch_seq: String,
pub template_insert_launch: String,
pub template_select_launches: String,
pub template_delete_launches_all: String,
pub template_delete_launches_for_version: String,
pub template_upsert_deprecation: String,
pub template_select_deprecation: String,
pub template_delete_deprecation: String,
}serve and (crate features serve-history-postgres or serve-history-sqlite) only.Expand description
Prepared-statement text for a backend, built once per dialect at connect time.
Fields§
§upsert: String(cancel_requested is intentionally NOT written by upsert — it is set
only via request_cancel and cleared by reclaim_requeue; it defaults to
NULL on insert.)
select_body: String§select_status: String§select_submitted: String§delete: String§list: String§purge_runs: String§purge_idem: String§select_orphans: StringSelect non-terminal runs whose owning instance’s lease has expired (or
is unset) — the orphans this instance may safely fail. Param: now.
renew_leases: StringExtend the lease of this instance’s own non-terminal runs (heartbeat).
Params: new_lease_expiry, instance_id.
insert_idem: String§select_idem: String§takeover_idem: String§delete_idem_by_run: StringDelete the idempotency claim(s) that point at a given run — used when a
run is deleted so a replay of the key starts fresh rather than 404-ing
on the missing record (#146 M8). Scoped by run_id, so a newer run that
re-claimed the same key keeps its claim.
select_pending: StringCluster dispatcher: fetch oldest pending runs up to a given limit.
claim_one: StringCluster dispatcher: atomically claim a pending run (set owner + running).
reclaim_select: StringCluster reclaimer: select expired running runs for requeue/fail evaluation.
NOTE: 'queued' is the single-instance status; cluster runs flow
pending → running, so the failover reclaimer covers 'running' only.
reclaim_requeue: StringCluster reclaimer: requeue an expired running run back to pending.
reclaim_fail: StringCluster reclaimer: fail an expired running run that cannot be requeued.
finalize_owned: StringFinalize a run owned by this instance (terminal status update).
cancel_pending: StringCancel a pending run directly (transition pending → cancelled).
request_cancel: StringRequest cancellation of an in-flight run owned by another instance.
pending_cancellations: StringList run IDs owned by this instance that have a pending cancellation request.
heartbeat_instance: StringUpsert this instance’s membership heartbeat into faucet_serve_instances.
live_instances: StringList instances whose last heartbeat is at or after a given threshold.
prune_instances: StringPrune instances whose last heartbeat is before a given threshold.
insert_shard: StringIdempotent shard insert (ON CONFLICT (run_id, shard_id) DO NOTHING).
claim_shards_select: StringSelect claimable pending shards joined to their run body, largest first.
claim_shard_one: StringAtomically claim one pending shard for this instance.
renew_shard_leases: StringHeartbeat this instance’s running shards.
reclaim_shards_select: StringSelect expired-lease running shards for requeue/fail evaluation.
reclaim_shard_requeue: StringRequeue an expired running shard back to pending (attempt++).
reclaim_shard_fail: StringFail an expired running shard that exhausted its attempts (poison).
finalize_shard: StringOwner-fenced terminal write for one shard.
shard_progress: StringStatus counts for a run’s shards.
pending_shard_cancellations: StringDistinct run_ids for which THIS instance owns a running shard whose
parent run has a pending cancellation request (cross-instance shard
cancel, F10). Param: instance_id.
select_sharded_parents: StringSelect run_ids of sharded parents (candidates to finalize once all
their shards are terminal, F11).
finalize_sharded_parent: StringStatus-fenced terminal write for a sharded parent (F11). A benign
double-finalize across instances is a no-op: the guard requires the
parent to still be sharded. Does NOT re-arm owner/lease.
delete_shards_by_run: StringDelete a run’s shard rows (paired with delete so a
deleted run leaves no orphaned shard rows behind, F25). Param: run_id.
purge_orphan_shards: StringPurge shard rows whose parent run no longer exists (run-record purged by
retention, F25). No params — a set-difference against faucet_serve_runs.
insert_audit: StringAppend one audit record.
list_audit: StringNewest-first audit records matching the (nullable) filters. Param order: principal, action, since, until, limit.
purge_audit: StringPurge audit records older than a threshold (retention).
catalog_select_dataset: StringOne dataset body by id (the merge read + the detail head).
catalog_upsert_dataset: StringUpsert one dataset row (filter columns + body). Params: id, uri, kind, last_seen, body.
catalog_select_datasets: StringEvery dataset body — filtering/ordering happens in shared pure code
(catalog::filter_datasets), so the
memory and SQL backends can never disagree on semantics.
catalog_insert_schema_version: StringAppend one schema-timeline entry; ON CONFLICT DO NOTHING so a cluster
replay of the same (dataset, version) is idempotent.
catalog_select_schema_versions: StringA dataset’s schema timeline, oldest first.
catalog_upsert_edge: StringUpsert one lineage edge. Params: src_id, dst_id, last_seen, body.
catalog_select_edges: StringEvery edge body, newest activity first.
catalog_insert_stat: StringAppend one volume point. Params: dataset_id, recorded_at, run_id, records.
catalog_select_stats: StringA dataset’s most recent volume points. Params: dataset_id, limit.
catalog_prune_stats: StringDrop volume points beyond the newest STATS_RETAIN for one dataset.
Params: dataset_id, dataset_id, keep-limit.
catalog_upsert_config_snapshot: StringUpsert the latest config snapshot for a pipeline (#374). Params: pipeline, recorded_at, faucet_version, body.
catalog_select_config_snapshot: StringThe latest config snapshot body for a pipeline. Param: pipeline.
template_max_version: StringHighest existing version for a template id (0 when new). Param: id.
template_insert: StringInsert one template version. Params: id, version, name, created_at, body.
template_select_version: StringOne template version’s body. Params: id, version.
template_select_latest: StringThe latest version’s body for an id. Param: id.
template_select_all: StringEvery template body (latest-per-id folding happens in shared pure code, so the memory and SQL backends can never disagree).
template_versions: StringVersion numbers for one id, newest first. Param: id.
template_delete_version: StringDelete one version. Params: id, version.
template_delete_all: StringDelete every version of an id. Param: id.
template_upsert_tag: StringUpsert one channel pointer. Params: id, tag, version, updated_at.
Every channel pointer for an id. Param: id.
template_delete_tag: StringDelete one channel pointer. Params: id, tag.
Delete every channel pointer for an id. Param: id.
Delete the channel pointers aimed at one version. Params: id, version.
template_max_launch_seq: StringHighest launch seq for a template (0 when never launched). Param: id.
template_insert_launch: StringAppend one launch entry. Params: id, seq, version, launched_at, launched_by.
template_select_launches: StringThe launch log for a template, newest first. Param: id.
template_delete_launches_all: StringDelete every launch entry for a template. Param: id.
template_delete_launches_for_version: StringDelete the launch entries naming one version. Params: id, version.
template_upsert_deprecation: StringUpsert the deprecation marker. Params: id, deprecated_at, deprecated_by, reason.
template_select_deprecation: StringRead the deprecation marker. Param: id.
template_delete_deprecation: StringClear the deprecation marker. Param: id.
Implementations§
Auto Trait Implementations§
impl Freeze for Stmts
impl RefUnwindSafe for Stmts
impl Send for Stmts
impl Sync for Stmts
impl Unpin for Stmts
impl UnsafeUnpin for Stmts
impl UnwindSafe for Stmts
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
fn any_ref(&self) -> &(dyn Any + Send + Sync + 'static)
dyn Any reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ
Arc<dyn Any> reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any(self: Box<T>) -> Box<dyn Any + Send + Sync>
Box<dyn Any>: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
std::any::type_name, since Any does not provide it and
Any::type_id is useless as a debugging aid (its Debug is just a mess of hex digits).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> Downcast for T
impl<T> Downcast for T
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
decompression-br or decompression-deflate or decompression-gzip or decompression-zstd only.Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
follow-redirect only.Source§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.Source§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.x-request-id as the header name. Read moreSource§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.Source§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.x-request-id as the header name. Read moreSource§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
limit only.413 Payload Too Large responses. Read moreSource§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.