Skip to content

Commit 4681ff9

Browse files
committed
add env loading require
1 parent 288fcca commit 4681ff9

30 files changed

Lines changed: 74 additions & 0 deletions

skills/cloudsql-postgres/scripts/database_overview.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/execute_sql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/get_column_cardinality.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/get_query_plan.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_active_queries.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_autovacuum_configurations.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_available_extensions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_database_stats.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// Copyright 2025 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an "AS IS" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.
44

5+
require('./load_env');
6+
57
const { spawn, execSync } = require('child_process');
68
const path = require('path');
79
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_indexes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

skills/cloudsql-postgres/scripts/list_installed_extensions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// See the License for the specific language governing permissions and
1515
// limitations under the License.
1616

17+
require('./load_env');
18+
1719
const { spawn, execSync } = require('child_process');
1820
const path = require('path');
1921
const fs = require('fs');

0 commit comments

Comments
 (0)