joereynolds / SQHell.vim

An SQL wrapper for vim
MIT License
131 stars 9 forks source link

Handle multiple profiles #13

Closed joereynolds closed 6 years ago

joereynolds commented 6 years ago

For example, if we want to switch from one connection to another, we shouldn't have to do

SetUser
SetPassword
SetHost

Instead we should define a dictionary in this kind of format

let connections = {
    'dev': {
        'user': joe,
        'password': testing
        'host': localhost
    },
    'live': {
        'user': joe,
        'password': fre5t4543"&
        'host': 46.53.221.86
    }
}

Then it should simple be a call like

SQHSwitchConnection live
SQHSwitchConnection dev
joereynolds commented 6 years ago

https://github.com/joereynolds/SQHell.vim/commit/33483350d6256f53f8074388aeefa3d8908f3c77