## wiring.schema_metadata()


Return the definition metadata that fills an asset's Columns tab from the schema.


Usage

``` python
wiring.schema_metadata(schema)
```


## Returns


`A one-entry mapping from ``dagster/column_schema`` to ``table_schema(schema)``, to pass to ``dg.asset(metadata=...)``.`  


## Raises


`ReservedColumnError`  
A column name is in the reserved `dy_` namespace.

`InvalidColumnNameError`  
A column name has a character Dagster does not allow in an asset check name.

`CheckNameCollisionError`  
Two rules produce the same asset check name.
