Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Open source projects using sqlc #834

Unanswered
joeshaw asked this question in Issue Triage
Dec 15, 2020 · 3 comments · 5 replies
Discussion options

Hi,

Are you aware of any open source projects that are using sqlc? While I appreciate the examples included in the sqlc repo, I'd also like to see some larger examples of using it in action. With many Go packages it's fairly easy to search on pkg.go.dev, but with sqlc it's hard because it's not imported by projects that use it. Any pointers you can provide would be appreciated!

Thanks,
Joe

You must be logged in to vote

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
Comment options

(note; the code there slightly more awkward than it should be because we ported the code from the old "ORM" to sqlc)

Comment options

@kevinburke1
Can I ask Why you use the models layer than use the newmodels directly?

Comment options

We're also using sqlc pretty heavily to build meter.com, but unfortunately the code is private. We are hiring though.

You must be logged in to vote
0 replies
Comment options

Are you aware of any open source projects that are using sqlc?

You're right that you can't use pkg.go.dev to find projects using sqlc. However, you can use GitHub code search. I found 235 repositories containing a sqlc.json / sqlc.yaml file.

That said, as Kevin mentioned, there are many organizations using sqlc. Three of the biggest sponsors are organizations (https://ngrok.com, https://meter.com, http://www.getweave.com) that use it heavily. I'd be happy to introduce you to them, just drop me an email at kyle@conroy.org.

You must be logged in to vote
3 replies
Comment options

I tried the GitHub search route and while it's helpful there's a lot of noise in there. What I was hoping for more was a project (or two, or three) that you felt really showcased sqlc and could act as a good guide for best practices in using it within a larger project.

I'm happy to see it's getting uptake in organizations, but that's not what I'm personally looking for right now. I'm very grateful the project exists... writing a HugSQL-like for Go was something that was on my aspirational to-do list for years but never materialized. Thank you.

Comment options

I have a few projects that meet that criteria, except they are not open source. I'd be happy to give you access to them if you'd just like to look around.

Comment options

Thanks! I’ll send you an email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /