Skip to content

Commit 6458d9c

Browse files
chore(drivers): add prepared statements mentions to unsupported drivers
1 parent 71204e6 commit 6458d9c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/drivers/sqlite.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function sqliteCacheAdapter<Value = unknown>(
1818
database: Database
1919
},
2020
): Cache<Value> {
21+
// We cannot prepare statements in `sqlite` as it is an asynchronous operation,
22+
// and thus would require making this init function async
2123
return {
2224
name: options.name ?? "sqlite",
2325
get: async (key) => {

src/drivers/sqlite3.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function sqlite3CacheAdapter<Value = unknown>(
1818
database: Database
1919
},
2020
): Cache<Value> {
21+
// We cannot prepare statements in `sqlite3` as it is an asynchronous operation,
22+
// and thus would require making this init function async
2123
return {
2224
name: options.name ?? "sqlite3",
2325
get: async (key) => {

0 commit comments

Comments
 (0)