title: Dynamic ORM in MySQL and other databases?
body: <p>The problem I have with the various ORM modules available for databases like MySQL and MongoDB is the inability to keep model information coupled with the database itself.</p>
  
  <p>I want to be able to add a model to my ORM setup at runtime via an administrative HTTP interface and give it some fields that may be ascribed to various predefined data types (like 'email' or 'telephone number'). Possibly the most contentious feature I'm after is the ability to cast a field as a data type that has already been previously defined by the user as a model.</p>
  
  <p>Is this just me trying to have my cake and eat it? Can anybody see a way of implementing something like this? All the ORM modules I've seen so far simply require instantiating models at application level, essentially before runtime.</p>
  
  <p>It's probably worth mentioning I'm hoping to implement this in a Node environment (not a classic LAMP setup).</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I take it from the lack of community bite that I may have stumbled back into the Object-Relational Impedance Mismatch issue here?</p>