Go - SQL Databases in Golang with the database/sql package

  Рет қаралды 41,101

BugBytes

BugBytes

Күн бұрын

Пікірлер: 65
@egenethebest9107
@egenethebest9107 10 ай бұрын
God I am loving this language, all tutorials i am finding are literally how I would want to to write my application. Connect to DB with 2 lines of code and create a table with raw SQL directly from your code! Yes please!!! 😍😍😍
@seydinaoumarsamabaly1806
@seydinaoumarsamabaly1806 Жыл бұрын
You have the art of inspiring self-confidence in every programming langage I've seen on this channel. Incredible ! Thank you for all Master.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot for that, really nice comment mate - cheers!
@PyroVox
@PyroVox 9 ай бұрын
Thanks for making this tutorial. I'm a beginner with Go and making a backend app; this video was precisely what I needed, presented clearly and concisely.
@rivari22
@rivari22 2 күн бұрын
thankyou, what a great explanation
@abessesmahi4888
@abessesmahi4888 Жыл бұрын
Thank for this great content, next time please cover DB migrations, and ORMs. Thank you so much for your efforts.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thank you - will do, thanks a lot for the suggestion + the comment!
@iCrimzon
@iCrimzon Жыл бұрын
Love your Go content, i went the mysql workbench route but still saw this vid regardless and understood from you what i didnt from my other YT mentor, def need more Go+DB/HTMX+Go tutorials/vids
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot - I've got more planned soon! Thanks for watching!
@lifeofdandotme
@lifeofdandotme Жыл бұрын
Excellent video. Everything simply explained. Thank you for these quality videos. :)
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot, appreciate it!
@ConciseCabbage
@ConciseCabbage Жыл бұрын
Please make a video showing how to use this sql database with an htmx app in golang too :) Also, I love that you don't have to deal with an ORM. The simple SQL query string is so refreshing!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks - that's the plan, it should be released next month! Thanks for the feedback and for watching :)
@JamaRamaVarush
@JamaRamaVarush Жыл бұрын
​@@bugbytes3923 Thanks for the video!
@baz_sh
@baz_sh Жыл бұрын
This is such a great tutorial, thank you!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@34556ndmd
@34556ndmd 11 ай бұрын
hi!! Thank you very much... you have such a great content which helped me!!!
@bugbytes3923
@bugbytes3923 11 ай бұрын
Awesome to hear, thank you for commenting!
@БахауатдинХабибуллаев
@БахауатдинХабибуллаев 16 күн бұрын
thank you bro very much✊✊✊✊
@bugbytes3923
@bugbytes3923 16 күн бұрын
@@БахауатдинХабибуллаев no worries! Thanks for watching!
@AmoahDevLabs
@AmoahDevLabs Жыл бұрын
Always great content. Thanks for the gist.
@bugbytes3923
@bugbytes3923 Жыл бұрын
You are welcome, thanks as always for watching!
@terrencemoore8739
@terrencemoore8739 5 ай бұрын
Wouldve been cool to see you connect the db to a http server as well but this was very informative, thank you!
@hans7714
@hans7714 Жыл бұрын
Love this content.... Thanks for sharing.
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@mlsandreas
@mlsandreas Жыл бұрын
Thank you for your great content!!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot for commenting and glad you like the content!
@alperaslan.
@alperaslan. 5 ай бұрын
I wish you have golang course on Udemy :) You have very clear explanation :) thx for the video .)
@bugbytes3923
@bugbytes3923 5 ай бұрын
In the near future perhaps ;) Thanks!
@bdud_
@bdud_ 2 ай бұрын
spasibo!very accessible
@bugbytes3923
@bugbytes3923 2 ай бұрын
Thanks a lot!
@decay9984
@decay9984 Жыл бұрын
Thank! Very informative video
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks a lot!
@lyhoangdong0909020227
@lyhoangdong0909020227 5 ай бұрын
Thank you very much!
@bugbytes3923
@bugbytes3923 5 ай бұрын
No worries thanks for commenting!
@sternparadis227
@sternparadis227 9 ай бұрын
Thanks for this great video. I have just one remark. When setting up a connection, do not call _defer db.Close()_ , before you check the error of _sql.Open_ . If there is an error, _nil_ is returned and calling _Close_ leads to a panic.
@bugbytes3923
@bugbytes3923 9 ай бұрын
Ah - thank you for pointing that out!
@AhmedSamy-fg5zz
@AhmedSamy-fg5zz 11 ай бұрын
Great content, Thank you very much. Can you please make a video about using database/sql with relationships and transactions.
@bugbytes3923
@bugbytes3923 11 ай бұрын
Thanks a lot! Great idea, will do!
@ninlanalumni2233
@ninlanalumni2233 Жыл бұрын
Please more go content
@roger_that_do_you_copy
@roger_that_do_you_copy 7 ай бұрын
pretty cool! I'm getting into the Go trend it the language is cool and all. I'm eagle to learn it! but why is it most viral now than ever? Its been out.
@asawanted
@asawanted 11 ай бұрын
Is it important not to initialize the db variable as global. Cz I tried to declare db as global so that I don't need to pass. But if I do that I get runtime error like below: runtime error: invalid memory address or nil pointer dereference Any reason for this?
@naufaldbei4234
@naufaldbei4234 11 ай бұрын
how do you handle nullable values in golang sql?
@ardakrakhmetov4653
@ardakrakhmetov4653 6 ай бұрын
well, i have this error "pq: password authentication failed for user "postgres""
@MikeSmith-wr4yc
@MikeSmith-wr4yc 2 ай бұрын
Must've mistyped the password, try asking chat gpt to help with it
@AchwaqKhalid
@AchwaqKhalid Жыл бұрын
Why are Golang videos not in a playlist 🤔💬❓
@bugbytes3923
@bugbytes3923 Жыл бұрын
Thanks for pointing that out, I owe you (somehow forgot to do so) - I have created one now! kzbin.info/aero/PL-2EBeDYMIbR1ag15E2MonJOj_cCIjUnd
@AchwaqKhalid
@AchwaqKhalid Жыл бұрын
Bookmarked so cheers 🥂
@jimzordstam6338
@jimzordstam6338 6 ай бұрын
For anyone getting this Error: "pq: SSL is not enabled on the server" It seems that now sql.Open("postgres", connStr) does NOT support URL-based credentials. It wants a DSN (Data Source Name) format. Here is an example: connStr := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=disable", host, port, username, password, database) db, err := sql.Open("postgres", connStr).
@StrategyInRush
@StrategyInRush Жыл бұрын
Can i request a big tutorial on HTML/templates like and example for building a simple website with it
@bugbytes3923
@bugbytes3923 Жыл бұрын
Yeah, definitely gonna expand on templates with Go soon.
@StrategyInRush
@StrategyInRush Жыл бұрын
@@bugbytes3923 template caching system would be an awesome tutorial ;)
@0lange
@0lange Жыл бұрын
cold you please make a video as to how you would deploy a golang app that is connected to a database? thanks!
@bugbytes3923
@bugbytes3923 Жыл бұрын
Great suggestion - thanks! Will look into more Go stuff very soon, including deployment.
@mohamedwahman4099
@mohamedwahman4099 Жыл бұрын
can you please make a full example crud application with golang ,maybe with Fiber or any other framework
@MakeAsPro
@MakeAsPro 3 ай бұрын
every Python developer make video about Golang programing 😂😂😂
@bugbytes3923
@bugbytes3923 3 ай бұрын
You're right, haha
@faizulla5838
@faizulla5838 Жыл бұрын
How work without Docker? Sir.
@sergeibatiuk3468
@sergeibatiuk3468 3 ай бұрын
What kind of accent is this?
@bugbytes3923
@bugbytes3923 3 ай бұрын
@@sergeibatiuk3468 Scottish
@SonidoScoobyDoo
@SonidoScoobyDoo Жыл бұрын
ok many people says that using gorm could give you performance problems in future. others says that using this sql package is really insecure. how can we prevent sql injection with database/sql ?
@maximofernandez196
@maximofernandez196 10 ай бұрын
the syntax at 16:40 is supposed to take care of that
David Crawshaw   SQLite and Go
32:03
Go Northwest
Рет қаралды 38 М.
SQLC in Go - Auto-Generating Database Code in Golang
32:02
BugBytes
Рет қаралды 16 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 227 М.
GOLANG! How to Connect Your GO Application to a PostgresQL Database
17:32
Golang Context Package: It's More Than You Think!
8:26
Alex Mux
Рет қаралды 4,4 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 249 М.
SQLx is my favorite PostgreSQL driver to use with Rust.
9:47
Dreams of Code
Рет қаралды 61 М.
Go Programming - JSON Encoding & Decoding in Golang
25:04
BugBytes
Рет қаралды 10 М.
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Рет қаралды 59 М.
DONT USE AN ORM | Prime Reacts
25:46
ThePrimeTime
Рет қаралды 249 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН