sasha-alias / sqltabs

Rich SQL client for Postgresql, MySQL, MS SQL, Amazon Redshift, Google Firebase (Firestore)
https://www.sqltabs.com
GNU General Public License v3.0
803 stars 57 forks source link

Submission of MySQL Connector Support #74

Closed poorlymac closed 7 years ago

poorlymac commented 7 years ago

Hi,

Thanks for a great tool !!! I have taken a run at MySQL support and its working fairly well, the issues are:

Also to get it in you need to add: add "mysql2": "^1.1.2", to package.json add var mysql = require('./connectors/mysql/Database.js'); to Executor.js add } else if (connstr.indexOf('mysql://') == 0){ var db = mysql; to Executor.js in _getConnector

Is there any chance you get this into the next release ?

CHEERS Paul mysql.zip

sasha-alias commented 7 years ago

Hi, that's great! Thank you very much! I will take a look and include it into next release for sure.

PS for easier contribution it's better to make a pull request https://help.github.com/articles/creating-a-pull-request-from-a-fork/

sasha-alias commented 7 years ago

I have refactored the submission a bit. So now it supports

Also I created a separate renderer for MySQL so the objects information can be totally different than in Postgres, thus gives a bit more flexibility. Before release it would be nice to have more Database Info bits, like constraints and indexes on tables etc... I'm not going to release next few week so there is time. Any testing appreciated as well as further submissions. Thank you very much!

poorlymac commented 7 years ago

Hi,

Thats brilliant thanks, I will test. I also have it now in GitHub desktop as suggested and will try and create some time to add in the missing Database info bits. Much appreciated !

CHEERS Paul

poorlymac commented 7 years ago

Hi,

Quick test and its working very well, awesome work!

Also FYI I started trying to add MSSQL support (I am on OSX Sierra) and it is a bit of a nightmare getting a proper stable connection :-(. If you had a play with MSSQL and get connections working properly I would happily do the other dev work. n.b. Like you did for MySQL info you would probably want to do a MSSQL renderer as well. (MSSQL 2016 is currently available in free beta for Linux and works very well)

CHEERS Paul

sasha-alias commented 7 years ago

I started playing with MS SQL, I use tedious driver. I'm able to have a persistent connection and get single query results already. Though the driver looks a bit clumsy... struggling with errors processing and password prompt.

sasha-alias commented 7 years ago

fyi, just pushed MS SQL connector prototype https://github.com/sasha-alias/sqltabs/issues/79

sasha-alias commented 7 years ago

v0.15 released