sequelize-typescript-generator icon indicating copy to clipboard operation
sequelize-typescript-generator copied to clipboard

include an example of the config json file

Open dberardo-com opened this issue 2 years ago • 1 comments

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

dberardo-com avatar Apr 27 '23 13:04 dberardo-com

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

{
    // Your mysql2 options here
}

spinlud avatar Oct 17 '23 11:10 spinlud