@concavejs/docstore-bun-sqlite 0.0.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bun-adapter.d.ts +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6940 -0
- package/dist/sqlite-docstore.d.ts +15 -0
- package/package.json +31 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun-specific SQLite adapter implementation
|
|
3
|
+
*/
|
|
4
|
+
import type { Database } from "bun:sqlite";
|
|
5
|
+
import type { SqliteAdapter, PreparedStatement, SqlParam, TransactionFn } from "@concavejs/docstore-sqlite-base";
|
|
6
|
+
/**
|
|
7
|
+
* Bun SQLite adapter
|
|
8
|
+
*/
|
|
9
|
+
export declare class BunSqliteAdapter implements SqliteAdapter {
|
|
10
|
+
private db;
|
|
11
|
+
constructor(db: Database);
|
|
12
|
+
exec(sql: string): void;
|
|
13
|
+
prepare(sql: string): PreparedStatement;
|
|
14
|
+
transaction<T>(fn: TransactionFn<T>): T | Promise<T>;
|
|
15
|
+
hexToBuffer(hex: string): SqlParam;
|
|
16
|
+
bufferToHex(buffer: any): string;
|
|
17
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SqliteDocStore } from "./sqlite-docstore";
|