Skip to main content

start_server

Function start_server 

Source
pub async fn start_server(
    engine: Arc<MnemoEngine>,
    config: PgWireConfig,
) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Start the pgwire server.

Listens on the configured address and accepts PostgreSQL wire protocol connections. Each connection is handled in a separate tokio task.

§Example

let config = PgWireConfig::default();
start_server(engine, config).await.unwrap();