docs: still WIP
This commit is contained in:
parent
8f7d11226f
commit
d3aae47d2c
7 changed files with 51 additions and 23 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue