@@ -13,9 +13,9 @@ use std::sync::atomic::{AtomicBool, Ordering};
1313
1414/// SQLite database with connection pooling for concurrent reads and optional exclusive writes.
1515///
16- /// The database is opened in read-write mode but can be used for read-only operations
17- /// by calling `read_pool()`. Write operations are available by calling `acquire_writer()`
18- /// which lazily initializes WAL mode on first use.
16+ /// Once the database is opened, it can be used for read-only operations by calling `read_pool()`.
17+ /// Write operations are available by calling `acquire_writer()` which lazily initializes WAL
18+ /// mode on first use.
1919///
2020/// # Example
2121///
@@ -66,7 +66,7 @@ impl SqliteDatabase {
6666 /// If the database is already connected, returns the existing connection.
6767 /// Multiple calls with the same path will return the same database instance.
6868 ///
69- /// The database is created if it doesn't exist. WAL mode is optionally enabled when
69+ /// The database is created if it doesn't exist. WAL mode is enabled when
7070 /// `acquire_writer()` is first called.
7171 ///
7272 /// # Arguments
@@ -174,7 +174,7 @@ impl SqliteDatabase {
174174 . await
175175 }
176176
177- /// Get a reference to the connection pool for executing SELECT queries
177+ /// Get a reference to the connection pool for executing read queries
178178 ///
179179 /// Use this for concurrent read operations. Multiple readers can access
180180 /// the pool simultaneously.
@@ -370,6 +370,7 @@ mod tests {
370370 . fetch_one ( db. read_pool ( ) . unwrap ( ) )
371371 . await
372372 . unwrap ( ) ;
373+
373374 assert_eq ! ( count, 12 ) ;
374375 } ) ) ;
375376 }
0 commit comments