Skip to content

Commit

Permalink
Format fix webdb_api
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Oct 30, 2024
1 parent bad10f6 commit 9f0ebd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/webdb_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ void duckdb_web_prepared_create(WASMResponse* packed, ConnectionHdl connHdl, con
WASMResponseBuffer::Get().Store(*packed, std::move(r));
}
/// Prepare a query statement
void duckdb_web_prepared_create_buffer(WASMResponse* packed, ConnectionHdl connHdl, const uint8_t* buffer, size_t buffer_length) {
void duckdb_web_prepared_create_buffer(WASMResponse* packed, ConnectionHdl connHdl, const uint8_t* buffer,
size_t buffer_length) {
auto c = reinterpret_cast<WebDB::Connection*>(connHdl);
std::string_view script(reinterpret_cast<const char*>(buffer), buffer_length);
auto r = c->CreatePreparedStatement(script);
Expand Down Expand Up @@ -249,7 +250,8 @@ void duckdb_web_get_tablenames(WASMResponse* packed, ConnectionHdl connHdl, cons
WASMResponseBuffer::Get().Store(*packed, std::move(r));
}
/// Get table names
void duckdb_web_get_tablenames_buffer(WASMResponse* packed, ConnectionHdl connHdl, const uint8_t* buffer, size_t buffer_length) {
void duckdb_web_get_tablenames_buffer(WASMResponse* packed, ConnectionHdl connHdl, const uint8_t* buffer,
size_t buffer_length) {
auto c = reinterpret_cast<WebDB::Connection*>(connHdl);
std::string_view query(reinterpret_cast<const char*>(buffer), buffer_length);
auto r = c->GetTableNames(query);
Expand Down

0 comments on commit 9f0ebd3

Please sign in to comment.