import { DatabaseConfig } from "../definitions/database-config"; import { DatabaseResult } from "../definitions/database-definition"; import { WebSqlInterface, WebSqlObjectInterface, WebSqlTransactionInterface } from "../definitions/websql-interface"; import { BaseDatabaseAdapter } from "./base-database.adapter"; /** * WARNING: Only for test app * Because WebSQL will no longer be implemented: * https://dev.w3.org/html5/webdatabase/ * * Adapter for https://dev.w3.org/html5/webdatabase/ * * Example usage: * * `new WebSqlDatabaseAdapter(this);` * * PS: 'this' is instance Browser, with method 'openDatabase' * @export * @class WebSqlDatabaseAdapter * @implements {DatabaseCreatorContract} */ export declare class WebSqlDatabaseAdapter extends BaseDatabaseAdapter { private _creator; constructor(_creator: WebSqlInterface); protected createDatabaseNative(config: DatabaseConfig): Promise; protected convertToExecuteSql(databaseNative: WebSqlObjectInterface): (sql: string, values: any) => Promise; protected convertToTransaction(databaseNative: WebSqlObjectInterface): (fn: (transaction: WebSqlTransactionInterface) => void) => Promise; protected convertToSqlBatch(databaseNative: WebSqlObjectInterface): (sqlStatements: Array<(string | string[] | any)>) => Promise; protected executeSql(transaction: WebSqlTransactionInterface, sql: string, values: any): Promise; protected ignoreExecuteSql(sql: string, values: any): Promise; protected batch(database: WebSqlObjectInterface, sqlStatements: Array, runInTransaction: boolean): Promise; protected executeBatchs(databaseNative: WebSqlObjectInterface, batchs: Array<{ sql: string; params: any[]; }>, runInTransaction: boolean): Promise; protected transaction(databaseNative: WebSqlObjectInterface): Promise; }