Skip to content

Commit 25515b8

Browse files
committed
[bun:sqlite] Add sqlite-type symbol for Database
1 parent db8a03e commit 25515b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/bun/sqlite.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ class Database implements SqliteTypes.Database {
438438
return SQL.isInTransaction(this.#handle);
439439
}
440440

441+
// Mark the Database prototype with a symbol to identify it as a bun-specific sqlite database.
442+
// This is useful for the package author to detect which sqlite implementation is being used.
441443
get [sqliteTypeSymbol]() {
442444
return "bun:sqlite";
443445
}

0 commit comments

Comments
 (0)