Giter VIP home page Giter VIP logo

Comments (6)

philippe2803 avatar philippe2803 commented on July 30, 2024

@qiuqiuqiuqiuqiuqiu
SQLbucket uses SQLAlchemy under the hood, and Oracle can definitely work with it, so you should be able to use Oracle for sure. I set AUTOCOMMIT as default some time ago though but realized this isolation level is definitely not valid for most databases... so this needs to be changed for sure.

I should be able to do a hotfix in the next few days though. Would you like control on the isolation level to use and have it as a parameter?

from sqlbucket.

qiusxn avatar qiusxn commented on July 30, 2024

@philippe2803
Thank you very much for quick response.
Sure, have isolation level as a parameter with default value is a good choice.

Regards Qiu

from sqlbucket.

philippe2803 avatar philippe2803 commented on July 30, 2024

Made a PR yesterday. This is being reviewed as we speak: #25

from sqlbucket.

qiusxn avatar qiusxn commented on July 30, 2024

Hi @philippe2803

How should I configure the connection for oracle db after the change.
I configured the connection to oracle db as below.
connections = { 'db_zx': 'oracle+cx_oracle://xxxxxxx:[email protected]:1521/somedb?isolation_level=READ COMMITTED' }
Still got the error
TypeError: Invalid argument(s) 'isolation_level' sent to create_engine(), using configuration OracleDialect_cx_oracle/NullPool/Engine. Please check that the keyword arguments are appropriate for this combination of components.

Regards Qiu

from sqlbucket.

philippe2803 avatar philippe2803 commented on July 30, 2024

@qiuqiuqiuqiuqiuqiu
The library is not updated yet with the changes. It should be at some point this week. In the meantime, you could try with the current development package. You just need to uninstall sqlbucket and re-install a dev package that I created for test purposes.

pip uninstall sqlbucket
pip install sqlbucket==0.3.3.dev3

READ COMMITTED is the default isolation level for oracle, and therefore will be the one applied by default. So, in your case, you won't need to set isolation level anymore.

from sqlbucket.

philippe2803 avatar philippe2803 commented on July 30, 2024

closing as this has been sorted.

from sqlbucket.

Related Issues (3)

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.