@@ -94,7 +94,7 @@ const {Pool} = pg;
9494const connector = new Connector ();
9595const clientOpts = await connector .getOptions ({
9696 instanceConnectionName: ' my-project:region:my-instance' ,
97- ipType: process . env . IP_TYPE || ' PUBLIC' ,
97+ ipType: ' PUBLIC' ,
9898});
9999const pool = new Pool ({
100100 ... clientOpts,
@@ -122,7 +122,7 @@ import {Connector} from '@google-cloud/cloud-sql-connector';
122122const connector = new Connector ();
123123const clientOpts = await connector .getOptions ({
124124 instanceConnectionName: ' my-project:region:my-instance' ,
125- ipType: process . env . IP_TYPE || ' PUBLIC' ,
125+ ipType: ' PUBLIC' ,
126126});
127127const pool = await mysql .createPool ({
128128 ... clientOpts,
@@ -150,7 +150,7 @@ const {Connector} = require('@google-cloud/cloud-sql-connector');
150150const connector = new Connector ();
151151const clientOpts = await connector .getTediousOptions ({
152152 instanceConnectionName: process .env .SQLSERVER_CONNECTION_NAME ,
153- ipType: process . env . IP_TYPE || ' PUBLIC' ,
153+ ipType: ' PUBLIC' ,
154154});
155155const connection = new Connection ({
156156 // Please note that the `server` property here is not used and is only defined
@@ -481,7 +481,7 @@ import {Connector} from '@google-cloud/cloud-sql-connector';
481481const connector = new Connector ();
482482const clientOpts = await connector .getOptions ({
483483 domainName: ' prod-db.mycompany.example.com' ,
484- ipType: process . env . IP_TYPE || ' PUBLIC' ,
484+ ipType: ' PUBLIC' ,
485485});
486486
487487const pool = await mysql .createPool ({
0 commit comments