From deb535c2560bcb01a4eeff682ef6551212a91dd0 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Mon, 30 Nov 2026 17:48:50 +0800 Subject: [PATCH] Shorten the SQL document adapter module name --- crates/db/src/{workspace_documents.rs => documents.rs} | 2 +- crates/db/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename crates/db/src/{workspace_documents.rs => documents.rs} (98%) diff --git a/crates/db/src/workspace_documents.rs b/crates/db/src/documents.rs similarity index 98% rename from crates/db/src/workspace_documents.rs rename to crates/db/src/documents.rs index 81362b5..c8c607b 100644 --- a/crates/db/src/workspace_documents.rs +++ b/crates/db/src/documents.rs @@ -3,7 +3,7 @@ //! Within a deployment, the workspace selects a reserved collection prefix plus its ID. //! The document ID becomes the row key in that collection, and the body is JSON. -use documents::{Document, DocumentKey}; +use ::documents::{Document, DocumentKey}; use crate::{Connection, Mutation, ReadPreference, Result, Revision, StorageError}; diff --git a/crates/db/src/lib.rs b/crates/db/src/lib.rs index bd48c64..4acbd5f 100644 --- a/crates/db/src/lib.rs +++ b/crates/db/src/lib.rs @@ -2,15 +2,15 @@ mod common; mod connection; +mod documents; pub mod mysql; pub mod postgres; pub mod sqlite; -mod workspace_documents; +pub use self::documents::StoredDocument; pub use clusters::{Address, Cluster, ConfigError, DeploymentConfig, Driver, Tls}; pub use connection::{ConnectError, Connection, ReadPreference, connect}; pub use mysql::{Lease, MySql}; -pub use workspace_documents::StoredDocument; pub use common::Error as StorageError; pub use common::{