chore: rename to google-cloudsql
Signed-off-by: blam <ben@blam.sh> Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/backend-defaults': patch
|
||||
---
|
||||
|
||||
Support `client: pg+google-cloud-sql` in database client for usage with `@google-cloud/cloud-sql-connector` and `iam` auth
|
||||
Support `client: pg+google-cloudsql` in database client for usage with `@google-cloud/cloud-sql-connector` and `iam` auth
|
||||
|
||||
@@ -252,7 +252,7 @@ export class DatabaseManager {
|
||||
databaseConfig,
|
||||
{
|
||||
pg: new PgConnector(databaseConfig, prefix),
|
||||
'pg+cloudsql': new PgConnector(databaseConfig, prefix),
|
||||
'pg+google-cloudsql': new PgConnector(databaseConfig, prefix),
|
||||
sqlite3: new Sqlite3Connector(databaseConfig),
|
||||
'better-sqlite3': new Sqlite3Connector(databaseConfig),
|
||||
mysql: new MysqlConnector(databaseConfig, prefix),
|
||||
|
||||
@@ -138,14 +138,14 @@ describe('postgres', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('uses the correct config when using pg+google-cloud-sql', async () => {
|
||||
it('uses the correct config when using pg+google-cloudsql', async () => {
|
||||
const mockConnectionString = createMockConnectionString();
|
||||
const mockConnection = createMockConnection();
|
||||
|
||||
expect(
|
||||
await buildPgDatabaseConfig(
|
||||
new ConfigReader({
|
||||
client: 'pg+google-cloud-sql',
|
||||
client: 'pg+google-cloudsql',
|
||||
connection: mockConnectionString,
|
||||
instanceConnectionName: 'project:region:instance',
|
||||
}),
|
||||
@@ -177,7 +177,7 @@ describe('postgres', () => {
|
||||
expect(
|
||||
await buildPgDatabaseConfig(
|
||||
new ConfigReader({
|
||||
client: 'pg+google-cloud-sql',
|
||||
client: 'pg+google-cloudsql',
|
||||
connection: mockConnectionString,
|
||||
instanceConnectionName: 'project:region:instance',
|
||||
}),
|
||||
|
||||
@@ -77,7 +77,7 @@ export async function buildPgDatabaseConfig(
|
||||
overrides,
|
||||
);
|
||||
|
||||
if (config.client === 'pg+google-cloud-sql') {
|
||||
if (config.client === 'pg+google-cloudsql') {
|
||||
const {
|
||||
Connector: CloudSqlConnector,
|
||||
IpAddressTypes,
|
||||
|
||||
Reference in New Issue
Block a user