[][src]Struct tempdb_cockroach::TempCockroach

pub struct TempCockroach { /* fields omitted */ }

A temporary CockroachDB instance.

Spawns a single-node CockroachDB instance in a subprocess, storing all data in a temporary directory. Both the subprocess and temporary directory are cleaned up when the TempCockroach object goes out of scope.

Methods

impl TempCockroach[src]

pub fn new() -> Result<Self, Box<dyn Error>>[src]

Create a new temporary CockroachDB instance.

pub fn url(&self) -> &String[src]

Get the database connection string.

Trait Implementations

impl Drop for TempCockroach[src]

fn drop(&mut self)[src]

Called when the object goes out of scope to stop the database.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,