This commit is contained in:
pedrocarlo
2025-06-30 13:38:40 -03:00
parent e08748e07e
commit a4c6138e33
2 changed files with 8 additions and 8 deletions

View File

@@ -9,14 +9,14 @@ mod sealed {
use sealed::Sealed;
/// Converts some type into parameters that can be passed
/// to libsql.
/// to Turso.
///
/// The trait is sealed and not designed to be implemented by hand
/// but instead provides a few ways to use it.
///
/// # Passing parameters to libsql
/// # Passing parameters to Turso
///
/// Many functions in this library let you pass parameters to libsql. Doing this
/// Many functions in this library let you pass parameters to Turso. Doing this
/// lets you avoid any risk of SQL injection, and is simpler than escaping
/// things manually. These functions generally contain some parameter that generically
/// accepts some implementation this trait.
@@ -27,7 +27,7 @@ use sealed::Sealed;
///
/// - For heterogeneous parameter lists of 16 or less items a tuple syntax is supported
/// by doing `(1, "foo")`.
/// - For hetergeneous parameter lists of 16 or greater, the [`turso::params!`] is supported
/// - For hetergeneous parameter lists of 16 or greater, the [`crate::params!`] is supported
/// by doing `turso::params![1, "foo"]`.
/// - For homogeneous parameter types (where they are all the same type), const arrays are
/// supported by doing `[1, 2, 3]`.
@@ -62,8 +62,8 @@ use sealed::Sealed;
///
/// - For heterogeneous parameter lists of 16 or less items a tuple syntax is supported
/// by doing `(("key1", 1), ("key2", "foo"))`.
/// - For hetergeneous parameter lists of 16 or greater, the [`turso::params!`] is supported
/// by doing `turso::named_params!["key1": 1, "key2": "foo"]`.
/// - For hetergeneous parameter lists of 16 or greater, the [`crate::named_params!`] is supported
/// by doing `turso::named_params!{"key1": 1, "key2": "foo"}`.
/// - For homogeneous parameter types (where they are all the same type), const arrays are
/// supported by doing `[("key1", 1), ("key2, 2), ("key3", 3)]`.
///
@@ -77,7 +77,7 @@ use sealed::Sealed;
/// // Using a tuple:
/// stmt.execute(((":key1", 0), (":key2", "foobar"))).await?;
///
/// // Using `turso::named_params!`:
/// // Using `named_params!`:
/// stmt.execute(named_params! {":key1": 1i32, ":key2": "blah" }).await?;
///
/// // const array:

View File

@@ -11,7 +11,7 @@ pub enum Value {
Blob(Vec<u8>),
}
/// The possible types a column can be in libsql.
/// The possible types a column can be in Turso.
#[derive(Debug, Copy, Clone)]
pub enum ValueType {
Integer = 1,