Vim Dadbod - My Favorite SQL Plugin

  Рет қаралды 22,017

TJ DeVries

TJ DeVries

18 күн бұрын

Continuing on with my neovim config rewrite, we've got a video about vim dadbod
-- Dad Bod Plugins
return {
"tpope/vim-dadbod",
"kristijanhusak/vim-dadbod-completion",
"kristijanhusak/vim-dadbod-ui",
}
Configuration: github.com/tjdevries/config.nvim
Dadbod: github.com/tjdevries/config.n...
Links
Twitch: / teej_dv
Twitter: / teej_dv
Github: github.com/tjdevries
Neovim: BTW
#neovim #programming #lua

Пікірлер: 100
@mbsurfer
@mbsurfer 17 күн бұрын
04:23 "Which is one of, I think, the nicest farts - TJ, 2024
@teej_dv
@teej_dv 17 күн бұрын
LOL
@rainerborene
@rainerborene 17 күн бұрын
Just joined your membership. Keep rocking!
@mrmaniac9905
@mrmaniac9905 17 күн бұрын
I love it. Reject modernity. SQL >>> &&& NVIM>>>>>
@emiliano19746
@emiliano19746 17 күн бұрын
Oh, boy, your videos are awesome. I use dadbod from a long time, nonetheless the video is great (the bunch of minutes length works really well)! Thank you so much. Little feedback: sometimes could be useful see the file path at right.
@thijsyo
@thijsyo 16 күн бұрын
Thanks for circling this back to the bigger group, TJ! Feeling really good about our Q2 OKR's, especially once we start to leverage gen-AI. By the way, Chris on floor 6 has brought donuts today (you didn't hear this from me😉)
@JefCollier
@JefCollier 15 күн бұрын
This made my day.
@IntelligentStaffingSystems
@IntelligentStaffingSystems 14 күн бұрын
I'm officially niche having absolutely enjoyed this video and understood everything you said. I feel like I'm amongst some of the coolest people on Earth.
@wesleychaffin4029
@wesleychaffin4029 17 күн бұрын
I was wondering what this plugin was in an earlier video! Thanks for sharing
@boreddad420
@boreddad420 17 күн бұрын
dadbod might be the best plugin name of all time
@fredlthefred
@fredlthefred 17 күн бұрын
this is fantastic - thx TJ for the tipp!!!
@PainfulBBQ
@PainfulBBQ 16 күн бұрын
thank you so much, it looks really cool. One thing I’d hoped you would cover is configuring the connection between the plugin and something like Postgresql or Mysql
@xthebumpx
@xthebumpx 16 күн бұрын
SQL (specifically MS Sql Server) is one of my biggest pain points with Neovim. Dadbod/Dadbod-ui/Dadbod-ui-completion do what they do well, but the completion experience is still pretty limited compared even to vscode let alone something like Datagrip.
@hernancervera6621
@hernancervera6621 16 күн бұрын
I use DBeaver with the Vrapper (Vim emulation) plugin and it has worked very nicely for me. There is some limited config that can be provided in VimScript. I have not used Datagrip but since that is from JetBrains I imagine the plugin IdeaVim is available there
@kristijanhusak
@kristijanhusak 16 күн бұрын
Nice video TJ, I was wondering where are all those stars coming from :) I'll link this video in the readme on both plugins.
@teej_dv
@teej_dv 16 күн бұрын
hahaha wonderful plugin and well deserved!!
@TlatoaniItzcoatl
@TlatoaniItzcoatl 17 күн бұрын
man the results output for sqlite is so pretty. I bet MySQL and PosgreSQL look great too. Unfortunately MS SQL Server looks terrible. It's the only reason I don't really use it, that, plus the completion is not robust enough to handle cross database queries and or good enough for large sql scripts. But it's great for simple dml or ddl stuff.
@user-xd5gd4pc9h
@user-xd5gd4pc9h 16 күн бұрын
LOVE Tj! Feature I want is the comments string to work with comments.nvim plugin. So `gcc` or other shortcuts works fine in sql file too. Thanks Tj!
@akshettrj
@akshettrj 17 күн бұрын
The man delivered
@mohitkumar-jv2bx
@mohitkumar-jv2bx 17 күн бұрын
Man 2 videos back to back!!! BTW, Expect a reply in your mail, in a week when i am done adding dadBod.
@florentcigolotti8023
@florentcigolotti8023 17 күн бұрын
Very nice video! I have been using it in my day to day job since a long time, so great experience so far. My preferred keymap is to run a query under the cursor with something like rq (for run query) set to "vipS". It selects the current paragraph en run the default DBUI_ExecuteQuery binded on S by vim-dadbod-ui. With that it is awesome! No more needs to comment SQL queries
@noomondai
@noomondai 16 күн бұрын
Love these vids please keep them coming teej
@teej_dv
@teej_dv 16 күн бұрын
will do :) another one went live today!
@mikeyim9985
@mikeyim9985 16 күн бұрын
Awesome plugin will use today!
@teej_dv
@teej_dv 16 күн бұрын
LETS GOOOOO
@steveaguay
@steveaguay 17 күн бұрын
I gotta give it another try. That looked like a great experience. My sql viewer has been gui based forever and I find it hard to switch off dbeaver. It's so good.
@m47h4r
@m47h4r 9 күн бұрын
What would we do if tj didn't post actually useful amazing videos! THANK YOU!
@daltonyon
@daltonyon 17 күн бұрын
I'll take a look in dadbod because I have been used DBeaver and is heavy, let's do it!! Thanks for the tip
@traap.
@traap. 15 күн бұрын
Nice video. Setting up WSL2 + MSSQL (sadly) + Arch Linux would be entertaining video.
@chrisjames278
@chrisjames278 17 күн бұрын
Great looking plugin. Thanks for the info!
@teej_dv
@teej_dv 17 күн бұрын
No problem 😁
@jackevansevo
@jackevansevo 16 күн бұрын
I knew about Dadbod, but never knew about dadbod-ui. The UI is a gamechanger!
@tomasertola
@tomasertola 17 күн бұрын
This is gold!
@markuslanggeng
@markuslanggeng 17 күн бұрын
oh my.. this plugin is so cool!
@gjermundification
@gjermundification 16 күн бұрын
Fantastic plugin, I will have to learn how to add other data sources for this.
@VarunMehrishi
@VarunMehrishi 16 күн бұрын
Cool, using this with DuckDB should make analysing large csv files a breeze!
@roberfuentesg
@roberfuentesg 15 күн бұрын
Hola Tj gracias por todos tu videos. Sabes he estado buscando algun plugin que pueda hacer lo que hace postman, he intentado con rest.nvim y console.nvim (creo que se llama asi no recuerdo bien) y nunca he podido hacerlos funcionar de la mejor manera. Tienes uno de tu preferencia? Saludos desde Chile.
@ChrisCox-wv7oo
@ChrisCox-wv7oo 17 күн бұрын
Didn't know this was possible. Super neat
@jabawack81
@jabawack81 17 күн бұрын
ok one more plugin to add to my neovim, thanks.
@bugabinga
@bugabinga 17 күн бұрын
I feel this irrational aversion to adding a non-lua plugin to the config. but this one is just too good to pass up xD
@noxalbelnox
@noxalbelnox 17 күн бұрын
great stuff
@TylerTriesTech
@TylerTriesTech 17 күн бұрын
Another great terminal based SQL tool to check out is Harlequin
@xthebumpx
@xthebumpx 16 күн бұрын
Ooh. That looks neat, I need to give it a try. Edit: Tried it. It's really cool. Unfortunately, at work I need completions from multiple databases at the same time, which isn't supported.
@bambitsunami4165
@bambitsunami4165 17 күн бұрын
Really cool
@hamm8934
@hamm8934 17 күн бұрын
Another great db tool i love is pgcli. Its a modern version of psql. Love it
@albert21994
@albert21994 17 күн бұрын
awesome!
@simonlauer9379
@simonlauer9379 17 күн бұрын
uh I have been using that one for a while already. it’s great
@letanoname2966
@letanoname2966 17 күн бұрын
It would be great if you could also cover formatting and connections, especially to 'picky' DBs, like the ones from Oracle Overall, great video! :D
@TankorSmash
@TankorSmash 15 күн бұрын
`:set ft?` prints out the values too. I dunno about cmp, but `` already does buffer completions. Does Cmp do fuzzy search there too maybe?
@spicybaguette7706
@spicybaguette7706 16 күн бұрын
Got that Oracle drip
@lipepaniguel
@lipepaniguel 16 күн бұрын
🤯
@TheMurinDeventa
@TheMurinDeventa 17 күн бұрын
Mine a bit different, I have sqls lsp running when inside dadbod buffer so I have formatting and completion source and other lsp utilities
@teej_dv
@teej_dv 17 күн бұрын
Nice, I might try that out next week
@maladroitthief
@maladroitthief 17 күн бұрын
Mind doing a mongodb setup? I struggled with that last time I looked into DBUI
@Peter-el7fn
@Peter-el7fn 16 күн бұрын
Thanks for all your great content! Have you tried how the completion works with CTES? E.g with my_songs as( select title as song_title , length as duration where artist 'primegean' from theme_songs ) select... (Do the completion pick up the name of the cte and the aliased col names..?
@teej_dv
@teej_dv 16 күн бұрын
I haven't yet - that'd be a good test case (the buffer completion at least would work OK)
@Peter-el7fn
@Peter-el7fn 15 күн бұрын
@@teej_dv I tried it and it seems like it is the buffer that handles it - i.e. columns in the cte does show up in the completion but it does not seem to be able to distinguish the scope (the cte) of the column.
@driden1987
@driden1987 17 күн бұрын
Is this a Take Tuesday? Is it back? Going to get dadbod, looks awesome
@BorisBrodski
@BorisBrodski 16 күн бұрын
Can it follow foreign key constraints? I mean, jump from the id in the result column to the corresponding row in another table?
@afroboi7454
@afroboi7454 14 күн бұрын
man, I must really say,, neovim is soooooo fuckin awesome.
@sarojregmi200
@sarojregmi200 17 күн бұрын
Great just was looking for a sql client in linux, found it in vim. Damn!! what a coincidence.
@datoxx7977
@datoxx7977 17 күн бұрын
Nice
@patrickstival6179
@patrickstival6179 16 күн бұрын
It would be nice if it was possible to do ctrl + enter to execute the query under cursor. Having to comment out other sql staments feels a bit awkward
@martinroa
@martinroa 16 күн бұрын
I didn't know about Dadbod. I've been using vim sqlls for this purpose. Any idea of how these two compare?
@RoadsterRhapsody
@RoadsterRhapsody 17 күн бұрын
Im a little bit confused about this plugin. I already tried it about a month ago in this set of config and its ideal for write fast querries. But for serious company work i rather use dbeaver or access. Am i wrong here?
@teej_dv
@teej_dv 17 күн бұрын
Can't really be wrong about something that's personal preference 😁 if you like it, I wouldn't switch!
@andrewiglinski148
@andrewiglinski148 13 күн бұрын
I'm so curious as to whether or not you put on the corporate fit just for this video...
@DaibertDiego
@DaibertDiego 15 күн бұрын
I would love if they release the Snowflake support for this plugin.
@josecarloscirqueirajunior2914
@josecarloscirqueirajunior2914 17 күн бұрын
nice plugin
@TheTmLev
@TheTmLev 17 күн бұрын
What about `dbee`?
@beest_
@beest_ 15 күн бұрын
I like the plug-in very much, but I'm not a VIM/newVIM user. know the basics but never configured it. To add more complexity I'm on a windows system. Any Instructions? Help is very much apprecieated.
@kowalkem
@kowalkem 16 күн бұрын
What about dbee? Seen it in your config before ;)
@teej_dv
@teej_dv 16 күн бұрын
I tried it, but the completion experience wasn't as good (at least for now)
@kowalkem
@kowalkem 5 күн бұрын
@@teej_dv sqls works for completion quite well 👌made a simple config to read a connection config file from the repo on LSP client start. Happy with it so far 😁
@Cethris
@Cethris 17 күн бұрын
Would be nice to see how to add a db to the list in the video. But good stuff anyway
@vaisakhkm783
@vaisakhkm783 16 күн бұрын
This could have been an email.... do you have a newsletter???
@RazoBeckett.
@RazoBeckett. 16 күн бұрын
you know what i am going to say "remember me ?"
@teej_dv
@teej_dv 16 күн бұрын
yes razo, of course :)
@neeeeni
@neeeeni 14 күн бұрын
I missing docker support
@HarshKumar-kv3xs
@HarshKumar-kv3xs 16 күн бұрын
been using dbeaver for years, time to switch
@teej_dv
@teej_dv 16 күн бұрын
haha heard a lot of people say that in the comments, had never heard of it before
@cattohappy9263
@cattohappy9263 17 күн бұрын
What's happening? Two videos in a row?
@qwfp
@qwfp 16 күн бұрын
Of course it's from TPope. Who else could make something so great? (Other than TJ, of course)
@teej_dv
@teej_dv 16 күн бұрын
haha tpope inspired me to write plugins, so probably wouldn't have written any if he never did!
@qwfp
@qwfp 16 күн бұрын
@@teej_dv we're all standing on the shoulders of giants
@simonlauer9379
@simonlauer9379 17 күн бұрын
imagine the suffering of dbeaver plebs 😄
@SayfSentinel
@SayfSentinel 17 күн бұрын
No more pgadmin for me since i discovered this plugin
@ryanvelbon
@ryanvelbon 17 күн бұрын
lowercase SQL keywords? ... HARAM
@Lars-ce4rd
@Lars-ce4rd 16 күн бұрын
Thanks for those API keys, please don't revoke them. :)
@Lars-ce4rd
@Lars-ce4rd 16 күн бұрын
gotcha
@teej_dv
@teej_dv 16 күн бұрын
o o f
@Lars-ce4rd
@Lars-ce4rd 15 күн бұрын
Ultimate smartass attention seeker (this guy)
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars 17 күн бұрын
.
@mitchbet
@mitchbet 16 күн бұрын
Downvoted, sql config should be all caps
@teej_dv
@teej_dv 16 күн бұрын
you're correct, my apologies
tree-sitter explained
15:00
TJ DeVries
Рет қаралды 67 М.
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 105 М.
Chips evolution !! 😔😔
00:23
Tibo InShape
Рет қаралды 42 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 7 МЛН
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 14 МЛН
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 61 М.
Automatically Execute *Anything* in Nvim
11:03
TJ DeVries
Рет қаралды 65 М.
ThePrimeagen Hacks My Productivity
3:30
Scott Macchia
Рет қаралды 31 М.
I Rewrote My Entire Neovim Config...
11:09
TJ DeVries
Рет қаралды 31 М.
but what is 'a lifetime?
12:20
leddoo
Рет қаралды 57 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 256 М.
The magic of Rust's type system
9:01
Let's Get Rusty
Рет қаралды 69 М.
5 Tips To Write Better Python Functions
15:59
Indently
Рет қаралды 81 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 131 М.
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 8 МЛН
⌨️ Сколько всего у меня клавиатур? #обзор
0:41
Гранатка — про VR и девайсы
Рет қаралды 652 М.
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 19 М.