Skip to content

PostgreSQL 9.4 syntax plugin for Vim with PL/Python support

Notifications You must be signed in to change notification settings

spacetekk/pgsql.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim PostgreSQL 9.4 syntax plugin with PL/Python support

Supports PostgreSQL version 9.4, highlights most builtin functions. Keywords according to: SQL Key Words.

Installation

Usage

Highlights .pgsql files out of the box. You can add pgsql dictionary to vim completion, with:

set dictionary+=~/.vim/bundle/pgsql.vim/dic/pgsql

PL/Pythonu Support

Use special markers while decalraing plpythonu functions or do statements, etc... Example:

create or replace function plpythonu_version() returns text language plpythonu as $python$
    res = plpy.execute('select * from version()')
    return res[0]['version']
$python$;

Bonus

Some usefull snippts

About

PostgreSQL 9.4 syntax plugin for Vim with PL/Python support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published