welds-cli

Crates.iowelds-cli
lib.rswelds-cli
version0.4.13
created_at2023-04-18 00:45:21.625385+00
updated_at2025-05-10 16:35:16.837548+00
descriptionAn async ORM for (postgres, mssql, mysql, sqlite)
homepage
repositoryhttps://github.com/weldsorm/welds/tree/main/welds-cli
max_upload_size
id841987
size110,409
(lex148)

documentation

README

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
Commit count: 421

cargo fmt