oapi-codegen vs sqlc

oapi-codegen

5.0 #27 in Code Generators

About oapi-codegen

sqlc

5.9 #11 in Code Generators

About sqlc
oapi-codegensqlc
Free planYesYes
Free trialNoNo
Paid fromFreeFree
Open sourceNoNo
PlatformsLinux, self-hostedLinux, macOS, self-hosted, Windows
Custom templatesYes—
Schema-to-code generationYesYes
CLI availableYesYes
Supported languagesGoGo, Kotlin, Python, TypeScript, C#, F#, Java, PHP, Ruby, Zig, Rust
Free plan—Yes
Project scaffolding—Yes

Both are listed in Best Code Generators. On Inferse, sqlc scores higher on our published basis.