Crate libsql_client
source ·Expand description
A library for communicating with a libSQL database over HTTP.
libsql-client is a lightweight HTTP-based driver for sqld, which is a server mode for libSQL, which is an open-contribution fork of SQLite.
libsql-client compiles to wasm32-unknown-unknown target, which makes it a great driver for environments that run on WebAssembly.
It is expected to become a general-purpose driver for communicating with sqld/libSQL, but the only backend implemented at the moment is for Cloudflare Workers environment.
Re-exports
- pub use statement::Statement;
- pub use client::new_client;
- pub use client::new_client_from_config;
- pub use client::Config;
- pub use client::DatabaseClient;
- pub use transaction::Transaction;
Modules
- Clientis the main structure to interact with the database.
- Statementrepresents an SQL statement, which can be later sent to a database.
- Transactionis a structure representing an interactive transaction.
- Valuerepresents libSQL values and types. Each database row consists of one or more cell values.
Macros
- A macro for passing parameters to statements without having to manually define their types.
Structs
- Metadata of a database request
- Structure holding a set of rows returned from a query and their corresponding column names
- A database row
Enums
- Result of a database request - a set of rows or an error