Skip to content

Commit

Permalink
[SeaORM] Update 1.1 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 28, 2024
1 parent 80ff369 commit 228ec3e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Thank you for using SeaORM. Please star our [GitHub repo](https://github.com/Sea
First, add `sea-orm` to the `[dependencies]` section of `Cargo.toml`.

```toml title="Cargo.toml"
sea-orm = { version = "1.0.0-rc.5", features = [ <DATABASE_DRIVER>, <ASYNC_RUNTIME>, "macros" ] }
sea-orm = { version = "1.1.0", features = [ <DATABASE_DRIVER>, <ASYNC_RUNTIME>, "macros" ] }
```

You must choose a `DATABASE_DRIVER` and an `ASYNC_RUNTIME`. `macros` is needed if you use SeaORM's generated entities (most likely).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can enable SeaORM's logging with the `debug-print` feature flag:

```toml
[dependencies.sea-orm]
version = "1.0.0-rc.5"
version = "1.1.0"
features = ["debug-print"]
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl MigratorTrait for Migrator {
First, install `sea-orm-cli` with `cargo`.

```shell
cargo install sea-orm-cli@1.0.0-rc.5
cargo install sea-orm-cli@1.1.0
```

:::tip SQL Server (MSSQL) backend
Expand Down Expand Up @@ -85,7 +85,7 @@ Import the [`sea-orm-migration`](https://crates.io/crates/sea-orm-migration) and
async-std = { version = "1", features = ["attributes", "tokio1"] }

[dependencies.sea-orm-migration]
version = "1.0.0-rc.5"
version = "1.1.0"
features = [
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
Expand Down Expand Up @@ -146,7 +146,7 @@ Specify SeaORM dependency.

```toml title="entity/Cargo.toml"
[dependencies]
sea-orm = { version = "1.0.0-rc.5" }
sea-orm = { version = "1.1.0" }
```

### App Crate
Expand All @@ -166,7 +166,7 @@ entity = { path = "entity" }
migration = { path = "migration" } # depends on your needs

[dependencies]
sea-orm = { version = "1.0.0-rc.5", features = [..] }
sea-orm = { version = "1.1.0", features = [..] }
```

In your app, you can then run the migrator on startup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
First, install `sea-orm-cli` with `cargo`.

```shell
cargo install sea-orm-cli@1.0.0-rc.5
cargo install sea-orm-cli@1.1.0
```

:::tip SQL Server (MSSQL) backend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ struct PartialUser {
let query = User::find().into_partial_model::<PartialUser>();
```

:::tip Since `1.0.0-rc.2`
:::tip Since `1.0.0`
`DerivePartialModel` macro attribute `entity` supports complex types
```rust
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To get started, all you need is a live SQL database with schema. You can code ev
## Install Seaography

```bash
cargo install seaography-cli@^1.0.0-rc.2
cargo install seaography-cli@^1.1.0
```

## Generate Seaography Entities
Expand All @@ -34,4 +34,4 @@ cd graphql
cargo run
```

You are of course free to modify the project to suit your needs. But the interesting bit starts at the `seaography::register_entity!` macro and the [seaography::Builder](https://docs.rs/seaography/1.0.0-rc.2/seaography/builder/struct.Builder.html).
You are of course free to modify the project to suit your needs. But the interesting bit starts at the `seaography::register_entity!` macro and the [seaography::Builder](https://docs.rs/seaography/1.1.0/seaography/builder/struct.Builder.html).

0 comments on commit 228ec3e

Please sign in to comment.