pub struct TableNames {
pub snapshot: String,
pub cycle_log: String,
pub pending_event: String,
}Expand description
Table names for a sync pipeline’s internal state.
Fields§
§snapshot: String§cycle_log: String§pending_event: StringImplementations§
Source§impl TableNames
impl TableNames
Sourcepub fn for_source(source_name: &str) -> Self
pub fn for_source(source_name: &str) -> Self
Build table names from a source name.
Sanitizes the source name to a valid SurrealDB identifier (lowercase alphanumeric + underscore).
Default table names (backward compatible with existing single-pipeline deployments).
Sourcepub fn create_ddl(&self) -> String
pub fn create_ddl(&self) -> String
Generate SurrealQL DDL to create these tables (idempotent).
Sourcepub fn resolve_sql(&self, template: &str) -> String
pub fn resolve_sql(&self, template: &str) -> String
Replace {snapshot}, {cycle_log}, {pending_event} placeholders in SQL.
Trait Implementations§
Source§impl Clone for TableNames
impl Clone for TableNames
Source§fn clone(&self) -> TableNames
fn clone(&self) -> TableNames
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableNames
impl RefUnwindSafe for TableNames
impl Send for TableNames
impl Sync for TableNames
impl Unpin for TableNames
impl UnsafeUnpin for TableNames
impl UnwindSafe for TableNames
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