Categorygithub.com/benjcal/pgroute
repositorypackage
0.0.4
Repository: https://github.com/benjcal/pgroute.git
Documentation: pkg.go.dev

# README

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(first_name TEXT, last_name TEXT, age INT) ...
curl -X