Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature Request]: Support bulk creation/import of PostgreSQL connections

オープン
#203 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
postgresql
領域
databases

調査の方向性

PostgreSQL ビュー(ツリー)、そのコンテキストメニュー、接続を追加するための既存の拡張機能 UI から始めてください。issue にはファイルもテストも指定されていません。まず接続ファイル形式とインポート/エクスポートの動作を定義し、その後、実装前に検証、プレビュー、シークレットの扱い、グループ化、更新ルールを確立してください。完了とは、コマンドとコンテキストメニューのアクションが、確認付きの検証済み一括インポートおよびエクスポートをサポートすることです。

索引モデルが issue の本文から書いたものです。

説明

At the moment, PostgreSQL connections must be added one by one through the extension UI, which is slow and repetitive when working with many environments (DEV, QA, STAGING, multiple servers, etc.). For users and teams managing dozens of databases, a way to define and import all connections at once would greatly improve productivity and reduce configuration errors.

Proposed Feature
1. Import/Export connections
  • Command to export all existing connections to a JSON/YAML file.
  • Command to import from such a file and create/update multiple connections in one operation.
  • Optional support for environment variables for passwords/connection strings so secrets are not stored in plain text.
2. Connection definition format
  • Each connection entry should support:
    • Label/name
    • Host, port
    • Database name
    • Authentication
    • SSL and advanced options
    • Optional grouping/folder (e.g., DEV, QA, PROD, project name)

Example (pseudo‑JSON):

{
  "groups": [
    {
      "name": "DEV",
      "connections": [
        {
          "label": "Local Dev",
          "host": "localhost",
          "port": 5432,
          "database": "my_app_dev",
          "user": "dev_user",
          "passwordEnv": "MY_APP_DEV_DB_PASSWORD"
        },
        {
          "label": "Shared Dev",
          "connectionStringEnv": "MY_APP_SHARED_DEV_DB_URL"
        }
      ]
    }
  ]
}
3. UI entry points
  • New commands such as:
    • PostgreSQL: Import Connections From File…
    • PostgreSQL: Export Connections To File…
  • Context menu items on the PostgreSQL view (tree) to trigger import/export.
4. Validation and safety
  • Validate the file before applying changes (required fields, duplicate labels, invalid options).
  • Show a preview of connections that will be created or updated, with confirmation.
  • Option to require that secrets come from environment variables or a secret store.
Benefits / Use Cases
  • Fast setup of the same connection set on multiple machines or developer environments.
  • Easier onboarding for new team members: they import a single config file and are ready to work.
  • Ability to keep non‑secret connection metadata (labels, hosts, database names) under version control for a project, improving consistency across the team.
主要言語
言語のデータがありません
スター
398
フォーク
32
平均マージ
1日 9時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-pgsql のほかの issue

microsoft/vscode-pgsql の issue をすべて見る

似ている issue

Databases の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。