{"id":26836655,"url":"https://github.com/rursprung/r2d2-oracle","last_synced_at":"2025-04-30T13:28:13.390Z","repository":{"id":35143146,"uuid":"212391737","full_name":"rursprung/r2d2-oracle","owner":"rursprung","description":"an r2d2 adapter for the oracle database","archived":false,"fork":false,"pushed_at":"2024-05-30T15:50:01.000Z","size":81,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T13:28:08.840Z","etag":null,"topics":["connection","database","oracle","pool","r2d2","rust","sql"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rursprung.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-02T16:42:11.000Z","updated_at":"2024-06-07T13:52:11.000Z","dependencies_parsed_at":"2023-12-18T17:12:23.063Z","dependency_job_id":"7c64dcbb-d138-44bd-bf28-996dc7b2d721","html_url":"https://github.com/rursprung/r2d2-oracle","commit_stats":{"total_commits":50,"total_committers":4,"mean_commits":12.5,"dds":0.09999999999999998,"last_synced_commit":"c00b35b84b13dd0aea2f6d3c134d25ff32311734"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rursprung%2Fr2d2-oracle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rursprung%2Fr2d2-oracle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rursprung%2Fr2d2-oracle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rursprung%2Fr2d2-oracle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rursprung","download_url":"https://codeload.github.com/rursprung/r2d2-oracle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251712186,"owners_count":21631350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connection","database","oracle","pool","r2d2","rust","sql"],"created_at":"2025-03-30T16:28:53.834Z","updated_at":"2025-04-30T13:28:13.366Z","avatar_url":"https://github.com/rursprung.png","language":"Rust","readme":"# r2d2-oracle\n[![CI](https://github.com/rursprung/r2d2-oracle/actions/workflows/CI.yml/badge.svg)](https://github.com/rursprung/r2d2-oracle/actions/workflows/CI.yml)\n[![Crates.io](https://img.shields.io/crates/v/r2d2-oracle)](https://crates.io/crates/r2d2-oracle)\n![Crates.io](https://img.shields.io/crates/l/r2d2-oracle)\n[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)\n\nThe documentation can be found on [docs.rs](https://docs.rs/r2d2-oracle/).\n\nOracle support for the r2d2 connection pool.\nThis fits in between the [r2d2](https://crates.io/crates/r2d2) connection manager and [oracle](https://crates.io/crates/oracle) database driver crates.\n\n## Usage\nSee the documentation of r2d2 for the details on how to use the connection pool.\n\n```rust\nuse std::thread;\nuse r2d2_oracle::OracleConnectionManager;\n\nfn main() {\n    let manager = OracleConnectionManager::new(\"user\", \"password\", \"localhost\");\n    let pool = r2d2::Pool::builder()\n         .max_size(15)\n         .build(manager)\n         .unwrap();\n    \n    for _ in 0..20 {\n        let pool = pool.clone();\n        thread::spawn(move || {\n            let conn = pool.get().unwrap();\n            // use the connection\n            // it will be returned to the pool when it falls out of scope.\n        });\n    }\n}\n```\n\nIf you want to use chrono data types, enable the `chrono` feature:\n\n```toml\n[dependencies]\nr2d2-oracle = { version = \"0.2.0\", features = [\"chrono\"] }\n```\n\n## Changelog\nFor the changelog please see the dedicated [CHANGELOG.md](CHANGELOG.md).\n\n## Current Status of the Crate \u0026 Roadmap to v1.0.0\nThis is the initial release of the crate and has not yet been proven in production. Nevertheless: the crate is very small so not many problems are expected.\nThe precondition for releasing v1.0.0 is that both `r2d2` and `oracle` have released their v1.0.0.\n\n## Alternatives to `r2d2-oracle`\nYou may also want to consider the following alternatives to this crate, depending on your use-cases:\n* Starting with version 0.5.5 the [`oracle`](https://crates.io/crates/oracle) provides buit-in connection pooling support\n* There is an `async` ([`tokio`](https://crates.io/crates/tokio)-based) version of `r2d2`, [`bb8`](https://crates.io/crates/bb8) and a corresponding [`bb8-oracle`](https://crates.io/crates/bb8-oracle) fork of `r2d2-oracle` exists\n\n## Minimum Supported Rust Version (MSRV)\nThis crate is guaranteed to compile on stable Rust 1.60 and up. It *might*\ncompile with older versions but that may change in any new patch release.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frursprung%2Fr2d2-oracle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frursprung%2Fr2d2-oracle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frursprung%2Fr2d2-oracle/lists"}