Тёмный

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

Web Dev Fuel
Подписаться 1,5 тыс.
Просмотров 6 тыс.
50% 1

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.

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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! 🙏
@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! 🙏
@JohnathanHendrix
@JohnathanHendrix 10 месяцев назад
Great video.
@webdevfuel
@webdevfuel 10 месяцев назад
Glad you enjoyed it!
@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 7 месяцев назад
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 5 дней назад
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!
Далее
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
Introduction to HTTP with Golang (HTTP Part 1)
32:06
World’s Tallest Man VS Shortest Woman!
15:07
Просмотров 18 млн
Go Testing By Example (GopherCon Australia 2023)
38:45
The Only Database Abstraction You Need | Prime Reacts
21:42
SQLC in Go - Auto-Generating Database Code in Golang
32:02
DONT USE AN ORM | Prime Reacts
25:46
Просмотров 228 тыс.