Skip to content
Snippets Groups Projects
Commit 81625882 authored by alrwasheda's avatar alrwasheda :speech_balloon:
Browse files

Forcing any new (given) DB. Create tables. Show tables in DB.

parent 8c1aa256
No related branches found
No related tags found
No related merge requests found
Loading
  • alrwasheda :speech_balloon: @alrwasheda ·
    Author Maintainer
    • Database will be forced if not exists.
    • Tables will be created into any new (given) Database.
    • Problem of some tables being created before others, solved.
    • Testing Sequelize-Connection deleted.

    Could need installation of "pg".

    To test it:

    • change the name in .env to "Fahrtenbuch" (or any other name) and run normally using docker.
    Edited by alrwasheda
  • alrwasheda :speech_balloon: @alrwasheda ·
    Author Maintainer

    By getting this error: "src/db/seqConnection.ts(28,12): error TS7006: Parameter 'res' implicitly has an 'any' type.\n" set the value of "noImplicitAny": true in tsconfig.json to false

  • fu1106jv @fu1106jv ·
    Maintainer

    this is not an error - you can't have function arguments without a type with this setting(and it should be true in the tsconfig)

  • leandet98 @leandet98 ·
    Maintainer

    you can annotate the res as res: QueryResult

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment