Align class names and code structure with the connectors in other languages
Maintainer antworten meist innerhalb von 1 Tag
@hessjcg arbeitet bereits daran.
Seit 30.4.2024.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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 #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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 99
- Forks
- 18
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 20
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus GoogleCloudPlatform/cloud-sql-nodejs-connector
-
flakybot: issue priority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#658 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#656 ·
Maintainer antworten meist innerhalb von 1 Tag
-
flakybot: flaky flakybot: issue priority: p2 type: bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#657 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Cloud Build Failure Reporter: node-integration-test-nightly (cloud-sql-connector-testing) failedOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#641 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 35/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#634 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in GoogleCloudPlatform/cloud-sql-nodejs-connector
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Maintainer antworten meist innerhalb von 1 Tag
-
Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
bug P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag