Skip to content

Tools for postgres development - Atom package

License

Notifications You must be signed in to change notification settings

sestefan/pg-dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg-dev package

Join the chat at https://gitter.im/arianbessonart/pg-dev Build Status

pg-dev is a package for Atom editor, in order to help developing on PostgreSQL (functions).

How?

Load functions from file system, so you MUST have the functions mapped there.

Features

  • Suggest Functions
  • Suggest Variables
  • Suggest Data Types
  • Suggest Out parameters on function. (i.e: get_test('test')).id)
  • Suggest parameters on 'record' variable type
  • Go to function - open in a new tab (hyperclick) - ctrl+click
  • Linter on:
    • Unused variable
    • Undeclared variable
    • Inexistent function
  • Function definition (on click)
  • Snippets: If, ElseIf, Else, For, Create Function, Raise Notice, Raise Exception, do (anonymous function)

Function Definition

Function Definition

Linter

Linter

Suggest Function Definition

Suggest Function Definition

Suggest Properties on record data type

Suggest Properties Record

Restrictions

  • Every file MUST HAVE one and only one function
  • The name of the function must be equal than fileName
  • The name of the function can not be longer than 64 characters

TODO

  • Connect to a database in order to synchronize functions with file system
  • Improve file parser (need Regex expert)
  • Add more features gifs
  • Add spec/travis-ci

About

Tools for postgres development - Atom package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.9%
  • CoffeeScript 4.5%
  • CSS 0.6%