As a developer working with the Schema type,
I want to have a GetSession method available in the Schema type,
So that I can retrieve the underlying session object when necessary.
Acceptance Criteria
[x] Given that I have an instance of the Schema type, when I call the GetSession method, it should return the underlying session object that is not exported.
[x] Given that I have an instance of the Schema type, when I call the GetSession method multiple times, it should consistently return the same session object associated with that schema instance.
[x] Given that I have an instance of the Schema type, when I call the GetSession method, it should not modify or alter the state of the schema instance or the session object.
[x] Given that I have an instance of the Schema type, when I call the GetSession method, it should return a non-nil session object if the schema instance has been properly initialized.
[x] Given that I have an instance of the Schema type, when I call the GetSession method on an uninitialized or improperly initialized schema instance, it should return an appropriate error or a nil session object.
Value
By adding the GetSession method to the Schema type, we provide developers with a convenient way to access the underlying session object when needed.
It is also inline with the MySQL X DevAPI.
User Story
As a developer working with the Schema type, I want to have a
GetSession
method available in the Schema type, So that I can retrieve the underlying session object when necessary.Acceptance Criteria
[x] Given that I have an instance of the Schema type, when I call the
GetSession
method, it should return the underlying session object that is not exported.[x] Given that I have an instance of the Schema type, when I call the
GetSession
method multiple times, it should consistently return the same session object associated with that schema instance.[x] Given that I have an instance of the Schema type, when I call the
GetSession
method, it should not modify or alter the state of the schema instance or the session object.[x] Given that I have an instance of the Schema type, when I call the
GetSession
method, it should return a non-nil session object if the schema instance has been properly initialized.[x] Given that I have an instance of the Schema type, when I call the
GetSession
method on an uninitialized or improperly initialized schema instance, it should return an appropriate error or a nil session object.Value
By adding the
GetSession
method to the Schema type, we provide developers with a convenient way to access the underlying session object when needed. It is also inline with the MySQL X DevAPI.