fn get_columns_for_stub(
object_id: &ObjectId,
stmt: Option<&Statement>,
get_columns: &dyn Fn(&ObjectId) -> Option<BTreeMap<String, ColumnType>>,
) -> Result<BTreeMap<String, ColumnType>, CliError>Expand description
Get column schemas for a stub table.
Tries, in order:
- Column lookup (types cache then types.lock)
CREATE TABLEAST columns (if the statement is a CreateTable)