Categorygithub.com/octaviocarpes/go-http-servers
modulepackage
0.0.0-20241121230647-7f2693fc29c3
Repository: https://github.com/octaviocarpes/go-http-servers.git
Documentation: pkg.go.dev

# README

go-http-servers

Migrations:

cd sql/schema

create a file like 0001_my_migration.sql

goose postgres "postgres://postgres:@localhost:5432/chirpy" up

SQLC

  • Create a sql file on sql/queries with the query you would like to generate the code to

  • add a comment with the name of the generated function and the amount of results e.g:

-- name: GetChirpByID :one
  • On the root folder
sqlc generate