You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: create a ReplicationMode type and update function defs (typeorm#6747)
create a type to track ReplicationMode instead of writing out
`"master"|"slave"` everywhere.
update to drop the default from the QueryRunner constructor
as they will always receive the mode from the driver when
it's part of the QueryRunner
also drop the default from Driver.createQueryRunner in the
implementations - the interface mandates the mode to be defined
so it will never be omitted anyway
also drop the explict "master" from any connection.createQueryRunner
calls so we leave it either the default or `slave` when needed
all of this makes it easier to eventually migrate to
other naming convetions for the replication mode
should it be deemed the right path to go down
0 commit comments