kubo / rust-oracle

Oracle driver for Rust
193 stars 43 forks source link

Working with Oracle Advance Queues #52

Open sposnjak-cpot opened 2 years ago

sposnjak-cpot commented 2 years ago

I am looking to hook up the my rust app to oracle database and we use AQ for communication. I can see in the bindings that there are functions for enq/deq and also for subscriptions, but can not find any examples on how to use them or any rust struct in form of a Queue.

Is this not (yet) supported or am I missing something?

kubo commented 2 years ago

It has not been supported yet. I tried it about three years ago and reported https://github.com/oracle/odpi/issues/104. I have not restarted it yet.

kubo commented 2 years ago

I added experimental advanced queuing support. See https://www.jiubao.org/rust-oracle/oracle/aq/index.html. It is available when aq_unstable feature is enabled. It is unstable for the time being.

Add the following dependency in Cargo.toml:

[dependencies]
oracle = { git = "https://github.com/kubo/rust-oracle", features = ["aq_unstable"] }
cjbj commented 2 years ago

@kubo just a FYI that our AQ development team are finalizing a small ODPI-C enhancement to support AQ recipient lists, which is an option for AQ messaging.

sposnjak-cpot commented 2 years ago

Wow! This was quick! I will try it as soon as possible to see if it meets our requirements.

Thank you all.