Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reactive layer over PostgreSQL in Rust

NotificationsYou must be signed in to change notification settings

Champii/reactive-postgres-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Watch your queries results change as new rows are inserted/updated/deleted

Work in progress

This little example connects to localhost as user postgres. This will be configurable.

use reactive_pg::*;use serde::{Deserialize,Serialize};#[derive(Serialize,Deserialize,Debug)]structFoo{id:i32,name:String,}#[tokio::main]asyncfnmain(){"SELECT * from foo where id < 10".watch::<Foo>(|event|println!("{:#?}", event)).await.await// <- The second await will block until the connection is dropped.unwrap();}

About

Reactive layer over PostgreSQL in Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp