Skip to content

Commit

Permalink
Merge pull request #70 from nodecosmos/GB_access_query
Browse files Browse the repository at this point in the history
update: add methods to read query string
  • Loading branch information
GoranBrkuljan authored Jan 29, 2025
2 parents be9ebdf + 8d9d7f0 commit c7a9f4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charybdis/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,14 @@ impl<'a, Val: SerializeRow, M: BaseModel, Qe: QueryExecutor<M>> CharybdisQuery<'
self
}

pub fn query_string(&self) -> &'static str {
self.query_string
}

pub fn get_values(&self) -> &QueryValue<'a, Val, M> {
&self.values
}

pub async fn execute(self, session: &CachingSession) -> Result<Qe::Output, CharybdisError> {
Qe::execute(self, session).await
}
Expand Down

0 comments on commit c7a9f4d

Please sign in to comment.