-
Notifications
You must be signed in to change notification settings - Fork 103
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
chore: support for common interface to get a session to support multiplexed session #2204
Conversation
bddd1d4
to
421a5a1
Compare
6061d99
to
df92e41
Compare
21394ef
to
3730a8a
Compare
e49f2a4
to
3f2117a
Compare
e24245d
to
be238ed
Compare
* | ||
* @param {Database} database Database object. | ||
* @param {String} name Name of the database. | ||
* @param {SessionPoolOptions|SessionPoolInterface} options Session pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SessionPoolConstructor right
* @param {SessionPoolOptions|SessionPoolInterface} options Session pool | |
* @param {SessionPoolOptions| SessionPoolConstructor} options Session pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if my understanding is incorrect ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since, the SessionPoolConstructor
is eventually creating SessionPoolInterface
object, hence we can keep SessionPoolInterface
here in the documentation
025dd00
to
db372ba
Compare
db372ba
to
d536b2e
Compare
This PR contains the common interface class SessionFactory which will be responsible for the creation of the Session Pool and the Multiplexed Session(if the env variable would be set to true) upon client initialization.
This PR also contains the getSession method which will return the session(multiplexed/regular) based upon the env variable value.