Skip to content

RUST-1582 Would It Be Possible To Expose The Session Creation Functionality From a Collection<T> Object? #812

Closed
@LuisOsta

Description

@LuisOsta

Currently the only way to create a session is through the client object. But from my investigations it seems that the collection object has the client object stored in its struct.

Would it be possible to either expose session creation functionality or allow the consumer to get the client from the collection object?

The reason for this is that we separate the code based on collections so each domain only has access to the relevant pieces and I'd prefer to not have to pass the whole client object to all areas that need to create sessions or handle transactions.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions