For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface IDBFactory

The IDBFactory interface of the IndexedDB API lets applications asynchronously access the indexed databases.

MDN Reference

interface IDBFactory {
    cmp(first: any, second: any): number;
    databases(): Promise<IDBDatabaseInfo[]>;
    deleteDatabase(name: string): IDBOpenDBRequest;
    open(name: string, version?: number): IDBOpenDBRequest;
}
Index

Methods

  • The cmp() method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.

    MDN Reference

    Parameters

    • first: any
    • second: any

    Returns number

  • The databases method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.

    MDN Reference

    Returns Promise<IDBDatabaseInfo[]>

  • The deleteDatabase() method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.

    MDN Reference

    Parameters

    • name: string

    Returns IDBOpenDBRequest

  • The open() method of the IDBFactory interface requests opening a connection to a database.

    MDN Reference

    Parameters

    • name: string
    • Optionalversion: number

    Returns IDBOpenDBRequest

Was this helpful?