acts-postgres
The acts postgres plugin for acts.
Installation
create acts.cfg in current dir
postgres {
database_url: "postgresql://<your connection string>"
}
Example
use ;
use PostgresStore;
async
The acts postgres plugin for acts.
create acts.cfg in current dir
postgres {
database_url: "postgresql://<your connection string>"
}
cargo add acts-store-postgres
use acts::{EngineBuilder, Result};
use acts_store_postgres::PostgresStore;
#[tokio::main]
async fn main() -> Result<()> {
let engine = EngineBuilder::new()
.add_plugin(&PostgresStore)
.build().await?
.start();
Ok(())
}