Skip to content

Commit

Permalink
book: simple.md -> unprepared.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muzarski committed Apr 25, 2024
1 parent 6a86b6f commit 08baf66
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/source/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- [TLS](connecting/tls.md)

- [Making queries](queries/queries.md)
- [Unprepared query](queries/simple.md)
- [Unprepared query](queries/unprepared.md)
- [Query values](queries/values.md)
- [Query result](queries/result.md)
- [Prepared query](queries/prepared.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/source/queries/batch.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Batch statement

A batch statement allows to execute many data-modifying statements at once.\
These statements can be [unprepared](simple.md) or [prepared](prepared.md).\
These statements can be [unprepared](unprepared.md) or [prepared](prepared.md).\
Only `INSERT`, `UPDATE` and `DELETE` statements are allowed.

```rust
Expand Down Expand Up @@ -103,7 +103,7 @@ See [Batch API documentation](https://docs.rs/scylla/latest/scylla/statement/bat
for more options

### Batch values
Batch takes a tuple of values specified just like in [unprepared](simple.md) or [prepared](prepared.md) queries.
Batch takes a tuple of values specified just like in [unprepared](unprepared.md) or [prepared](prepared.md) queries.

Length of batch values must be equal to the number of statements in a batch.\
Each statement must have its values specified, even if they are empty.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/queries/paged.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Sometimes query results might not fit in a single page. Paged queries
allow to receive the whole result page by page.

`Session::query_iter` and `Session::execute_iter` take an [unprepared query](simple.md) or a [prepared query](prepared.md)
`Session::query_iter` and `Session::execute_iter` take an [unprepared query](unprepared.md) or a [prepared query](prepared.md)
and return an `async` iterator over result `Rows`.

> ***Warning***\
Expand All @@ -14,7 +14,7 @@ and return an `async` iterator over result `Rows`.
> use `Session::execute_iter`.
### Examples
Use `query_iter` to perform an [unprepared query](simple.md) with paging:
Use `query_iter` to perform an [unprepared query](unprepared.md) with paging:
```rust
# extern crate scylla;
# extern crate futures;
Expand Down Expand Up @@ -65,7 +65,7 @@ while let Some(next_row_res) = rows_stream.next().await {
# }
```

Query values can be passed to `query_iter` and `execute_iter` just like in an [unprepared query](simple.md)
Query values can be passed to `query_iter` and `execute_iter` just like in an [unprepared query](unprepared.md)

### Configuring page size
It's possible to configure the size of a single page.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/queries/prepared.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If at least one succeeds returns success.

### `Session::execute`
`Session::execute` takes a prepared query and bound values and runs the query.
Passing values and the result is the same as in [unprepared query](simple.md).
Passing values and the result is the same as in [unprepared query](unprepared.md).

### Query options

Expand Down
4 changes: 2 additions & 2 deletions docs/source/queries/queries.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Making queries

This driver supports all query types available in Scylla:
* [Unprepared queries](simple.md)
* [Unprepared queries](unprepared.md)
* Easy to use
* Poor performance
* Primitive load balancing
Expand All @@ -26,7 +26,7 @@ Queries are fully asynchronous - you can run as many of them in parallel as you
:hidden:
:glob:
simple
unprepared
values
result
prepared
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/source/retry-policy/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let session: Session = SessionBuilder::new()
# }
```

To use in an [unprepared query](../queries/simple.md):
To use in an [unprepared query](../queries/unprepared.md):
```rust
# extern crate scylla;
# use scylla::Session;
Expand Down
2 changes: 1 addition & 1 deletion docs/source/retry-policy/downgrading-consistency.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let session: Session = SessionBuilder::new()
# }
```

To use in an [unprepared query](../queries/simple.md):
To use in an [unprepared query](../queries/unprepared.md):
```rust
# extern crate scylla;
# use scylla::Session;
Expand Down
2 changes: 1 addition & 1 deletion docs/source/retry-policy/fallthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let session: Session = SessionBuilder::new()
# }
```

To use in an [unprepared query](../queries/simple.md):
To use in an [unprepared query](../queries/unprepared.md):
```rust
# extern crate scylla;
# use scylla::Session;
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tracing/basic.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tracing an unprepared/prepared/batch query

[Unprepared query](../queries/simple.md), [prepared query](../queries/prepared.md) and [batch query](../queries/batch.md)
[Unprepared query](../queries/unprepared.md), [prepared query](../queries/prepared.md) and [batch query](../queries/batch.md)
return a `QueryResult` which contains a `tracing_id` if tracing was enabled.

### Tracing an unprepapred query
Expand Down

0 comments on commit 08baf66

Please sign in to comment.