GitHub - tpope/vim-db: Modern database interface for Vim


32 bookmarks. First posted by tscheer march 2018.


Modern database interface for Vim
vim  plugin  db  database 
march 2018 by tobym
VimDb - Database queries for vim. Looks interesting.
vim  database  sql  PostgreSQL 
march 2018 by lost_in_space
joshuarubin starred tpope/vim-db on
GitHub  from twitter
march 2018 by joshuarubin
An up to date replacement for dbext that I used to use
technology  vim  database 
march 2018 by andy47
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
vim  sql  db  plugin 
march 2018 by cjitlal
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
vim  database  extension 
march 2018 by e2b
Github repo
Name: vim-db
Tagline: Modern database interface for Vim
Homepage: https://www.vim.org/scripts/script.php?script_id=5665
Languages:
Vim script = 28254 bytes

# db.vim

DB is a Vim plugin for interacting with databases. It's a more modern take on
[dbext.vim][], improving on it on the following ways:

* Connections are specified with a single URL, rather than prompting you for
14 separate variables
* All interaction is through invoking `:DB`, not 53 different commands and 35
different maps (omitting many of the more esoteric features, of course)
* Supports a modern array of backends, including NoSQL databases:
- MongoDB
- MySQL
- PostgreSQL
- Redis
- Sqlite
- Your own easily implemented adapter
* Easily configurable based on a project directory (as seen in [rails.vim][],
for example), rather than just globally or in a per-file modeline

## Usage

The `:DB` command has a few different usages. All forms accept a URL as the
first parameter, which can be omitted if a default is configured or provided
by a plugin.

Omit further arguments to spawn an interactive console (like `psql` or
`redis-cli`).

:DB postgresql:///foobar
:DB redis:

If additional arguments are provided, they are interpreted as a query string
to pass to the database. Results are displayed in a preview window.

:DB sqlite:myfile.sqlite3 select count(*) from widgets
:DB redis:/// CLIENT LIST

Give a range to run part or all of the current buffer as a query.

:%DB mysql://root@localhost/bazquux

Use `<` to pass in a filename.

:DB mongodb:///test < big_query.js

There's also a special assignment syntax for saving a URL to a Vim variable
for later use.

:DB g:prod = postgres://user:pass@db.example.com/production_database
:DB g:prod drop table users

A few additonal URL like formats are accepted for interop:

* `:DB jdbc:postgresql://...`
* `:DB dbext:profile_name`
* `:DB dbext:type=PGSQL:host=...`
* `:DB $DATABASE_URL` (with optional [dotenv.vim][] support)

Plugins can provide their own URL handlers as well. For example,
[heroku.vim][] provides support for `heroku:appname` style URLs.

[dbext.vim]: http://www.vim.org/script.php?script_id=356
[dotenv.vim]: https://tpope.io/vim/dotenv.git
[heroku.vim]: https://tpope.io/vim/heroku.git
[rails.vim]: https://tpope.io/vim/rails.git

## Installation

Install using your favorite package manager, or use Vim's built-in package
support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/db.git
vim -u NONE -c "helptags db/doc" -c q

## Promotion

Like db.vim? Star the repository on
[GitHub](https://github.com/tpope/vim-db) and vote for it on
[vim.org](https://www.vim.org/scripts/script.php?script_id=5665).

Love db.vim? Follow [tpope](http://tpo.pe/) on
[GitHub](https://github.com/tpope) and
[Twitter](http://twitter.com/tpope).

## License

Copyright © Tim Pope. Distributed under the same terms as Vim itself.
See `:help license`.
github  programming  github-starred-to-pinboard 
march 2018 by brianyang
joeybaker starred tpope/vim-db

tpope/vim-db

Modern database interface for Vim

Vim script

627

Updated Mar 9
from:IFTTT  from:Github 
march 2018 by joeybaker
tpope/vim-db - a Vim plugin for interacting with databases
from twitter_favs
march 2018 by dnene
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
mongodb  vim  postgresql 
march 2018 by geetarista
RT : remember when i used to make vim plugins well I'M BACK BABY!!!
from twitter
march 2018 by rwarner
remember when i used to make vim plugins well I'M BACK BABY!!!
from twitter_favs
march 2018 by indirect
remember when i used to make vim plugins well I'M BACK BABY!!!
from twitter_favs
march 2018 by jcchurch
remember when i used to make vim plugins well I'M BACK BABY!!!
from twitter_favs
march 2018 by hendry
remember when i used to make vim plugins well I'M BACK BABY!!!
from twitter_favs
march 2018 by assaf