Amazing Tool For Handling Database Migrations In Golang

  Рет қаралды 9,367

Anthony GG

Anthony GG

Ай бұрын

► Join my Discord community for free education 👉 / discord
► Exclusive Videos, Mini courses, Resume reviews, and coaching 👉 thetotalcoder.com
► 33% OFF on my Go + HTMX + Templ Course 👉bit.ly/3UFruxO
► Enjoy a 60% Black Friday Discount on My Golang Course 👉 fulltimegodev.com
► Follow me on Twitter 👉 / anthdm
► Follow me on GitHub 👉 github.com/anthdm
SUBSCRIBE OR NO MARGARITAS
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Пікірлер: 30
@anthonygg_
@anthonygg_ Ай бұрын
► 33% OFF on my Go + HTMX + Templ Course PRESALE bit.ly/3UFruxO ► Exclusive Videos, Mini courses, Resume reviews, and coaching thetotalcoder.com ► Join my Discord community for free education discord.com/invite/Ac7CWREe58 ► 60% OFF on my Golang course fulltimegodev.com Goose GitHub: github.com/pressly/goose Thanks for watching
@demmidemmi
@demmidemmi Ай бұрын
From the video I'm not sure in what way goose is different from go migrate? Other than it being more 'batteries included' it seems.
@dandogamer
@dandogamer Ай бұрын
Personally I use 'atlas' for my migrations
@dejangegic
@dejangegic Ай бұрын
what's the advantage?
@micahshellhamer3794
@micahshellhamer3794 Ай бұрын
I literally just used it for the first time before seeing this! It's pretty easy to use.
@kennedymbogo542
@kennedymbogo542 Ай бұрын
This is nice. Wanted to try dbmate next after go migrate but I think I might go with goose now.
@prmshzkarmacharya2069
@prmshzkarmacharya2069 Ай бұрын
I have been using goose for last few go projects😊
@mohammedaabida1865
@mohammedaabida1865 Ай бұрын
Really nice video . Can you make a video an optimal solution on how to implement a background download process. When user request multiple download(restrict the duplicate requests). the requests will be sent to the server it can be add it in the queue and process in the background job. User can view the progress of the download in the frontend and the status of the download. Appreciate your work 👏
@kwe4117
@kwe4117 Ай бұрын
What’s wrong with GORM auto migration ?
@devoverlord
@devoverlord Ай бұрын
@anthonygg this is great and all, but how do you apply them in production? Do you use Github Actions, or some sort of serverless function in whatever cloud provider, or do you just execute migration on init of your service? If on init of the service, how do you handle that init when you scale the service?
@anthonygg_
@anthonygg_ Ай бұрын
Migrations are done manually.
@Noudapi
@Noudapi Ай бұрын
I use liquibase, pretty nice
@sipatha
@sipatha Ай бұрын
You missed adding the goose URL in the description as promised
@zoop2174
@zoop2174 Ай бұрын
I have used goose before, and it's great. But when I switched to Bun for my db queries (I had issues with sqlx and the basic go sql is a pita) I just also switched to their migration system. Just to keep it lean. One has to make sure to always write "CREATE TABLE IF NOT EXISTS" when you switch db migration tools.
@KiraleosAkis
@KiraleosAkis Ай бұрын
hey anthony, what theme do you use for vs code? looks nice
@anthonygg_
@anthonygg_ Ай бұрын
Gruvbox
@stefantolksdorf2576
@stefantolksdorf2576 Ай бұрын
atlas ftw
@cristianortiznavia7595
@cristianortiznavia7595 Ай бұрын
What do You think about sqlc, to manage db operations in go?
@massy-3961
@massy-3961 Ай бұрын
It’s good for making focused functions, but if you try to make general dynamic repositories it’s really hard to set up. But it’s pretty solid overall.
@thoriqadillah7780
@thoriqadillah7780 Ай бұрын
Personally i never found using sql fun for migration. If i want to create a migration, I'll make sure its just simple. So my go to migration solution is actually laravel zero (laravel CLI only). So far laravel has the most complete yet easy when it comes to database related The minus is we need to keep up yet another repo for our migration. But for my personal experience, it was never an issue
@burionyt
@burionyt Ай бұрын
how is go migrate in comparison to this ?
@anthonygg_
@anthonygg_ Ай бұрын
Its a bit harder to setup. Goose just makes sense
@dandogamer
@dandogamer Ай бұрын
Last time I tried go-migrate it was pretty bad. Because of the order it uses to apply migrations but also it frequently put my migrations into a "dirty" state where I was unable to then apply more migrations or rollback
@joelv4495
@joelv4495 Ай бұрын
@@dandogamer I also don't like that gomigrate only maintains the current schema version id. Could be an issue when multiple people are generating migrations and the migrations hit "out of sequence".
@dirty-kebab
@dirty-kebab Ай бұрын
I wasn't using migration tools, but am working on a big refactor and will eventually need to migrate. This is totally useful. Maybe run us through an example? Pls not a 1 hour video tho, even when Prime does it, bro I need to feed my kids 😂
@thoriqadillah7780
@thoriqadillah7780 Ай бұрын
Try to use laravel zero
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 93 М.
How database migrations work when using Drizzle ORM
6:27
Web Dev Cody
Рет қаралды 5 М.
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 13 МЛН
Эффект Карбонаро и бесконечное пиво
01:00
История одного вокалиста
Рет қаралды 6 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,8 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 71 МЛН
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 65 М.
Golang's Mocking Techniques - Kyle Yost | hatchpad Huddle
41:20
The Most Efficient Struct Configuration Pattern For Golang
11:10
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 932 М.
How do THESE guys use Linux? - Linux for Newbs EP 0
10:06
typecraft
Рет қаралды 140 М.
A Practical Example How To Use Interfaces In Golang
14:42
Anthony GG
Рет қаралды 18 М.
CSS Is 2.4x Slower Than Inline Styles (Oh No...)
19:39
Theo - t3․gg
Рет қаралды 71 М.
How to create your Golang APIs from now on with v1.22
12:51
Why Golang's IO.READER Is More Important Than You Think
6:38
Anthony GG
Рет қаралды 11 М.
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 13 МЛН