Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-dadbod integration for applications using Ecto #481

Merged
merged 2 commits into from Mar 13, 2019

Conversation

@hauleth
Copy link
Contributor

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.

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
@jbodah

jbodah approved these changes Mar 12, 2019

@jbodah

This comment has been minimized.

Copy link
Contributor

commented Mar 12, 2019

Looks good; could you add instructions to the README?

@jbodah

jbodah approved these changes Mar 13, 2019

@jbodah jbodah merged commit d58efec into elixir-editors:master Mar 13, 2019

@hauleth hauleth deleted the hauleth:add-dadbod-integration branch Jul 15, 2019

kelvinst added a commit to kelvinst/vim-elixir that referenced this pull request Aug 21, 2019

vim-dadbod integration for applications using Ecto (elixir-editors#481)
* 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

This comment has been minimized.

Copy link

commented Aug 22, 2019

@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

This comment has been minimized.

Copy link
Contributor Author

commented Aug 22, 2019

@skbolton I will update docs after weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.