8 releases

0.3.0 Mar 9, 2024
0.3.0-rc1 Mar 6, 2024
0.1.5-alpha May 18, 2023
0.1.2-alpha Apr 25, 2023

#2010 in Database interfaces

Download history 2/week @ 2024-02-24 146/week @ 2024-03-02 157/week @ 2024-03-09 4/week @ 2024-03-16 33/week @ 2024-03-30 131/week @ 2024-04-20

131 downloads per month

BSD-3-Clause

270KB
7K SLoC

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

Welds - CLI

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

~15–27MB
~410K SLoC