oapi-codegen vs sqlc

oapi-codegen

5.6 #31 in Code Generators

About oapi-codegen

sqlc

7.2 #10 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 The Geeks Club, sqlc scores higher on our published basis.