{"repo":"kurtbuilds/ormlite","free":true,"listed":false,"github":"https://github.com/kurtbuilds/ormlite","clone":"git clone https://github.com/kurtbuilds/ormlite.git","description":"An ORM in Rust for developers that love SQL.","language":"Rust","stars":306,"topics":["rust","orm","sqlx","database","sqlite","postgresql"],"license":"MIT","category":"databases-storage","readme_excerpt":"ormlite ormlite is an ORM in Rust for developers that love SQL. Let's see it in action: You might like ormlite because: - It auto-generates migrations from Rust structs. To my knowledge, it is the only Rust ORM with this capability. - The join API (in alpha) has far fewer moving pieces than any other Rust ORM. It only relies on the table struct s themselves, and does not rely on relation traits (SeaORM) or modules (Diesel). - There's little to no query builder syntax to learn. The query builder basically joins together &str fragments of raw SQL. It strikes the right level of abstraction between composability, and having near-zero learning curve for anyone who already knows SQL. Quickstart Installation Install with cargo : Or update your Cargo.toml : Other databases and runtimes are supported, but are less tested. Please submit an issue if you encounter any. Environment Setup You need DATABASE URL in your environment. We recommend a tool like just , which can pull in a .env file, but for simplicity, here we'll use shell directly. Migrations If you are querying a static database and don't need migrations, skip this section. If you want migrations, keep reading. First, install ormlite-cli . Currently, the CLI only supports Postgres. While ormlite-cli is separate from sqlx-cli , they are 100% compatible with each other. sqlx-cli does not support auto-generating migrations or snapshots (to rollback in development without writing down migrations), but it is less bleeding edge and s","default_branch":null,"files":null,"tree":[],"storefront":"/r/kurtbuilds","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kurtbuilds/ormlite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}