| Crates.io | acts-store-postgres |
| lib.rs | acts-store-postgres |
| version | 0.17.2 |
| created_at | 2025-05-25 09:18:18.732635+00 |
| updated_at | 2025-06-06 16:12:04.589931+00 |
| description | acts store plugin for postgres |
| homepage | https://docs.rs/acts-store-postgres |
| repository | https://github.com/yaojianpin/acts.git |
| max_upload_size | |
| id | 1688198 |
| size | 183,716 |
The acts postgres plugin for acts.
create config/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(())
}