UNPKG

ionic-database-builder

Version:

Extended library from database-builder to assist in creating and maintaining SQL commands. Allowing integrate execute commands with SQLite ('@ionic-native/sqlite'), Web Sql, etc. Through the interface injection 'DatabaseCreatorContract' returning an imple

15 lines (14 loc) 576 B
import { DatabaseObject } from 'database-builder'; import { Observable, Observer } from 'rxjs'; export declare abstract class DatabaseMigrationBase { version(database: DatabaseObject, version: number): Observable<boolean>; protected error(error: string, observer: Observer<any>): void; protected abstract migrationExecute(database: DatabaseObject, control: { oldVersion: number; newVersion: number; }): Observable<boolean>; private checkTableVersion; private checkVersion; private getVersion; private migration; }