mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-26 10:13:27 +08:00
* fix: retain local helper programs in standalone builds * fix: retain runtime probe assets across packaged layouts * fix: keep bundled runtime probes self-contained
22 lines
666 B
TypeScript
22 lines
666 B
TypeScript
export type SqliteCapabilities = {
|
|
available: boolean;
|
|
version: string | null;
|
|
text: boolean;
|
|
blob: boolean;
|
|
json: boolean;
|
|
error?: string;
|
|
};
|
|
export type SqliteCapabilityDatabase = {
|
|
prepare(sql: string): {
|
|
get(): Record<string, unknown> | undefined;
|
|
run(text: string, bytes: Uint8Array, json: string): unknown;
|
|
};
|
|
exec(sql: string): unknown;
|
|
close(): void;
|
|
};
|
|
export type SqliteCapabilityDatabaseConstructor = new (
|
|
location: string,
|
|
) => SqliteCapabilityDatabase;
|
|
export function probeSqlite(DatabaseSync: SqliteCapabilityDatabaseConstructor): SqliteCapabilities;
|
|
export function isSqliteWalResetSafeVersion(value: string): boolean;
|