Skip to content

benjcal/pgroute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pgroute

Simple library to expose all postgres pubic functions to HTTP.

Uses chi and gorm

usage:

db, _ := gorm.Open(...)
r := chi.NewRouter()

r.Mount("/f", pgroute.MountFunctionRoute(db))
CREATE FUNCTION add_user(username TEXT, age INT) ...
curl -X POST -d '{"username": "foo", "age": 22}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages