Skip to content

Commit

Permalink
[SeaORM] Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jun 18, 2024
1 parent 60c954c commit 7375937
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 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 = "0.12", features = [ <DATABASE_DRIVER>, <ASYNC_RUNTIME>, "macros" ] }
sea-orm = { version = "1.0.0-rc.5", 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
2 changes: 1 addition & 1 deletion SeaORM/docs/02-install-and-config/03-debug-log.md
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 = "0.12"
version = "1.0.0-rc.5"
features = ["debug-print"]
```

Expand Down
8 changes: 4 additions & 4 deletions SeaORM/docs/03-migration/01-setting-up-migration.md
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
cargo install sea-orm-cli@1.0.0-rc.5
```

:::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 = "0.12"
version = "1.0.0-rc.5"
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 = "0.12" }
sea-orm = { version = "1.0.0-rc.5" }
```

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

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

In your app, you can then run the migrator on startup.
Expand Down
2 changes: 1 addition & 1 deletion SeaORM/docs/04-generate-entity/01-sea-orm-cli.md
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
cargo install sea-orm-cli@1.0.0-rc.5
```

:::tip SQL Server (MSSQL) backend
Expand Down
2 changes: 1 addition & 1 deletion SeaORM/docs/08-advanced-query/02-conditional-expression.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Conditional Expressions

You can add conditions to SeaORM find with the `filter` method. You can also restrict the aggregated result with `having` method. Both of them take [`sea_query::Condition`](https://docs.rs/sea-query/0.12.7/sea_query/query/struct.Condition.html) as a parameter.
You can add conditions to SeaORM find with the `filter` method. You can also restrict the aggregated result with `having` method. Both of them take [`sea_query::Condition`](https://docs.rs/sea-query/*/sea_query/query/struct.Condition.html) as a parameter.

## AND Condition

Expand Down

0 comments on commit 7375937

Please sign in to comment.