• Microsoft ने एक public preview extension घोषित किया है जो VS Code के भीतर PostgreSQL management और development को साथ में संभालता है
  • नया extension Database Explorer, query editor, context-aware IntelliSense, और @pgsql GitHub Copilot agent को एक साथ लाता है, जिससे editor के बाहर जाने वाले काम कम होते हैं
  • productivity समस्याओं के आधार के रूप में 2024 StackOverflow Developer Survey में task switching में कठिनाई 41% और 2024 Stripe Developer Coefficient Report में debugging·troubleshooting पर समय का अधिकतम 50% बताया गया है
  • @pgsql agent natural language में query करना, schema optimize करना, और SQL tasks चलाने में मदद करता है, लेकिन database में बदलाव से पहले user की explicit permission जरूरी है
  • Azure Database for PostgreSQL browsing, Entra ID आधारित passwordless authentication, और local·cloud connection management सहित यह VS Code को PostgreSQL के लिए एक integrated development environment तक विस्तारित करता है

VS Code के भीतर आया PostgreSQL development workflow

  • Microsoft ने Visual Studio Code के लिए नया PostgreSQL extension public preview में घोषित किया है
  • यह extension PostgreSQL database management और application development workflow को एक जगह लाने के लिए design किया गया है
  • VS Code के भीतर निम्न काम किए जा सकते हैं
    • database objects manage करना
    • queries लिखना और चलाना
    • context-aware IntelliSense का उपयोग
    • @pgsql GitHub Copilot agent के जरिए AI support
  • database management और application development के बीच बार-बार जाना productivity घटाने वाला कारक बताया गया है
    • 2024 StackOverflow Developer Survey के अनुसार developers में 41% को task switching में कठिनाई होती है
    • 2024 Stripe Developer Coefficient Report के अनुसार developers code और database debugging·troubleshooting में अपने समय का अधिकतम 50% खर्च करते हैं

database context को समझने वाला GitHub Copilot

  • @pgsql GitHub Copilot agent, VS Code के भीतर PostgreSQL database context का उपयोग करने वाला AI support देता है
  • natural language में PostgreSQL databases और development tools को संभाला जा सकता है
    • database query करना
    • schema optimize करना
    • SQL tasks चलाना
  • query editor context menu में निम्न AI features शामिल हैं
    • “Rewrite Query”
    • “Explain Query”
    • “Analyze Query Performance”
  • PostgreSQL Copilot, database performance और security बनाए रखने तथा code quality सुधारने के लिए real-time guidance देता है

Agent mode और task approval workflow

  • GitHub Copilot Chat का agent mode database context को समझने वाला assistant है, जो केवल सवाल-जवाब से आगे बढ़कर multi-step tasks कर सकता है
  • Agent mode workspace से अतिरिक्त context ला सकता है
  • user की अनुमति होने पर यह सीधे code लिख और debug कर सकता है
  • उदाहरण workflow में Saved Connections के किसी specific server पर नया database बनाना और PostGIS extension enable करना शामिल है
    • @pgsql agent server connections की सूची दिखाता है
    • postgis server से connect करता है
    • database modification script लिखता है
    • changes आगे बढ़ाने से पहले user permission का इंतजार करता है
  • database modifications के लिए user की explicit permission जरूरी है

connection management और Entra ID authentication

  • connection management feature local और cloud-hosted PostgreSQL instances से जुड़ना आसान बनाता है
    • multiple connection profiles का समर्थन
    • connection string parsing का समर्थन
    • Azure Database for PostgreSQL deployments को सीधे browse और filter किया जा सकता है
  • मौजूदा Azure Database for PostgreSQL deployment से “Add New Connection” menu के “Browse Azure” option के जरिए जुड़ा जा सकता है
  • local Docker deployment के PostgreSQL से Parameters या Connection String option के जरिए connect किया जा सकता है
  • Entra ID आधारित passwordless authentication manual login हटाता है और connection persistence का अनुभव बेहतर बनाता है
    • automatic token refresh से development के दौरान authentication timeout का जोखिम घटता है
    • Entra ID के security authentication protocols का उपयोग होता है
    • token management automate होकर operational burden कम होता है
    • मौजूदा Entra ID credentials इस्तेमाल किए जा सकते हैं, इसलिए अलग account management की जरूरत नहीं होती
  • Entra ID integration centralized security, identity management, और access control प्रदान करता है

database exploration, query editing, और schema visualization

  • Database Explorer, schemas, tables, functions जैसे database objects का structured view देता है
  • Database Explorer में database objects को create, modify, और delete किया जा सकता है
  • Object Explorer के नीचे session query history दिखाई जाती है
    • पहले चलाई गई queries को जल्दी review और reuse किया जा सकता है
  • query editor context-aware IntelliSense देता है
    • SQL keywords autocomplete
    • table names autocomplete
    • function autocomplete
  • query editing features में syntax highlighting, auto formatting, और चलाई गई queries को दोबारा उपयोग करने के लिए query history tracking शामिल है
  • schema visualization चलाने के लिए Object Explorer में database item पर right-click करके “Visualize Schema” चुना जाता है

प्रमुख अंतर और installation method

  • Microsoft के अनुसार इसके प्रमुख अंतर निम्न हैं
    • context-aware IntelliSense और SQL formatting के जरिए समय की बचत और errors में कमी
    • database और workspace context को समझने वाले pgsql GitHub Copilot Chat agent की multi-step tasks करने की क्षमता
    • कुछ ही मिनटों में शुरुआत कराने वाला Connection Manager onboarding
    • Entra ID integration के जरिए access control और centralized identity management
    • VS Code के भीतर database objects manage करने, queries चलाने, और instance deployments संभालने के लिए toolset
  • installation के लिए VS Code का Extensions view खोलकर Extensions Marketplace में “PostgreSQL” खोजें, फिर नीले हाथी वाले icon के साथ Preview PostgreSQL extension चुनें
  • extension ID है ms-ossdata.vscode-pgsql
  • यह online Visual Studio Code Marketplace में भी उपलब्ध है: ms-ossdata.vscode-pgsql
  • PostgreSQL GitHub Copilot Chat उपयोग करने के लिए VS Code में GitHub Copilot और GitHub Copilot Chat extensions installed होने चाहिए
    • GitHub account से sign in करने के बाद chat interface में @pgsql का उपयोग करके PostgreSQL database के साथ interact किया जा सकता है
  • feedback और issue reports, VS Code के built-in feedback tool से submit किए जा सकते हैं
  • first release में शामिल standard preview license wording के संबंध में Microsoft का कहना है कि सभी Postgres users के लिए extension को समान रूप से व्यापक रूप से उपयोग योग्य बनाने हेतु license update किया जाएगा
  • getting started docs https://aka.ms/pg-vscode-docs पर उपलब्ध हैं

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.