Coder Social home page Coder Social logo

Comments (11)

dirkjonker avatar dirkjonker commented on May 20, 2024 2

I'll try creating a SQLAlchemy dialect for mssql + turbodbc, should be fairly trivial, (except perhaps for unicode data).

from turbodbc.

dirkjonker avatar dirkjonker commented on May 20, 2024 1

Took me a bit longer than expected (priorities, learning C, etc.) but I have created a very simple SQLAlchemy dialect for turbodbc + SQL Server.

https://github.com/dirkjonker/sqlalchemy-turbodbc

Feel free to fork/clone/report bugs/create pull requests/etc.

from turbodbc.

dirkjonker avatar dirkjonker commented on May 20, 2024 1

@MathMagique of course! Here you go: #66

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024 1

Since the answer to this question is now part of the Readme, and there is initial support for MSSQL with SQLAlchemy, I'll mark this question as resolved.

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

Hi!

Thanks for the question. SQLAlchemy support has not landed yet, so it is not that easy yet.

BUT: My colleague @bjoernmeier already put some work in that. He has even created a pull request for exasol/sqlalchemy-exasol#50, a project which adds a dialect for the Exasolution database. It is probably not as general as one would wish, but it is a start.

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

You would definitely keep your existing FreeTDS driver, though.

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

Short update: The pull request I mentioned above has been accepted.

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

@dirkjonker That would be really awesome! The unicode stuff needs fixing on the turbodbc side, obviously. You could have a look at the codebase of https://github.com/blue-yonder/sqlalchemy_exasol for inspiration. I am not really familiar with that code base, but I suspect a little cargo culting in there ;-).

If you encounter turbodbc issues, please keep reporting them :-)

from turbodbc.

dirkjonker avatar dirkjonker commented on May 20, 2024

Status update on the MSSQL + turbodbc dialect. It works in certain situations but there are still some weird cases with "invalid cursor state" errors and situations where SQLAlchemy is calling rollback without an active transaction, which also raises errors. Those can probably be solved in the dialect, but I'll report if it's actually turbodbc that is causing problems.

As soon as I have something that works reasonably well I'll release an alpha version under MIT license, should be somewhere this week.

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

That sounds great!

from turbodbc.

MathMagique avatar MathMagique commented on May 20, 2024

Excellent news @dirkjonker! Good job!

If you want, you could create a pull request to include a small SQLAlchemy section in the Readme that mentions your efforts and those at https://github.com/blue-yonder/sqlalchemy_exasol. Otherwise I will just add the note myself :-).

from turbodbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.