MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / rename

Function rename

crates/expr/src/rls.rs:362–364  ·  view source on GitHub ↗

Helper for renaming a relvar

(relvar: &mut Relvar, f: &mut impl FnMut(&RawIdentifier) -> RawIdentifier)

Source from the content-addressed store, hash-verified

360fn alpha_rename(expr: &mut RelExpr, f: &mut impl FnMut(&RawIdentifier) -> RawIdentifier) {
361 /// Helper for renaming a relvar
362 fn rename(relvar: &mut Relvar, f: &mut impl FnMut(&RawIdentifier) -> RawIdentifier) {
363 relvar.alias = f(&relvar.alias);
364 }
365 /// Helper for renaming a field reference
366 fn rename_field(field: &mut FieldProject, f: &mut impl FnMut(&RawIdentifier) -> RawIdentifier) {
367 field.table = f(&field.table);

Callers 7

alpha_renameFunction · 0.85
atomic_writeFunction · 0.85
rename_invalidMethod · 0.85
rename_as_archivedMethod · 0.85
putMethod · 0.85
override_with_outfileFunction · 0.85
compressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…