Skip to content

@CavidM @pleerock This seems to cause an error for connection configs with replication. Please note the lack of the database property on the root object. #4753

Closed

Description

@CavidM

@CavidM @pleerock This seems to cause an error for connection configs with replication. Please note the lack of the database property on the root object.

Example config:

{
  type: "mysql",
  replication: {
    master: {
      host: "DB_HOST",
      port: "DB_PORT",
      username: "DB_USER",
      password: "DB_PASSWORD",
      database: "DB_NAME"
    },
    slaves: [
      {
        host: "RO_DB_HOST",
        port: "DB_PORT",
        username: "DB_USER",
        password: "DB_PASSWORD",
        database: "DB_NAME"
      }
    ]
  },
  entities: [...]
};

Originally posted by @cajames in #4694 (comment)

Activity

  1. j-tegen commented on Sep 16, 2019

    @j-tegen

    Having the same issues at the moment. Would you recommend fixing the typeorm version or adding the database property to the root object until this is fixed?

  2. CavidM commented on Sep 16, 2019

    @CavidM
    ContributorAuthor

    Yes, for now you can use v0.2.18.

  3. elthrasher commented on Sep 28, 2019

    @elthrasher
    Contributor

    My team was impacted by this as well. Please give #4826 a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions