neo4j_testcontainers CI Status Crates.io Docs License: MIT Rust Version: ^1.60.0

Neo4j image for testcontainers.

This image is based on the official Neo4j image. The default user is neo4j and the default password is neo. The default version is 5.

Example

```rust use testcontainers::clients::Cli; use neo4j_testcontainers::Neo4j;

let cli = Cli::default(); let container = docker.run(Neo4j::default()); let uri = Neo4j::uriipv4(&container); let authuser = container.image().user(); let auth_pass = container.image().pass(); // connect to Neo4j with the uri, user and pass ```

Neo4j Version

The version of the image can be set with the NEO4J_VERSION_TAG environment variable. The default version is 5. The available versions can be found on Docker Hub.

The used version can be retrieved with the version method.

Auth

The default user is neo4j and the default password is neo.

The used user can be retrieved with the user method. The used password can be retrieved with the pass method.

Environment variables

The following environment variables are supported:

MSRV

The crate has a minimum supported Rust version (MSRV) of 1.60.0.

A change in the MSRV in not considered a breaking change. For versions past 1.0.0, a change in the MSRV can be done in a minor version increment (1.1.3 -> 1.2.0) for versions before 1.0.0, a change in the MSRV can be done in a patch version increment (0.1.3 -> 0.1.4).

License

Neo4rs is licensed under either of the following, at your option: