nvim-dbee: Interactive Database Client Within Neovim

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 22

  • @iatheman
    @iatheman 3 місяці тому +6

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

  • @bassamsaleh8034
    @bassamsaleh8034 5 місяців тому +2

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

  • @s0me3
    @s0me3 3 місяці тому +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  3 місяці тому +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()`.

  • @TobiasValdez-zk5qq
    @TobiasValdez-zk5qq 5 місяців тому +2

    Thanks, this is exactly what I was searching for!

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 2 місяці тому +1

    simple and to the point, thank you :)

  • @Rubens-p9b
    @Rubens-p9b 20 днів тому

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

  • @vicca4671
    @vicca4671 2 місяці тому

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

  • @TlatoaniItzcoatl
    @TlatoaniItzcoatl 3 місяці тому

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

  • @henrychan5225
    @henrychan5225 5 місяців тому +1

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

    • @cheesed_up
      @cheesed_up  3 місяці тому

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

  • @wwalsh0351
    @wwalsh0351 2 місяці тому

    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  Місяць тому

      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 19 днів тому

    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  16 днів тому

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

  • @夕阳-n1h
    @夕阳-n1h 2 місяці тому

    Amazing work

  • @Cameronbailey17
    @Cameronbailey17 3 місяці тому +1

    What font are you using?

    • @cheesed_up
      @cheesed_up  3 місяці тому +1

      Comic code (tosche.net/fonts/comic-code) - here is the video that sold me on it :) - ua-cam.com/video/1zvWXT53puQ/v-deo.html

    • @Cameronbailey17
      @Cameronbailey17 3 місяці тому

      @@cheesed_up Thanks!

    • @Cameronbailey17
      @Cameronbailey17 3 місяці тому

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

    • @takennmc
      @takennmc 10 днів тому

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

  • @elliotalderson9517
    @elliotalderson9517 5 місяців тому +1

    very nice, neovim is definitely better