-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for MSSQL #66
Comments
There is no current option for mssql.
|
This is literally the only thing holding me back from using Crystal in production at work. I have several legacy databases I need to support that are in MSSQL. Lacking the MSSQL driver is forcing me to use Golang which is ok but I would definitely prefer to be using Crystal. Especially when it comes to the database api, I think Crystal offers much nicer syntax compared to Go. I looked into pulling fresh nightly copies of data from MSSQL to MYSQL but inevitably someone complains about stale data and its too costly to be pulling the full set more frequently during the day. I am no expert but could I possibly link the MSSQL and MYSQL databases and then query out the MSSQL data through MYSQL or do linked servers not function the way I am expecting? |
Crystal on Windows is in progress, so, I think a MSSQL binding would be useful, I will try to do something. 😄 (I hope keep my smile) @fridgerator Did you try to create a MSSQL binding before? how was that? |
@faustinoaq No I never tried to do it in crystal. I recently had to connect a rails app to a legacy MSSQL server, and used tiny_tds (mentioned above). It was an unpleasant experience. |
Implementing a binding to freetds will not work, because a call to the library will block all fibers in crystal. The ruby binding is using |
Even though I would encourage a protocol implementation directly, I'm not convinced that freetds can't be wrapped. It is possible to have a dedicated thread to handle the calls to the library if that is needed by freetds. I did something like that in https://github.com/bcardiff/crystal-fswatch. I am not familiar with freetds though. |
I started with an implementation of tds in plain crystal |
Hi, currently, MSSQL is available on Linux and is pretty easy to use via docker.
I found nothing related to how connect Crystal to Microsoft SQL Server.
Is possible to create an adapter for MSSQL?
The text was updated successfully, but these errors were encountered: