(info: &vcsql::sql::TableInfo)
| 118 | } |
| 119 | |
| 120 | fn 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 | |
| 134 | fn show_examples() -> Result<()> { |
| 135 | println!( |