1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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.
```bash
cargo install welds-cli
```
1) Set a connection string to your database using the ENV DATABASE_URL
```bash
export DATABASE_URL=postgres://postgres:password@localhost:5432
```
2) use the welds-cli to create a `welds.yaml` database definition file.
```bash
welds update
```
3) use the welds-cli to generate rust code.
```bash
welds generate
```