Skip to content

Commit

Permalink
feat: execute function for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Apr 30, 2024
1 parent 1fa2ac1 commit ae840c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wasm/wasi/wit/deps/hermes-sqlite/api.wit
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ interface api {
/// A compiled prepared statement that can be executed using `sqlite3_step()`.
/// If there is an error or the input text contains no SQL (if the input is an empty string or a comment) then an error code is returned.
prepare: func(sql: string) -> result<statement, errno>;

/// Executes a SQL query directly without preparing it into a statement and returns the result.
///
/// ## Parameters
///
/// - `db`: Database handle.
///
execute: func(sql: string) -> result<_, errno>;
}

/// The prepared statement object.
Expand Down

0 comments on commit ae840c7

Please sign in to comment.