Skip to content

tobiasdalhof/sqlc-example

Repository files navigation

sqlc-example

This repository contains example code for sqlc with Go.

Todo

  • Add example that demonstrates the usage of sqlc generated code
  • Add database test example that connects to a real database
  • Add test automation with GitHub actions

Generate Go code from SQL

make sqlc

Commands for DB migration

# create new migration
make migration name=<name>

# run migrations
make migrate_up

# rollback migrations
make migrate_down

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published