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

getConnections() : array -> getConnection(string $name) : mixed #15

Closed
esler opened this issue Aug 19, 2020 · 1 comment
Closed

getConnections() : array -> getConnection(string $name) : mixed #15

esler opened this issue Aug 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@esler
Copy link
Contributor

esler commented Aug 19, 2020

Current getConnections() initialize all connections even if they are not used. New API can lazy load connections on the first demand.

/**
  * @return PDO|MongoDb\Database|Elasticsearch\Client|null
  */
function getConnection(string $name) : mixed;

what do you think @kambo-1st ?

@esler esler added the enhancement New feature or request label Aug 19, 2020
@esler
Copy link
Contributor Author

esler commented Jun 8, 2021

duplicates #24

@esler esler closed this as completed Jun 8, 2021
esler pushed a commit that referenced this issue Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant