pub struct SqlApiClient { /* private fields */ }Expand description
Client for the Quicknode SQL Explorer. Executes SQL queries against indexed blockchain data and fetches the database schema.
Implementations§
Source§impl SqlApiClient
impl SqlApiClient
pub fn new(config: SdkConfig) -> Self
Sourcepub async fn query(
&self,
params: &QueryParams,
) -> Result<QueryResponse, SdkError>
pub async fn query( &self, params: &QueryParams, ) -> Result<QueryResponse, SdkError>
Executes a SQL query against the given cluster and returns the result set.
Sourcepub async fn get_schema(
&self,
cluster_id: &str,
) -> Result<ChainSchema, SdkError>
pub async fn get_schema( &self, cluster_id: &str, ) -> Result<ChainSchema, SdkError>
Fetches the database schema for a cluster, including table names, columns, types, sort keys, and partition strategies.
Trait Implementations§
Source§impl Clone for SqlApiClient
impl Clone for SqlApiClient
Source§fn clone(&self) -> SqlApiClient
fn clone(&self) -> SqlApiClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SqlApiClient
impl !UnwindSafe for SqlApiClient
impl Freeze for SqlApiClient
impl Send for SqlApiClient
impl Sync for SqlApiClient
impl Unpin for SqlApiClient
impl UnsafeUnpin for SqlApiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more