Skip to content

Conversation

@hauleth
Copy link
Contributor

@hauleth hauleth commented Mar 8, 2019

vim-dadbod is useful library for interacting with databases, this
PR adds support for interacting with applications that are using Ecto
with Ecto.Adapter.Postgres and Ecto.Adapter.MySQL, thanks to that
user can run:

:DB ecto:MyApp.Repo SELECT * FROM foo

And it will open new preview window containing result of the query or
even one can use

:DB ecto:MyApp.Repo

To open interactive shell for DB assigned to given repository.

[vim-dadbod][1] is useful library for interacting with databases, this
PR adds support for interacting with applications that are using Ecto
with `Ecto.Adapter.Postgres` and `Ecto.Adapter.MySQL`, thanks to that
user can run:

    :DB ecto:MyApp.Repo SELECT * FROM foo

And it will open new preview window containing result of the query or
even one can use

    :DB ecto:MyApp.Repo

To open interactive shell for DB assigned to given repository.

[1]: https://github.com/tpope/vim-dadbod
@jbodah
Copy link
Collaborator

jbodah commented Mar 12, 2019

Looks good; could you add instructions to the README?

@jbodah jbodah merged commit d58efec into elixir-editors:master Mar 13, 2019
@hauleth hauleth deleted the add-dadbod-integration branch July 15, 2019 21:09
kelvinst pushed a commit to kelvinst/vim-elixir that referenced this pull request Aug 21, 2019
* feat: vim-dadbod integration for applications using Ecto

[vim-dadbod][1] is useful library for interacting with databases, this
PR adds support for interacting with applications that are using Ecto
with `Ecto.Adapter.Postgres` and `Ecto.Adapter.MySQL`, thanks to that
user can run:

    :DB ecto:MyApp.Repo SELECT * FROM foo

And it will open new preview window containing result of the query or
even one can use

    :DB ecto:MyApp.Repo

To open interactive shell for DB assigned to given repository.

[1]: https://github.com/tpope/vim-dadbod

* docs: include informations about integration in README
@skbolton
Copy link

@hauleth I think your comment on how to use it needs to go in the readme or docs. I had to find this issue in order to learn how to do the dadbod integration

@hauleth
Copy link
Contributor Author

hauleth commented Aug 22, 2019

@skbolton I will update docs after weekend.

@oliverswitzer
Copy link

@skbolton Hi, was this ever added to the docs? I can't seem to find anything about it.

@hauleth
Copy link
Contributor Author

hauleth commented Jan 29, 2022

@oliverswitzer I do not think so. The only documentation is the mention in the README. I will try to write something today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants