Module connect

Source
Expand description

§Connection

§Example


use geekorm_core::backends::connect::{ConnectionManager, Connection};

#[tokio::main]
async fn main() {
    let manager = ConnectionManager::connect(":memory:").await.unwrap();

    let connection = manager.acquire().await;

    // ... do stuff with the connection
}

Re-exports§

pub use manager::ConnectionManager;

Modules§

backend
GeekConnection trait implementation for Connection
manager
Connection Manager

Structs§

Connection
A connection to a database backend.

Enums§

Backend
Backend is an enum that represents the different types of backends that can be used to connect to a database.
ConnectionType
Connection Type