docs: still WIP

This commit is contained in:
Matthieu Bessat 2026-01-13 21:41:03 +01:00
parent 8f7d11226f
commit d3aae47d2c
7 changed files with 51 additions and 23 deletions

View file

View file

0
docs/references/cli.md Normal file
View file

View file

View file

@ -6,3 +6,34 @@ Steps:
- Generate migrations
- Generate repositories
- Use repositories in your code
### CLI installation
The [sqlxgentools_cli crate](https://crates.io/crates/sqlxgentools_cli) provides the CLI,
it can be installed globally on your machine (or at least your user).
cargo install sqlxgentools_cli
### Project installation
Install the `sqlxgentools_attrs` crate
### Declare your models
TODO
### Generate migrations
Change directory into your project root.
sqlx-generator -m path/to/models_module gen-migrations -o path/to/migrations/all.sql
### Generate repositories
Change directory into your project root.
sqlx-generator -m path/to/models_module gen-repositories -o path/to/repositories_module
### Use the repositories
TODO

View file

@ -0,0 +1 @@
TODO