generate entire CRUD backend for golang echo and postgres with one command
Project description
GoForge
generate entire CRUD backend for golang echo and postgres with one command
Description
This tool is designed to be used as a starting a project and editing the files later. It uses sqlc to generate all the sql related code. Make sure sqlc, goimports, gofmt, docker are installed
API Configuration Documentation
edit the yaml as per your requirements
project_path: "example"
schema_file: "example.sql"
handlers:
- name: CreateUser
path: "/v1/api/user"
sql:
name: CreateUser
annotation: exec
query: "insert into users (name, email) values ($1, $2)"
request:
method: "POST"
- name: GetUsers
path: "/v1/api/users"
sql:
name: GetUsers
annotation: many
query: "select id, name, email from users"
request:
method: "GET"
This document describes the configuration for an API project using a YAML file.
project_path: Specifies the root directory for the project.schema_file: Defines the SQL schema file for the project.handlers: The configuration defines API handlersname: name of handler in PascalCasepath: api pathsql: configuration for sql queriesname: name of sql query functionannotation: ranges from "one", "many" and "exec"query: sql query with variable params syntax of psql
request.method: defines the http verb of the api path
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goforge-0.0.1.tar.gz.
File metadata
- Download URL: goforge-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b196ed5b84906dcad09251f85a834eb6dc01b1911cbf60816f24200521c488e
|
|
| MD5 |
5e505bf880c1133cd699133ed5eded1e
|
|
| BLAKE2b-256 |
18085b296fa0057e1013451fa25325c5ae82b25aab0a31b48cfc4b2f5d3f9c9e
|
File details
Details for the file goforge-0.0.1-py3-none-any.whl.
File metadata
- Download URL: goforge-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df97d9e9968a580245e2da9a8321cf222ab34fe90bf852e1931908d3848d5c29
|
|
| MD5 |
c4f4c53648ffee63c5d63217bbbe8866
|
|
| BLAKE2b-256 |
0bb0b124a27e3f5c23e45fe72837d1c67a8d76919bc344fc6358a24dda051b6e
|