public interface

SQLiteTrace

com.tencent.wcdb.database.SQLiteTrace

Class Overview

Callback interface for SQLite trace events.

Summary

Public Methods
abstract void onConnectionPoolBusy(SQLiteDatabase db, String sql, List<String> requests, String message)
Called when connection pool is blocked by other statement execution for a long time.
abstract void onDatabaseCorrupted(SQLiteDatabase db)
Called on database corruption detected.
abstract void onSQLExecuted(SQLiteDatabase db, String sql, int type, long time)
Called when a SQL statement finished execution.

Public Methods

public abstract void onConnectionPoolBusy (SQLiteDatabase db, String sql, List<String> requests, String message)

Called when connection pool is blocked by other statement execution for a long time.

Parameters
db database on which connection pool is blocked
sql statement to be executed
requests list of statement being executed
message message generated by the connection pool

public abstract void onDatabaseCorrupted (SQLiteDatabase db)

Called on database corruption detected. This is valid on default error handler only. See DatabaseErrorHandler

Parameters
db the corrupted database

public abstract void onSQLExecuted (SQLiteDatabase db, String sql, int type, long time)

Called when a SQL statement finished execution.

Parameters
db database on which the statement was executed
sql statement executed
type type of the statement. See getSqlStatementType(String)
time time spent on execution, in milliseconds.