Skip to content

Commit

Permalink
added onDatabaseMirroringPartner handler methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-w-nick committed Oct 31, 2024
1 parent 24f7e6b commit 4891a41
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/token/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export class InitialSqlTokenHandler extends TokenHandler {
this.connection.emit('databaseChange', token.newValue);
}

onDatabaseMirroringPartner(token: DatabaseMirroringPartnerEnvChangeToken) {
this.connection.emit('databaseMirroringPartner', token.newValue);

Check warning on line 170 in src/token/handler.ts

View check run for this annotation

Codecov / codecov/patch

src/token/handler.ts#L170

Added line #L170 was not covered by tests
}

onLanguageChange(token: LanguageEnvChangeToken) {
this.connection.emit('languageChange', token.newValue);
}
Expand Down Expand Up @@ -284,6 +288,10 @@ export class Login7TokenHandler extends TokenHandler {
this.connection.emit('databaseChange', token.newValue);
}

onDatabaseMirroringPartner(token: DatabaseMirroringPartnerEnvChangeToken) {
this.connection.emit('databaseMirroringPartner', token.newValue);

Check warning on line 292 in src/token/handler.ts

View check run for this annotation

Codecov / codecov/patch

src/token/handler.ts#L292

Added line #L292 was not covered by tests
}

onLanguageChange(token: LanguageEnvChangeToken) {
this.connection.emit('languageChange', token.newValue);
}
Expand Down Expand Up @@ -355,10 +363,6 @@ export class Login7TokenHandler extends TokenHandler {
onPacketSizeChange(token: PacketSizeEnvChangeToken) {
this.connection.messageIo.packetSize(token.newValue);
}

onDatabaseMirroringPartner(token: DatabaseMirroringPartnerEnvChangeToken) {
// Do nothing
}
}

/**
Expand Down Expand Up @@ -406,6 +410,10 @@ export class RequestTokenHandler extends TokenHandler {
this.connection.emit('databaseChange', token.newValue);
}

onDatabaseMirroringPartner(token: DatabaseMirroringPartnerEnvChangeToken) {
this.connection.emit('databaseMirroringPartner', token.newValue);

Check warning on line 414 in src/token/handler.ts

View check run for this annotation

Codecov / codecov/patch

src/token/handler.ts#L414

Added line #L414 was not covered by tests
}

onLanguageChange(token: LanguageEnvChangeToken) {
this.connection.emit('languageChange', token.newValue);
}
Expand Down

0 comments on commit 4891a41

Please sign in to comment.