GithubHelp home page GithubHelp logo

Comments (9)

kubo avatar kubo commented on August 23, 2024 1

OK. I closed this issue.
The next version 0.5.3 will be released this weekend.

from rust-oracle.

kubo avatar kubo commented on August 23, 2024

I tried it and it worked on my local machine. However it is dirty work. I cannot decide its API design now. Well, I'll decide it and release the next version within a few weeks.

from rust-oracle.

daviessm avatar daviessm commented on August 23, 2024

No rush from me. I'm doing this as a hobby project at the moment and trying to narrow down its performance issues. If you want to pre-release a test version I can give it a try.

from rust-oracle.

kubo avatar kubo commented on August 23, 2024

I added REF_CURSOR support to the git master branch.

I have not written documents about it. oracle::sql_type::RefCursor type has four query methods. See this test code also.

Implicit statement results are also supported. See this doc comment.

from rust-oracle.

daviessm avatar daviessm commented on August 23, 2024

I was having a look at this this morning. I use r2d2-oracle for connection pooling and when I link that to 0.5.3-dev of rust-oracle (current git master) it complains about some async methods:

error[E0277]: `*mut oracle::binding::dpiConn` cannot be shared between threads safely
  --> src/lib.rs:76:5
   |
76 |     type Connection = oracle::Connection;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut oracle::binding::dpiConn` cannot be shared between threads safely
   | 
  ::: /home/steven/.cargo/registry/src/github.com-1ecc6299db9ec823/r2d2-0.8.9/src/lib.rs:72:22
   |
72 |     type Connection: Send + 'static;
   |                      ---- required by this bound in `r2d2::ManageConnection::Connection`
   |
   = help: within `oracle::connection::InnerConn`, the trait `Sync` is not implemented for `*mut oracle::binding::dpiConn`
   = note: required because it appears within the type `oracle::connection::InnerConn`
   = note: required because of the requirements on the impl of `Send` for `Arc<oracle::connection::InnerConn>`
   = note: required because it appears within the type `Connection`

error[E0277]: `*mut oracle::binding::dpiConn` cannot be sent between threads safely
  --> src/lib.rs:76:5
   |
76 |     type Connection = oracle::Connection;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut oracle::binding::dpiConn` cannot be sent between threads safely
   | 
  ::: /home/steven/.cargo/registry/src/github.com-1ecc6299db9ec823/r2d2-0.8.9/src/lib.rs:72:22
   |
72 |     type Connection: Send + 'static;
   |                      ---- required by this bound in `r2d2::ManageConnection::Connection`
   |
   = help: within `oracle::connection::InnerConn`, the trait `Send` is not implemented for `*mut oracle::binding::dpiConn`
   = note: required because it appears within the type `oracle::connection::InnerConn`
   = note: required because of the requirements on the impl of `Send` for `Arc<oracle::connection::InnerConn>`
   = note: required because it appears within the type `Connection`

error: aborting due to 2 previous errors

Is this an oversight or are changes needed to r2d2-oracle as well?

from rust-oracle.

kubo avatar kubo commented on August 23, 2024

Thanks for the report. I'll fix it.

It is an incompatible change. The Connection struct implements Sync and Send at 0.5.2. However it doesn't at git master.

from rust-oracle.

kubo avatar kubo commented on August 23, 2024

@daviessm
Fixed. Could you try the latest git master?

from rust-oracle.

daviessm avatar daviessm commented on August 23, 2024

Yes - I can use REF_CURSORs exactly as expected now, thanks. Happy to close this issue.

from rust-oracle.

kubo avatar kubo commented on August 23, 2024

The next version 0.5.3 will be released this weekend.

It is postponed by one week. I'll change structs for lob locator types: oracle::sql_type::Clob and oracle::sql_type::Blob, which are new features in the next version.

from rust-oracle.

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.