-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
The connectors in the other languages are structured with common names and separation of concerns.
Public API:
Connectoris the main public API to configure and connect.ConnectionOptionsis the value object containing connection options. main public API to configure and connect.
Internal API:
ConnectorRegistryis the internal class that holds configuration and caches for each database instance.ConnectionInfois a value object that holds the configuration and data for one database instance.ConnectionInfoCacheinterface holds the activeConnectionInfovalue for a single database instance and keeps it up to date, refreshing the data as needed.RefreshAheadCacheimplements theConnectionInfoCacheusing the current connector refresh algorithmLazyRefreshCache(to be added with Add support for lazy certificate refresh #285) implementsConnectionInfoCacheusing the lazy refresh algorithm.ConnectionInfoRepositorycalls the Cloud SQL Admin API to build an up-to-dateConnectionInfoobject.
To get to the NodeJS connector codebase into state, we will need to move some code and rename some classes.
- Rename
CloudSQLInstanceMaptoConnectorRegistry - Rename
InstanceConnectionInfotoConnectionInfo - Rename
CloudSQLInstanceclass toRefreshAheadCache - Rename
Fetcherinterface toConnectionInfoRepository - Rename
SqlAdminFetcherclass toDefaultConnectionInfoRepository
enocom
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.