Golang SQL Beginner Tutorial + SQLX

Sdílet
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
    );

Komentáře • 15

  • @playpoint5792
    @playpoint5792 Před 2 lety +1

    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

  • @alexpena9927
    @alexpena9927 Před 3 lety +1

    Wow, uploaded right when I needed this video.

    • @letscode7478
      @letscode7478  Před 3 lety

      Great to hear, hope its what your looking for 👍

  • @pokinchaitanasakul-boss3370

    Great video, easy to understand

  • @abdicodes
    @abdicodes Před 3 lety +1

    Awesome, tutorial! Also your microphone is so buttery smoooooth

    • @letscode7478
      @letscode7478  Před 3 lety +1

      Thanks! I've been wrestling with my microphone and audio editing for ages, glad to hear its getting better :D

  • @hayrivonnebenan5127
    @hayrivonnebenan5127 Před 2 lety

    What ide and db client do you use ?

  • @AGISSERVER
    @AGISSERVER Před 2 lety

    hi, how to chang code style same your in goland. != how to chang style show same you ?

  • @richardwilliam7030
    @richardwilliam7030 Před 2 lety

    Please make a video on validating the request body

  • @selvakumarmurugesan9013

    Is the video blurry only for me? I am not able to clearly see the video content.

  • @aidynomarov1914
    @aidynomarov1914 Před 2 lety

    How to update rows using sqlx?

  • @dkshadow709
    @dkshadow709 Před 3 lety

    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 =)

    • @letscode7478
      @letscode7478  Před 3 lety +1

      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.

    • @dkshadow709
      @dkshadow709 Před 3 lety +1

      @@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.

  • @macklemo5968
    @macklemo5968 Před 2 lety

    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!