Home Reference Source
public class | since chrome-remote-interface-extra | source

DatabaseManager

Extends:

eventemitter3~EventEmitter → DatabaseManager

See:

Constructor Summary

Public Constructor
public

constructor(client: Chrome | CRIConnection | CDPSession | Object)

Member Summary

Private Members
private
private
private

Method Summary

Public Methods
public

async disable(): Promise<void>

Disables database tracking, prevents database events from being sent to the client.

public

async enable(): Promise<void>

Enables database tracking, database events will now be delivered to the client.

public
public
public
Private Methods
private

Public Constructors

public constructor(client: Chrome | CRIConnection | CDPSession | Object) source

Params:

NameTypeAttributeDescription
client Chrome | CRIConnection | CDPSession | Object

Private Members

private _client: Chrome | CRIConnection | CDPSession | Object source

private _clientListeners: Array<Object> source

private _enabled: boolean source

Public Methods

public async disable(): Promise<void> source

Disables database tracking, prevents database events from being sent to the client.

Return:

Promise<void>

See:

public async enable(): Promise<void> source

Enables database tracking, database events will now be delivered to the client.

Return:

Promise<void>

See:

public enabled(): boolean source

Return:

boolean

public executeSQL(databaseId: string, query: string): Promise<SQLQueryResults> source

Params:

NameTypeAttributeDescription
databaseId string

Unique identifier of the Database

query string

The SQL query

See:

public async getDatabaseTableNames(databaseId: string): Promise<Array<string>> source

Params:

NameTypeAttributeDescription
databaseId string

Unique identifier of the Database

Return:

Promise<Array<string>>

See:

Private Methods

private _onDatabaseAdded(database: CDPDatabase) source

Params:

NameTypeAttributeDescription
database CDPDatabase

Emit:

Database.databaseAdded