Golang SQL Beginner Tutorial + SQLX
Vložit
- čas přidán 23. 10. 2020
- Learn how to connect to a sql database in go. Execute queries and map data from the database into structs/slices. Also taking a look at the sqlx package to make life easier.
Posts Table Schema:
create table posts
(
id bigint unsigned auto_increment primary key,
title varchar(255) not null,
content text not null,
created_at timestamp default current_timestamp() not null
);
Hi we really need more golang videos...Please make them..Your explanation was so simple and better than others.
Also if u can just show once the update controller it will be so helpful
Wow, uploaded right when I needed this video.
Great to hear, hope its what your looking for 👍
Great video, easy to understand
Awesome, tutorial! Also your microphone is so buttery smoooooth
Thanks! I've been wrestling with my microphone and audio editing for ages, glad to hear its getting better :D
What ide and db client do you use ?
hi, how to chang code style same your in goland. != how to chang style show same you ?
Please make a video on validating the request body
Is the video blurry only for me? I am not able to clearly see the video content.
How to update rows using sqlx?
Have you considered making a simple react + redux + typescript auth web app? I really loved your react + redux + TS video, gave me a good starting point for learning TS. I know people say that there's no perfect tutorial but I think they just haven't found your video yet =)
Thanks for support and compliment really appreciate it. I really want to make a complete project with react + TS + backend (maybe node or something). The only problems I face is that I don't want it to be a useless project, like a to do app that just about everyone creates. But also creating something too complex makes it harder to follow and difficult carry on the knowledge to future projects for my viewers. I am also aware that people generally like to see redux but I really dislike redux and think there are better ways to manage caching data. In addition to this my node knowledge isn't the best and could defiantly do with some improvements.
If you have any ideas of a project that isn't too simple like a todo app, then I can try and start planning a short series. Once again thanks for the compliment.
@@letscode7478 Maybe a suggestion would be something like the medium clone, conduit? I also don't really like redux, but the main reason why I'm sticking with it is that companies use it and since I'm job hunting I have to know it. Another reason why I wanted to learn TS.
i find your style of explaining really nice, but its frustrating that you are showing how to do sql operations with go with all these extensive addons, like Postman, or this gin thingy. Also it would be nice if you show the error handling statements everytime. As a newbeginner, I feel like it's important to get a thorough understanding of the topic. Additionally, I want to implement the newly learned stuff as fast as possible, w/o having to learn about these addons you're using as well. Please stick to the basics next time and do a groundup education, with as little extra addons as possible!