Skip to content

terry90/diesel_as_jsonb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diesel As JSONB (for PG)

Usage

#[derive(AsJsonb)]
struct Something {
    thing: String,
}

struct Wrapper {
    things: Vec<Something> // For field type Array<Jsonb>
    thing: Something // For field type Jsonb
}

About

Allows struct to be used as jsonb with diesel and PG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages