All Projects → NLKNguyen → pipe-mysql.vim

NLKNguyen / pipe-mysql.vim

Licence: MIT license
MySQL client runner to query MySQL / Amazon Aurora / MariaDB database in Vim interactively (also remotely)

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to pipe-mysql.vim

Pomelo.entityframeworkcore.mysql
Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector
Stars: ✭ 2,099 (+4015.69%)
Mutual labels:  mariadb, aurora
local-docker-db
A bunch o' Docker Compose files used to quickly spin up local databases.
Stars: ✭ 251 (+392.16%)
Mutual labels:  mariadb
data-api-suite
Monorepo that includes libraries, Serverless Framework plugins and development tools to simplify and enhance the development, deployment and use of the Data API for Aurora Serverless.
Stars: ✭ 23 (-54.9%)
Mutual labels:  aurora
LEMPer
LEMPer Stack is terminal-based LEMP / LNMP installer and manager for Debian & Ubuntu cloud or virtual server (vps) and on-premise (bare metal).
Stars: ✭ 171 (+235.29%)
Mutual labels:  mariadb
swaggerql
Easily and simply convert SQL database into a REST API with Swagger documentation
Stars: ✭ 40 (-21.57%)
Mutual labels:  mariadb
tengo
Go La Tengo: a MySQL automation library
Stars: ✭ 27 (-47.06%)
Mutual labels:  mariadb
lib mysqludf redis
Provides Mysql UDF commands to synchronize data from Mysql to Redis.
Stars: ✭ 20 (-60.78%)
Mutual labels:  mariadb
easydock
Dockerize your PHP apps ;)
Stars: ✭ 52 (+1.96%)
Mutual labels:  mariadb
r2dbc-migrate
R2DBC database migration tool & library
Stars: ✭ 83 (+62.75%)
Mutual labels:  mariadb
EasyProfiler
This repo, provides query profiler for .Net
Stars: ✭ 99 (+94.12%)
Mutual labels:  mariadb
Pastebin
Modern pastebin written in golang
Stars: ✭ 111 (+117.65%)
Mutual labels:  mariadb
aws-serverless-nextcloud
moved - https://github.com/f7o/aws-serverless-nextcloud
Stars: ✭ 78 (+52.94%)
Mutual labels:  aurora
matador
Take your appclication by the horns
Stars: ✭ 59 (+15.69%)
Mutual labels:  mariadb
ABB Aurora Solar Inverter Library
Arduino, esp32 and esp8266 library for ABB (ex PowerOne) Aurora Inverter, implement a full methods to retrieve data from the Inverter via RS-485
Stars: ✭ 22 (-56.86%)
Mutual labels:  aurora
MirrorCache
Download Redirector
Stars: ✭ 24 (-52.94%)
Mutual labels:  mariadb
phpvibe-lite
PHPVibe Open source video CMS / Video Sharing CMS / Youtube Api v3 / Video Embeds
Stars: ✭ 71 (+39.22%)
Mutual labels:  mariadb
wordpress-ansible-playbook
An ansible playbook for setting up production and staging WordPress site(s). Nginx, php7.3, ssl ready (via letsencrypt), mariadb.
Stars: ✭ 85 (+66.67%)
Mutual labels:  mariadb
nest-rest-typeorm-boilerplate
🍱 backend with nest (typescript), typeorm, and authentication
Stars: ✭ 142 (+178.43%)
Mutual labels:  mariadb
DBD-MariaDB
Perl MariaDB driver
Stars: ✭ 28 (-45.1%)
Mutual labels:  mariadb
gisjogja
GISJOGJA - aplikasi web based sistem informasi geografis (SIG) / GIS wisata kota JOGJA - www.firstplato.com
Stars: ✭ 17 (-66.67%)
Mutual labels:  mariadb

pipe-mysql.vim

License: ISC Patreon donate button PayPal donate button Amazon donate button

Buy Me A Coffee

Easy-to-use MySQL client for Vim

Based on pipe.vim

Features

  • Work with MySQL database at local (with respect to Vim) or at remote machine (via SSH)
  • No need to have MySQL installed at local if you plan to execute MySQL statements at remote machine
  • Edit MySQL script locally, execute at remote machine, and get result back in Vim's Preview window at local
  • Execute a whole MySQL script file, a single line, or a block of MySQL statements
  • Set SSH remote and MySQL access on the fly; or use preset for frequently used login info
  • Each buffer has independent login info to database
  • Easily switch database on the fly
  • Include common queries to operate on the target where the cursor is at

Install

Using Vundle plugin manager:

Plugin 'NLKNguyen/pipe.vim' "required
Plugin 'NLKNguyen/pipe-mysql.vim'

Default Keymaps

The plugin comes with default keymaps for MySQL filetype. To turn off, add let g:pipemysql_no_mappings = 0 to your .vimrc file

Set Actions

Mode Key Action Function call
Normal <leader>sr Set remote info (SSH) g:PipeMySQL_SetRemote()
Normal <leader>sa Set MySQL access info g:PipeMySQL_SetAccess()
Normal <leader>sd Set database to use g:PipeMySQL_SetDatabase()
Normal <leader>se Set all fields empty g:PipeMySQL_SetEmpty()
Normal <leader>sp Select preset info* g:PipeMySQL_SelectPreset()

* See Use Preset Login Info for how to store preset login info in .vimrc file

Run Actions

Mode Key Action Function call
Normal <leader>rf Run MySQL script file g:PipeMySQL_RunFile()
Normal <leader>rs Run statement on the current line (table view) g:PipeMySQL_RunLine('table')
Visual <leader>rs Run selected block of statements (table view) g:PipeMySQL_RunBlock('table')
Normal <leader>rS Run statement on the current line (batch view) g:PipeMySQL_RunLine('batch')
Visual <leader>rS Run selected block of statements (batch view) g:PipeMySQL_RunBlock('batch')
Normal <leader>rc Run custom statement (prompt) g:PipeMySQL_RunCustom()

Common Actions

Mode Key Action Function call
Normal <leader>dl List databases g:PipeMySQL_DatabaseListing()
Normal <leader>ds Switch database g:PipeMySQL_DatabaseSwitching()
Normal <leader>tl List tables g:PipeMySQL_TableListing()
Normal <leader>ts Select * from table at cursor g:PipeMySQL_TableSelectAll()
Normal <leader>td Describe table at cursor g:PipeMySQL_TableDescription()
Normal <leader>tD Show create SQL definition of table at cursor g:PipeMySQL_TableDefinition()

Use Preset Login Info

In .vimrc you can store frequently used login info like the below snippet. The description value is what you see in the list of preset info in order to select. All other fields are optional. They can be set on the fly using the Set Actions; therefore, you don't have to store sensitive information like password in .vimrc if you don't want to.

let g:pipemysql_login_info = [
                             \ {
                             \    'description' : 'my server 1',
                             \    'ssh_address' : 'root@server1',
                             \    'ssh_port' : '',
                             \    'mysql_hostname' : 'somehostname',
                             \    'mysql_username' : 'my_username',
                             \    'mysql_password' : 'my_password',
                             \    'mysql_database' : 'cs332h20'
                             \ },
                             \ {
                             \    'description' : 'my server 2',
                             \    'ssh' : 'root@server2',
                             \    'mysql_hostname' : 'somehostname',
                             \    'mysql_username' : 'my_username',
                             \ },
                             \ {
                             \    'description' : 'my local',
                             \    'mysql_hostname' : 'localhost',
                             \ }
                           \ ]

👋 Author

👤 Nikyle Nguyen

Twitter: NLKNguyen

🤝 Contributing

Give a ⭐️ if this project helped you working with MySQL in Vim seamlessly!

Contributions, issues and feature requests are welcome! Feel free to check issues page.

🙇 Your support is very much appreciated

I create open-source projects on GitHub and continue to develop/maintain as they are helping others. You can integrate and use these projects in your applications for free! You are free to modify and redistribute anyway you like, even in commercial products.

I try to respond to users' feedback and feature requests as much as possible. Obviously, this takes a lot of time and efforts (speaking of mental context-switching between different projects and daily work). Therefore, if these projects help you in your work, and you want to encourage me to continue create, here are a few ways you can support me:

  • 💬 Following my blog and social profiles listed above to help me connect with your network
  • ⭐️ Starring this project and sharing with others as more users come, more great ideas arrive!
  • ☘️ Donating any amount is a great way to help me work on the projects more regularly!

Buy Me A Coffee

Thanks to all contributors who make pipe-mysql.vim great! ❤️

📝 License

Copyright © 2015 - 2020 Nikyle Nguyen

The project is MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].