nvim-dbee: Interactive Database Client Within Neovim

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 28

  • @iatheman
    @iatheman 7 หลายเดือนก่อน +9

    Very nice plugin. It's great to have a lua+go alternative to the already great vim-dadbod.

  • @bassamsaleh8034
    @bassamsaleh8034 9 หลายเดือนก่อน +5

    thank you. very helpful. a video on configuring the plugin from a to z and with connecting to a database, would be nice

  • @TobiasValdez-zk5qq
    @TobiasValdez-zk5qq 8 หลายเดือนก่อน +2

    Thanks, this is exactly what I was searching for!

  • @Rubens-p9b
    @Rubens-p9b 4 หลายเดือนก่อน

    This is a game changer, at least for me!!!Great work!!!

  • @vicca4671
    @vicca4671 6 หลายเดือนก่อน

    This is great, thank you for this tool and the video. It's really neat!

  • @TlatoaniItzcoatl
    @TlatoaniItzcoatl 6 หลายเดือนก่อน

    you're doing awesome work. I'm excited to try it.

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 6 หลายเดือนก่อน +1

    simple and to the point, thank you :)

  • @felipej.oribeiro6700
    @felipej.oribeiro6700 3 หลายเดือนก่อน

    Great plugin. Thank you o/

  • @s0me3
    @s0me3 6 หลายเดือนก่อน +2

    Thanks for overview. I really like export options, that's a killer feature.
    Is there a way to use dbee with current working directory?
    I prefer to store my sql snippets in a project folder rather than having a system-wide notes storage.

    • @cheesed_up
      @cheesed_up  6 หลายเดือนก่อน +1

      You can maybe try setting the `config.editor.directory` parameter to cwd - search the docs how to get cwd from lua (I think it's something like `vim.fn.getcwd()`.

  • @diniomar3965
    @diniomar3965 หลายเดือนก่อน

    Hey nice plugin.
    In the example you showed, it uses docker to enter the database username and password. How do i enter username and password for a remote database not based on Docker?

  • @夕阳-n1h
    @夕阳-n1h 6 หลายเดือนก่อน

    Amazing work

  • @henrychan5225
    @henrychan5225 8 หลายเดือนก่อน +1

    Sir may i ask, how can nvim dbee connect to a docker postgres database. How should define the url.

    • @cheesed_up
      @cheesed_up  6 หลายเดือนก่อน

      This should give you a pretty good understanding of how postgres urls are structured - www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING

  • @RuanLabuschagne-i5v
    @RuanLabuschagne-i5v หลายเดือนก่อน

    Im probably being dumb, but what button do you press to execute the query? learning nvim and i just can't get the query to execute

  • @FroggyTheGamer
    @FroggyTheGamer 15 วันที่ผ่านมา

    How do i run the query? do i need to create a keymap or am i missing something?

    • @FroggyTheGamer
      @FroggyTheGamer 15 วันที่ผ่านมา

      nvm i got my keymap setup!

    • @FroggyTheGamer
      @FroggyTheGamer 15 วันที่ผ่านมา

      if anyone else needs this, heres my keymap:
      vim.keymap.set("v", "r", '"vy:lua require("dbee").execute(vim.fn.getreg("v"))', { desc = "Run SQL" })
      this will copy the selected text into register v and use dbee api to execute the query.

  • @wwalsh0351
    @wwalsh0351 6 หลายเดือนก่อน

    rad. if we're connecting to an existing application db with a large model, does this already handle introspection in any way or would it be preferable for the user to perform introspection manually via other tools. ie dumping sql object definitions to disk via sqlpackage.exe in mssql. and navigating them using file search tools which are already about as robust as possible in nvim

    • @cheesed_up
      @cheesed_up  4 หลายเดือนก่อน

      Well, I'll say this:
      I made dbee to be just a dumb "select text and that on the database" and then just retrieve results in neovim.
      Since then, I did a refactor of the entire codebase, so that the backend could be used as a library with any frontend (but the only frontend that currently exists is that for neovim). And that backend is pretty powerful in terms of gathering large results.
      To answer your question:
      You should be able to retrieve pretty big results from dbee and then use the api to store the result to a csv or json file. But if you want to create a backup, which you want to be able to restore later, go with other tools (e.g. sqlpackage.exe or psql).

  • @Rubens-p9b
    @Rubens-p9b 4 หลายเดือนก่อน

    Hi!I Download the plugin and it runs nicely, however when a create a connection a can't enter the connection created, i can delete or edit, but i cannot enter, do you have any tips about it?

    • @cheesed_up
      @cheesed_up  3 หลายเดือนก่อน

      Hard to tell - I recommend you open an issue on github - maybe someone will be able to help you :D

  • @Cameronbailey17
    @Cameronbailey17 6 หลายเดือนก่อน +1

    What font are you using?

    • @cheesed_up
      @cheesed_up  6 หลายเดือนก่อน +1

      Comic code (tosche.net/fonts/comic-code) - here is the video that sold me on it :) - th-cam.com/video/1zvWXT53puQ/w-d-xo.html

    • @Cameronbailey17
      @Cameronbailey17 6 หลายเดือนก่อน

      @@cheesed_up Thanks!

    • @Cameronbailey17
      @Cameronbailey17 6 หลายเดือนก่อน

      @@cheesed_up Are you using lualine? How do you get the distinct bubbles like that it looks great!

    • @takennmc
      @takennmc 3 หลายเดือนก่อน

      @@Cameronbailey17 looks like a minimal lualine on top of tmux

  • @elliotalderson9517
    @elliotalderson9517 9 หลายเดือนก่อน +1

    very nice, neovim is definitely better