MCPcopy Create free account
hub / github.com/TankHQ/tank / write_table_ref

Method write_table_ref

tank-sqlite/src/sql_writer.rs:65–78  ·  view source on GitHub ↗
(&self, context: &mut Context, out: &mut DynQuery, value: &TableRef)

Source from the content-addressed store, hash-verified

63 }
64
65 fn write_table_ref(&self, context: &mut Context, out: &mut DynQuery, value: &TableRef) {
66 if self.is_alias_declaration(context) || value.alias.is_empty() {
67 out.push('"');
68 if !value.schema.is_empty() {
69 write_escaped(out, &value.schema, '"', "\"\"");
70 out.push_str(self.separator());
71 }
72 write_escaped(out, &value.name, '"', "\"\"");
73 out.push('"');
74 }
75 if !value.alias.is_empty() {
76 let _ = write!(out, " {}", value.alias);
77 }
78 }
79
80 fn write_column_type(&self, _context: &mut Context, out: &mut DynQuery, value: &Value) {
81 match value {

Callers 3

write_copyMethod · 0.45
write_insertMethod · 0.45
write_deleteMethod · 0.45

Calls 6

write_escapedFunction · 0.85
is_alias_declarationMethod · 0.80
pushMethod · 0.80
push_strMethod · 0.80
is_emptyMethod · 0.45
separatorMethod · 0.45

Tested by

no test coverage detected