Go SQL Comparison (squirrel, raw queries, sqlc and sqlx)

  Рет қаралды 6,301

Web Dev Fuel

Web Dev Fuel

Күн бұрын

In this video, you'll learn the pros and cons of 4 different ways to interact with an SQL database in Go, by comparing squirrel vs raw queries vs sqlc vs sqlx.

Пікірлер: 29
@jorgeandresnumamendoza258
@jorgeandresnumamendoza258 4 ай бұрын
sqlc is my favorite, because has the highest performance (my benchmarks). I use it with a million users in mysql and postgres. You also have more control over your queries since you write them by hand. Good video!!! Thank you.
@arilson.santos
@arilson.santos 4 ай бұрын
Does it work well with N+1 queries? (for two or more structs)
@webdevfuel
@webdevfuel 3 ай бұрын
Thank you for sharing your experience! I've actually been using sqlx or the std library more, since I've found I had to modify the sqlc code for some edge cases. But if it works for you, that's what's important!! 😊
@daviddarfdas
@daviddarfdas 6 ай бұрын
Awesome explanation and amazing seeing examples for each library. Thank you.
@webdevfuel
@webdevfuel 3 ай бұрын
Thank you, I appreciate you watching. Glad it was helpful to you! 🙏
@Ohhimark100
@Ohhimark100 5 ай бұрын
Thanks! That was very insightful.
@webdevfuel
@webdevfuel 3 ай бұрын
Thank you very much! I'm really glad it was insightful to you! 🙏
@JohnathanHendrix
@JohnathanHendrix 10 ай бұрын
Great video.
@webdevfuel
@webdevfuel 10 ай бұрын
Glad you enjoyed it!
@lokeshahuja1885
@lokeshahuja1885 5 ай бұрын
Very nice explanation, Can you please provide all the code snippets examples you have used.
@webdevfuel
@webdevfuel 3 ай бұрын
I don't think I have the code snippets publicly available, but I'll try to find them and update the description with the link to the repo! Thank you for watching! 🙏
@diehenne
@diehenne 10 ай бұрын
thanks!
@webdevfuel
@webdevfuel 10 ай бұрын
I'm glad it was helpful! Thanks for watching!
@theofulis
@theofulis 7 ай бұрын
What application is that, that you using for the notes?
@TheAcademik
@TheAcademik 7 ай бұрын
Google excalidraw 👌🏿
@webdevfuel
@webdevfuel 7 ай бұрын
It's excalidraw.
@neilmedina997
@neilmedina997 8 ай бұрын
sqlx it is. sql proficiency , control and gigachad points.
@webdevfuel
@webdevfuel 7 ай бұрын
I agree, sqlx is probably my favorite choice too!
@terrencemoore8739
@terrencemoore8739 18 күн бұрын
You've already said "go ahead" like 8 times in the first 2 minutes 😂
@terrencemoore8739
@terrencemoore8739 18 күн бұрын
Try just saying the thing instead of prefacing it with go ahead, going ahead, etc
@BarakaAndrew
@BarakaAndrew 3 ай бұрын
sql injections using sqlx? lol not true
@webdevfuel
@webdevfuel 3 ай бұрын
If you build the query manually, yes. I said in the video that it's a possibility, but not if you build the query in the correct way (e.g. with question marks and the values as arguments).
@Christo6020
@Christo6020 3 ай бұрын
The language is called Go, not Golang.
@webdevfuel
@webdevfuel 3 ай бұрын
Sure, but it's referred to as Golang all the time so it's fine either way.
@OghamTheBold
@OghamTheBold Ай бұрын
Sometimes saying _Golang_ can help in Search
@webdevfuel
@webdevfuel Ай бұрын
That's true too, the language name itself is kinda bad for search engines, which is ironic since Google created it 😄 everything else is amazing about the language
@dev-qq2vy
@dev-qq2vy 6 күн бұрын
I refuse use Go, I only use golang beacause I dont want search about "go go go, come on".😂
@Tay74514
@Tay74514 10 ай бұрын
Thank you for sharing this. I can only imagine the analysis that went into sorting the pros and cons. Thank you again for speeding out thinking cycle up 🫡
@webdevfuel
@webdevfuel 10 ай бұрын
Glad it was helpful!
The Only Database Abstraction You Need | Prime Reacts
21:42
ThePrimeTime
Рет қаралды 208 М.
SQLC in Go - Auto-Generating Database Code in Golang
32:02
BugBytes
Рет қаралды 11 М.
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
At the end of the video, deadpool did this #harleyquinn #deadpool3 #wolverin #shorts
00:15
Anastasyia Prichinina. Actress. Cosplayer.
Рет қаралды 19 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 68 МЛН
So Cute 🥰
00:17
dednahype
Рет қаралды 53 МЛН
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Рет қаралды 51 М.
DONT USE AN ORM | Prime Reacts
25:46
ThePrimeTime
Рет қаралды 228 М.
Go application setup with PostgreSQL, sqlx, goose migrations
9:38
Make Programming Fun Again
Рет қаралды 5 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 58 М.
PGX Top to Bottom
1:04:56
Golang Estonia
Рет қаралды 10 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 158 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 108 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 62 М.
Function Iterators might just change the way we write loops in Go
11:35
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17