Skip to content

Commit

Permalink
0.27.1: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
psarna committed Jun 12, 2023
1 parent 9edd063 commit fcde941
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libsql-client"
version = "0.27.0"
version = "0.27.1"
edition = "2021"
license = "Apache-2.0"
description = "HTTP-based client for libSQL and sqld"
Expand Down
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pub struct Config {
///
/// ```
/// # async fn f() {
/// # use libsql_client::{DatabaseClient, Config};
/// # use libsql_client::Config;
/// let config = Config { url: url::Url::parse("file:////tmp/example.db").unwrap(), auth_token: None };
/// let db = libsql_client::new_client_from_config(config).await.unwrap();
/// # }
Expand Down Expand Up @@ -237,7 +237,7 @@ pub async fn new_client_from_config<'a>(config: Config) -> anyhow::Result<Client
///
/// ```
/// # async fn run() {
/// # use libsql_client::{DatabaseClient, Config};
/// # use libsql_client::Config;
/// # std::env::set_var("LIBSQL_CLIENT_URL", "file:////tmp/example.db");
/// let db = libsql_client::new_client().await.unwrap();
/// # }
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub mod hrana;
///
/// ```rust,no_run
/// # async fn f() -> anyhow::Result<()> {
/// # use crate::libsql_client::{DatabaseClient, Statement, args};
/// # use crate::libsql_client::{Statement, args};
/// let db = libsql_client::new_client().await?;
/// db.execute(
/// Statement::with_args("INSERT INTO cart(product_id, product_name, quantity, price) VALUES (?, ?, ?, ?)",
Expand Down
2 changes: 1 addition & 1 deletion src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<'a> Transaction<'a> {
///
/// ```rust,no_run
/// # async fn f() -> anyhow::Result<()> {
/// # use crate::libsql_client::{DatabaseClient, Statement, args};
/// # use crate::libsql_client::{Statement, args};
/// let mut db = libsql_client::new_client().await?;
/// let tx = db.transaction().await?;
/// tx.execute(Statement::with_args("INSERT INTO users (name) VALUES (?)", args!["John"])).await?;
Expand Down

0 comments on commit fcde941

Please sign in to comment.