Skip to content

An attempt to bring Ent-like functionality into Rust.

Notifications You must be signed in to change notification settings

bitcrshr/graphix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphix

An ORM for Rust heavily inspired by ent.

Example

use graphix::entity::Entity;
use graphix::Entity;

#[derive(Entity)]
struct User {
    #[graphix(colname = "user_id", unique, immutable)]
    id: i32,
    
    #[graphix(nullable)]
    name: String,
    age: i32,
}

Todos

  • Basic entity definition and HCL generation
  • Add support for immutable
  • Full mappings between Rust and Postgres types
  • Hook up to Atlas
  • so many more things

About

An attempt to bring Ent-like functionality into Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages