Skip to content

Commit da22916

Browse files
committed
Some further correction.
1 parent 6d91d86 commit da22916

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

linera-views/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ We provide support for the following databases:
2121
* `ScyllaDbStore` is a cloud-based Cassandra-compatible database.
2222
* `ServiceStoreClient` is a gRPC-based storage that uses either memory or RocksDB. It is available in `linera-storage-service`.
2323

24-
The corresponding trait in the code is the [`crate::common::KeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.KeyValueStore.html).
25-
The trait decomposes into a [`common::ReadableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.ReadableKeyValueStore.html)
26-
and a [`common::WritableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.WritableKeyValueStore.html).
27-
In addition, there is a [`common::AdminKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.AdminKeyValueStore.html)
24+
The corresponding trait in the code is the [`crate::store::KeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.KeyValueStore.html).
25+
The trait decomposes into a [`store::ReadableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.ReadableKeyValueStore.html)
26+
and a [`store::WritableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.WritableKeyValueStore.html).
27+
In addition, there is a [`store::AdminKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.AdminKeyValueStore.html)
2828
which gives some functionalities for working with stores.
2929
A context is the combination of a client and a base key (of type `Vec<u8>`).
3030

linera-views/src/backends/dual.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Zefchain Labs, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//! Implements [`crate::common::KeyValueStore`] by combining two existing stores.
4+
//! Implements [`crate::store::KeyValueStore`] by combining two existing stores.
55
66
use thiserror::Error;
77

linera-views/src/backends/indexed_db.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Zefchain Labs, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//! Implements [`crate::common::KeyValueStore`] for the IndexedDB Web database.
4+
//! Implements [`crate::store::KeyValueStore`] for the IndexedDB Web database.
55
66
use std::{fmt::Debug, rc::Rc};
77

linera-views/src/backends/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Zefchain Labs, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//! Implements [`crate::common::KeyValueStore`] in memory.
4+
//! Implements [`crate::store::KeyValueStore`] in memory.
55
66
use std::{
77
collections::BTreeMap,

linera-views/src/backends/rocks_db.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Zefchain Labs, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//! Implements [`crate::common::KeyValueStore`] for the RocksDB database.
4+
//! Implements [`crate::store::KeyValueStore`] for the RocksDB database.
55
66
use std::{
77
ffi::OsString,

linera-views/src/backends/scylla_db.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Zefchain Labs, Inc.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
//! Implements [`crate::common::KeyValueStore`] for the ScyllaDB database.
4+
//! Implements [`crate::store::KeyValueStore`] for the ScyllaDB database.
55
//!
66
//! The current connection is done via a Session and a corresponding primary key called
77
//! "namespace". The maximum number of concurrent queries is controlled by

linera-views/src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub trait Context: Clone {
158158
}
159159

160160
/// Implementation of the [`Context`] trait on top of a DB client implementing
161-
/// [`crate::common::KeyValueStore`].
161+
/// [`crate::store::KeyValueStore`].
162162
#[derive(Debug, Default, Clone)]
163163
pub struct ViewContext<E, S> {
164164
/// The DB client that is shared between views.

linera-views/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ We provide support for the following databases:
2323
* `ScyllaDbStore` is a cloud-based Cassandra-compatible database.
2424
* `ServiceStoreClient` is a gRPC-based storage that uses either memory or RocksDB. It is available in `linera-storage-service`.
2525
26-
The corresponding trait in the code is the [`crate::common::KeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.KeyValueStore.html).
27-
The trait decomposes into a [`common::ReadableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.ReadableKeyValueStore.html)
28-
and a [`common::WritableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.WritableKeyValueStore.html).
29-
In addition, there is a [`common::AdminKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/common/trait.AdminKeyValueStore.html)
26+
The corresponding trait in the code is the [`crate::store::KeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.KeyValueStore.html).
27+
The trait decomposes into a [`store::ReadableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.ReadableKeyValueStore.html)
28+
and a [`store::WritableKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.WritableKeyValueStore.html).
29+
In addition, there is a [`store::AdminKeyValueStore`](https://docs.rs/linera-views/latest/linera_views/store/trait.AdminKeyValueStore.html)
3030
which gives some functionalities for working with stores.
3131
A context is the combination of a client and a base key (of type `Vec<u8>`).
3232
@@ -74,7 +74,7 @@ pub mod common;
7474
/// Elementary data-structures implementing the [`views::View`] trait.
7575
pub mod views;
7676

77-
/// Backend implementing the [`crate::common::KeyValueStore`] trait.
77+
/// Backend implementing the [`crate::store::KeyValueStore`] trait.
7878
pub mod backends;
7979

8080
/// Support for metrics.

0 commit comments

Comments
 (0)