Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgr. Vladimir Magyar committed Apr 11, 2017
1 parent 9d1f7f9 commit ba3654b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ plgo is an tool for easily creating PostgreSQL extensions with stored procedures

contribution of all kind welcome!

## installation

`go get -u github.com/microo8/plgo/...`

Creating new stored procedures with plgo is easy:

Create a package where your procedures will be declared:
Expand Down Expand Up @@ -72,10 +76,14 @@ func ConcatArray(strs []string) string {
}
```

## create extention

build the PostgreSQL extension with `$ plgo [path/to/package]`

this will create an directory named `build`, where the compiled shared object will be and also all files needed for the extension installation (like `Makefile`, `extention.sql`, ...)

## install extension

go to the `build` directory and install your new extension:

```bash
Expand Down

0 comments on commit ba3654b

Please sign in to comment.