sqlx-mapping-0.1.3 is not a library.
Only support Postgres
Unstable!
Unstable!
Unstable!
The tool is currently unstable
🚀 Features
| Feature | Description |
|---|---|
| ⚡ Instant Models | Generate Rust structs |
| 🔄 Full CRUD | Generate Rust Simple CRUD operations |
📦 Installation
🏁 Quick Start
# 1. Set connection (or use --db parameter)
📜 Command Reference
Usage: sm map [OPTIONS]
Options:
-w, --watch watch mode
-m, --model mapping struct model
-c, --create mapping create sql function
-r, --retrieve mapping retrieve sql function
-u, --update mapping update sql function
-d, --delete mapping delete sql function
--crud mapping all (create/retrieve/update/delete) sql function
--db <DB> specify DATABASE_URL. etc.: postgres://user:password@localhost/postgres
--output <OUTPUT> specify where to write [default: src/model/pg]
-h, --help Print help