mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
opfs for sync in one commit!
This commit is contained in:
16
bindings/javascript/packages/native/index.d.ts
vendored
16
bindings/javascript/packages/native/index.d.ts
vendored
@@ -91,6 +91,14 @@ export declare class Database {
|
||||
ioLoopAsync(): Promise<void>
|
||||
}
|
||||
|
||||
export declare class Opfs {
|
||||
constructor()
|
||||
}
|
||||
|
||||
export declare class OpfsFile {
|
||||
|
||||
}
|
||||
|
||||
/** A prepared statement. */
|
||||
export declare class Statement {
|
||||
reset(): void
|
||||
@@ -144,6 +152,14 @@ export declare class Statement {
|
||||
finalize(): void
|
||||
}
|
||||
|
||||
export declare function connect(path: string, opts?: DatabaseOpts | undefined | null): Promise<unknown>
|
||||
|
||||
export interface DatabaseOpts {
|
||||
tracing?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* turso-db in the the browser requires explicit thread pool initialization
|
||||
* so, we just put no-op task on the thread pool and force emnapi to allocate web worker
|
||||
*/
|
||||
export declare function initThreadPool(): Promise<unknown>
|
||||
|
||||
Reference in New Issue
Block a user