Skip to content

BSpaceinc/bs-diesel-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diesel Utilities

This crate provides utilities to work with Diesel ORM.

Example

use bs_diesel_utils::Executor;
use tokio::main;

[tokio::main]
async main() {
  let db = Executor::new("postgres://postgres:postgres@localhost/bs").into_ref();
  let res = db.exec(|conn| {
    // blocking diesel calls here
    Ok(())
  }).await.unwrap();
}

About

Utilities to work with Diesel ORM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages