Skip to content

Commit

Permalink
Add missing sqlite3_stmt_busy symbol for lazy SQLite (macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skywalker13 committed Oct 5, 2024
1 parent e894668 commit 283375f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bun.js/bindings/sqlite/lazy_sqlite3.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ typedef int (*lazy_sqlite3_deserialize_type)(
);

typedef int (*lazy_sqlite3_stmt_readonly_type)(sqlite3_stmt* pStmt);
typedef int (*lazy_sqlite3_stmt_busy_type)(sqlite3_stmt* pStmt);
typedef int (*lazy_sqlite3_compileoption_used_type)(const char* zOptName);
typedef int64_t (*lazy_sqlite3_last_insert_rowid_type)(sqlite3* db);

Expand Down Expand Up @@ -135,6 +136,7 @@ static lazy_sqlite3_malloc64_type lazy_sqlite3_malloc64;
static lazy_sqlite3_serialize_type lazy_sqlite3_serialize;
static lazy_sqlite3_deserialize_type lazy_sqlite3_deserialize;
static lazy_sqlite3_stmt_readonly_type lazy_sqlite3_stmt_readonly;
static lazy_sqlite3_stmt_busy_type lazy_sqlite3_stmt_busy;
static lazy_sqlite3_compileoption_used_type lazy_sqlite3_compileoption_used;
static lazy_sqlite3_config_type lazy_sqlite3_config;
static lazy_sqlite3_extended_result_codes_type lazy_sqlite3_extended_result_codes;
Expand Down Expand Up @@ -185,6 +187,7 @@ static lazy_sqlite3_last_insert_rowid_type lazy_sqlite3_last_insert_rowid;
#define sqlite3_serialize lazy_sqlite3_serialize
#define sqlite3_deserialize lazy_sqlite3_deserialize
#define sqlite3_stmt_readonly lazy_sqlite3_stmt_readonly
#define sqlite3_stmt_busy lazy_sqlite3_stmt_busy
#define sqlite3_column_int64 lazy_sqlite3_column_int64
#define sqlite3_compileoption_used lazy_sqlite3_compileoption_used
#define sqlite3_config lazy_sqlite3_config
Expand Down Expand Up @@ -270,6 +273,7 @@ static int lazyLoadSQLite()
lazy_sqlite3_deserialize = (lazy_sqlite3_deserialize_type)dlsym(sqlite3_handle, "sqlite3_deserialize");
lazy_sqlite3_malloc64 = (lazy_sqlite3_malloc64_type)dlsym(sqlite3_handle, "sqlite3_malloc64");
lazy_sqlite3_stmt_readonly = (lazy_sqlite3_stmt_readonly_type)dlsym(sqlite3_handle, "sqlite3_stmt_readonly");
lazy_sqlite3_stmt_busy = (lazy_sqlite3_stmt_busy_type)dlsym(sqlite3_handle, "sqlite3_stmt_busy");
lazy_sqlite3_compileoption_used = (lazy_sqlite3_compileoption_used_type)dlsym(sqlite3_handle, "sqlite3_compileoption_used");
lazy_sqlite3_config = (lazy_sqlite3_config_type)dlsym(sqlite3_handle, "sqlite3_config");
lazy_sqlite3_extended_result_codes = (lazy_sqlite3_extended_result_codes_type)dlsym(sqlite3_handle, "sqlite3_extended_result_codes");
Expand Down

0 comments on commit 283375f

Please sign in to comment.