Skip to content

Implement custom driver in rocket_db_pools #2544

Discussion options

You must be logged in to vote

Have you taken a close look at the implementing part of the docs? It should be sufficient to guide you to a working implementation. Once you implement Pool for some type, you can use it as the target of the database attribute.

Here are some more guidelines:

  • rocket_db_pools exists to integrate existing async pools with Rocket applications. As such, you'll need an existing async database pool for your database of choice. In your case, this means you need to find or write an async connection pool for Oracle. If the pool isn't async (and instead syncchronous), you'll need to use rocket_sync_db_pools instead.
  • You implement Pool for the pool type. If you're using a pool from another crate, you…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@d-ufrik
Comment options

Answer selected by d-ufrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants