#orm #sqlite #mysql #postgresql #postgresql-orm

bin+lib welds-cli

An async ORM for (postgres, mssql, mysql, sqlite)

11 releases

Uses new Rust 2024

0.4.13 May 10, 2025
0.4.2 Oct 7, 2024
0.4.0 Aug 12, 2024
0.3.0 Mar 9, 2024
0.1.2-alpha Apr 25, 2023

#2406 in Database interfaces

Download history

540 downloads per month

BSD-3-Clause

385KB
10K SLoC

An async ORM written in rust using sqlx and/or Tiberius.

DEPRECATED: Welds - CLI

The welds-cli tool has been deprecated in favor of the cli tool Gumbo. This cli is much better maintains and serves the same purpose.

Welds is an ORM for Rust.

This crate is a command line tool to help you use welds.

It is used to generate rust code for your struct definitions.

You point it at your database and out comes a bunch of rust files for all the tables in your database.

Install

cargo install welds-cli

How to use

  1. Set a connection string to your database using the ENV DATABASE_URL
export DATABASE_URL=postgres://postgres:password@localhost:5432
  1. use the welds-cli to create a welds.yaml database definition file.
welds update
  1. use the welds-cli to generate rust code.
welds generate

Dependencies

~14–21MB
~351K SLoC