Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use session state service impl to change readOnly state #322

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

crystall-bitquill
Copy link
Contributor

@crystall-bitquill crystall-bitquill commented Nov 16, 2024

Summary

refactor: use session state service impl to change readOnly state

Description

This PR removes the updateSessionStateReadOnly and resetState methods from the MySQL and PG client classes to prevent them from being publicly accessible. The readOnly status has been moved from the AWS client class to the ClientWrapper interface by adding a session state to the client wrapper.

Currently only the readOnly state has been moved, the other session state fields are to be altered in a future PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch from 9a78e0d to 763f862 Compare November 16, 2024 03:24
@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch 2 times, most recently from 4b3a16d to 9f458e1 Compare November 21, 2024 17:28
@crystall-bitquill crystall-bitquill added the wip Pull requests that are a work in progress label Nov 21, 2024
@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch 4 times, most recently from a3d796a to f30dc78 Compare November 22, 2024 20:52
mysql/lib/client.ts Show resolved Hide resolved
common/lib/driver_dialect/driver_dialect.ts Outdated Show resolved Hide resolved
@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch 3 times, most recently from 5f9448f to 7f2589c Compare November 26, 2024 19:15
@crystall-bitquill crystall-bitquill added ready for review Pull requests that are ready to be reviewed and removed wip Pull requests that are a work in progress labels Nov 26, 2024
@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch 3 times, most recently from 75aab2c to 4ca0c6d Compare December 5, 2024 00:33
mysql/lib/client.ts Outdated Show resolved Hide resolved
@crystall-bitquill crystall-bitquill force-pushed the refactor/update-read-only branch from 4ca0c6d to 808e856 Compare December 6, 2024 18:59
@karenc-bq karenc-bq force-pushed the refactor/update-read-only branch from 808e856 to 430cad0 Compare December 17, 2024 23:29
@karenc-bq karenc-bq force-pushed the refactor/update-read-only branch from 9a825ce to 1afb184 Compare December 19, 2024 00:00
@karenc-bq karenc-bq force-pushed the refactor/update-read-only branch from da0dc24 to 023ba38 Compare December 23, 2024 23:58
@@ -15,6 +15,7 @@
*/

import { HostInfo } from "./host_info";
import { SessionState } from "./session_state";
Copy link
Contributor

@joyc-bq joyc-bq Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is this an unneeded import?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Pull requests that are ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants