Skip to content
PostgreSQL extension for VSCODE
Branch: master
Clone or download
Latest commit daf3e39 Apr 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode initial code Mar 28, 2018
images enable debugging Apr 6, 2018
localization/xliff/enu Upgraded the http proxy and removed deprecated call from vscode Apr 4, 2019
samples initial code Mar 28, 2018
scripts initial code Mar 28, 2018
snippets initial code Mar 28, 2018
src Updated the tools service version Apr 9, 2019
syntaxes initial code Mar 28, 2018
tasks removed x86 Apr 9, 2019
test Updated the platform Apr 9, 2019
typings Upgraded the http proxy and removed deprecated call from vscode Apr 4, 2019
.gitignore initial code Mar 28, 2018
.mention-bot initial code Mar 28, 2018
.travis.yml initial code Mar 28, 2018
.vscodeignore initial code Mar 28, 2018
CHANGELOG.md initial code Mar 28, 2018
LICENSE Update License Mar 14, 2019
README.md Update README.md Mar 18, 2019
ThirdPartyNotices.txt Updated display name for extension and few messagings Mar 16, 2019
appveyor.yml Upgraded the http proxy and removed deprecated call from vscode Apr 4, 2019
coverconfig.json initial code Mar 28, 2018
gulpfile.js initial code Mar 28, 2018
install.js initial code Mar 28, 2018
issue_template.md initial code Mar 28, 2018
karma-test-shim.js initial code Mar 28, 2018
karma.conf.js initial code Mar 28, 2018
npm-shrinkwrap.json Updated the platform Apr 9, 2019
package.json Updated the platform Apr 9, 2019
package.nls.json Upgraded the http proxy and removed deprecated call from vscode Apr 4, 2019
tsconfig.json Upgraded the http proxy and removed deprecated call from vscode Apr 4, 2019
tslint.json initial code Mar 28, 2018

README.md

PostgreSQL for Visual Studio Code

Welcome to PostgreSQL for Visual Studio Code! An extension for developing PostgreSQL with functionalities including:

  • Connect to PostgreSQL instances
  • Manage connection profiles
  • Connect to a different Postgres instance or database in each tab
  • View object DDL with 'Go to Definition' and 'Peek Definition'
  • Write queries with IntelliSense
  • Run queries and save results as JSON, csv, or Excel

Install link: https://marketplace.visualstudio.com/items?itemName=ms-ossdata.vscode-postgresql

Quickstart

  1. Open the Command Palette (Ctrl + Shift + P).

  2. Search and select 'PostgreSQL: New Query'

  3. In the command palette, select 'Create Connection Profile'. Follow the prompts to enter your Postgres instance's hostname, database, username, and password.

You are now connected to your Postgres database. You can confirm this via the Status Bar (the ribbon at the bottom of the VS Code window). It will show your connected hostname, database, and user.

  1. You can type a query like 'SELECT * FROM pg_stat_activity';

  2. Right-click, select 'Execute Query' and the results will show in a new window.

You can save the query results to JSON, csv or Excel.

Offline Installation

The extension will download and install a required PostgreSQL Tools Service package during activation. For machines with no Internet access, you can still use the extension by choosing the Install from VSIX... option in the Extension view and installing a bundled release from our Releases page. Each operating system has a .vsix file with the required service included. Pick the file for your OS, download and install to get started. We recommend you choose a full release and ignore any alpha or beta releases as these are our daily builds used in testing.

Support

Support for this extension is provided on our GitHub Issue Tracker. You can submit a bug report, a feature suggestion or participate in [discussions].

Contributing to the Extension

See the developer documentation for details on how to contribute to this extension.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Privacy Statement

The Microsoft Enterprise and Developer Privacy Statement describes the privacy statement of this software.

License

This extension is licensed under the MIT License. Please see the third-party notices file for additional copyright notices and license terms applicable to portions of the software.

You can’t perform that action at this time.