spinlud / sequelize-typescript-generator

70 stars 25 forks source link

include an example of the config json file #53

Open dberardo-com opened 1 year ago

dberardo-com commented 1 year ago

hi, great work!

how should the input (-f) json file look like? i am trying something like:

{
  "connection": {
    "host": "...",
    "port": "..."
  },
  "output": {
    "clean": true,
    "outDir": "..."
  },
  "metadata": {
    "indices": true,
    "timestamps": true,
    "associationsFile": ".....",
    "case": "CAMEL"
  }
}

but that does not work

spinlud commented 11 months ago

Here some useful info https://sequelize.org/docs/v6/other-topics/dialect-specific-things/

{
    // Your mysql2 options here
}