import DatabaseManager from 'chrome-remote-interface-extra/lib/database/DatabaseManager.js'
DatabaseManager
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(client: Chrome | CRIConnection | CDPSession | Object) |
Member Summary
Private Members | ||
private |
_client: Chrome | CRIConnection | CDPSession | Object |
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
Disables database tracking, prevents database events from being sent to the client. |
|
public |
Enables database tracking, database events will now be delivered to the client. |
|
public |
|
|
public |
executeSQL(databaseId: string, query: string): Promise<SQLQueryResults> |
|
public |
async getDatabaseTableNames(databaseId: string): Promise<Array<string>> |
Private Methods | ||
private |
_onDatabaseAdded(database: CDPDatabase) |
Public Constructors
public constructor(client: Chrome | CRIConnection | CDPSession | Object) source
Params:
Name | Type | Attribute | Description |
client | Chrome | CRIConnection | CDPSession | Object |
Private Members
private _client: Chrome | CRIConnection | CDPSession | Object source
Public Methods
public async disable(): Promise<void> source
Disables database tracking, prevents database events from being sent to the client.
public async enable(): Promise<void> source
Enables database tracking, database events will now be delivered to the client.
public executeSQL(databaseId: string, query: string): Promise<SQLQueryResults> source
public async getDatabaseTableNames(databaseId: string): Promise<Array<string>> source
Params:
Name | Type | Attribute | Description |
databaseId | string | Unique identifier of the Database |
Private Methods
private _onDatabaseAdded(database: CDPDatabase) source
Params:
Name | Type | Attribute | Description |
database | CDPDatabase |
Emit:
Database.databaseAdded |