acts-store-postgres

Crates.ioacts-store-postgres
lib.rsacts-store-postgres
version0.17.2
created_at2025-05-25 09:18:18.732635+00
updated_at2025-06-06 16:12:04.589931+00
descriptionacts store plugin for postgres
homepagehttps://docs.rs/acts-store-postgres
repositoryhttps://github.com/yaojianpin/acts.git
max_upload_size
id1688198
size183,716
(yaojianpin)

documentation

README

acts-postgres

The acts postgres plugin for acts.

Installation

create config/acts.cfg in current dir

postgres {
    database_url: "postgresql://<your connection string>"
}
cargo add acts-store-postgres

Example

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(())
}
Commit count: 158

cargo fmt