Search code examples
mysqlmodelsails.jswaterlinedatabase-metadata

How to get the metadata of a mysql table on sailsjs


I was wondering if you can get the metadata or the entire structure of the table and columns using sailsjs or waterline's mysql module


Solution

  • After hours of searching, I've finally found the holy grail. Well half of the holy grail. Anyway, I just followed the instructions given here: https://github.com/balderdashy/sails/issues/780 then created my own custom query.