MCPcopy Create free account
hub / github.com/douglance/devsql / print_table_schema

Function print_table_schema

crates/vcsql/src/main.rs:120–132  ·  view source on GitHub ↗
(info: &vcsql::sql::TableInfo)

Source from the content-addressed store, hash-verified

118}
119
120fn print_table_schema(info: &vcsql::sql::TableInfo) {
121 println!("\nTABLE: {}", info.name);
122 println!("{}", info.description);
123 println!("\nCOLUMNS:");
124
125 for col in info.columns {
126 let nullable = if col.nullable { "(nullable)" } else { "" };
127 println!(
128 " {:20} {:10} {} {}",
129 col.name, col.sql_type, col.description, nullable
130 );
131 }
132}
133
134fn show_examples() -> Result<()> {
135 println!(

Callers 1

show_schemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected