internal/

directory
v0.0.0-...-d0ca659 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: MPL-2.0

README

internal

migrations

the cli tool relies on the env variable set POSTGRESQL_URL='postgres://postgres:postgres@localhost:5432/example?sslmode=disable'

to create a new migration:

env POSTGRESQL_URL='postgres://postgres:postgres@localhost:5432/example?sslmode=disable' migrate create -ext sql -dir ./migrations/ -seq create_contributors_table

when there's a migration conflict, go back down to the last working version, then fix things if necessary (for instance, bulk adding fields to a new column that has a NOT NULL attribute), then doing the migrations up again

Directories

Path Synopsis
api
API is the package that takes care of loading the configuratio and setting up the router
API is the package that takes care of loading the configuratio and setting up the router
models
Models keep track of data processing, such as returning slices for complex queries, or sanitizing input data
Models keep track of data processing, such as returning slices for complex queries, or sanitizing input data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL