octosql icon indicating copy to clipboard operation
octosql copied to clipboard

MSSQL Storage

Open kedoska opened this issue 4 years ago • 5 comments

Hi there,

Very interesting tools. Thank you in advance. I see that MSSQL is not in the roadmap.

How could it be implemented? Adding a dedicated datastore would be enough? I could eventually help in the process

kedoska avatar Jul 16 '19 14:07 kedoska

Hey, it would basically be copy pasting the postgres data source and changing the sql generation parts to fit the dialect. MySQL support was added in like half an hour as a copy paste of the postgres package.

cube2222 avatar Jul 16 '19 19:07 cube2222

I've written a small datasource contribution guide if that helps: https://github.com/cube2222/octosql/tree/master/storage

cube2222 avatar Jul 22 '19 16:07 cube2222

@cube2222 this tool has been very useful to me.

Just want to contribute to this feature, though the link to the contribution guide is broken.

Xirui avatar Apr 01 '22 09:04 Xirui

Hey @Xirui, glad to hear that!

OctoSQL doesn't accept contributions right now, as is detailed in the README: https://github.com/cube2222/octosql#contributing

However, since this issue was created, OctoSQL adopted a plugin model for datasources, so you can actually create this yourself, in your own repository.

There's no guide right now, but you should be able to base yourself on the MySQL or PostgreSQL plugins:

  • https://github.com/cube2222/octosql-plugin-mysql (that one should be easier to adapt, as it's based on the standard library database/sql package)
  • https://github.com/cube2222/octosql-plugin-postgres

Happy to help and answer any questions during the process!

cube2222 avatar Apr 01 '22 09:04 cube2222

Thanks @cube2222, I will have a go with that, looks quite straight-forward.

Xirui avatar Apr 02 '22 08:04 Xirui