Rob's garden / notes / JSX Database migrations

JSX Database migrations

How awful would JSX be for defining database migrations?

<CreateTable name='annotations'>
  <PrimaryKey column='id' />
  <Timestamp column='created' default='NOW()' />
  <Varchar column='name' length={64} />
  <JsonB column='geojson' nullable={true} />
  <ForeignKey column='map_id' table='maps' references='id' cascade />
</CreateTable>

A screenshot of JavaScript JSX code