Skip to content

tomatosource/typegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typegen

  • slonik-typegen wannabe
  • opinionated query formatter
  • attempts to formats all
  • only gen types from Get/Select query funcs
  • typegen-ignore in query to have it ignored

prereqs

go install github.com/xo/xo@latest
brew install pgformatter

installation

go install github.com/tomatosource/typegen@latest

running

DB_CONN=postgres://user:pwd@127.0.0.1:5432/db typegen

major todos

  • update generated type names in other pkg files
  • make less dogshit slow
  • take more args in
  • code so gross

About

Go types from inline SQL queries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages