Skip to content

doublefint/vscode-pgsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pgsql extension

This extension is fixed clone of postgresql by JPTarquino

Features:

  • Run current file into Postgres via psql
  • Colorization
  • Completion Lists for global postgres functions (copied from the Postgres official documentation)
  • Snippets

demo

Fixes

  • use connection string with port and password
  • add stderr output ( thanks for khushboo shah )
  • shorter command

The extension recognizes the .sql,.ddl,.dml,.pgsql extension as sql files intended to be run in Postgres.

Using

To run the current sql file through psql (Postgres native client) you must add the following settings to your workspace:

{ "pgsql.connection": "postgres://username:password@host:port/database" }

You must also ensure that psql is in the OS executable path (it will be executed as simply "psql" from vscode). The command to run the current file is "pgsql: run in postgres"

About

Visual Studio Code extension for Postgres

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.7%
  • Batchfile 0.3%