clj-chrome-devtools.commands.indexed-db

clear-object-store

(clear-object-store)(clear-object-store {:as params, :keys [security-origin database-name object-store-name]})(clear-object-store connection {:as params, :keys [security-origin database-name object-store-name]})

Clears all entries from an object store.

Parameters map keys:

Key Description
:security-origin Security origin.
:database-name Database name.
:object-store-name Object store name.

delete-database

(delete-database)(delete-database {:as params, :keys [security-origin database-name]})(delete-database connection {:as params, :keys [security-origin database-name]})

Deletes a database.

Parameters map keys:

Key Description
:security-origin Security origin.
:database-name Database name.

delete-object-store-entries

(delete-object-store-entries)(delete-object-store-entries {:as params, :keys [security-origin database-name object-store-name key-range]})(delete-object-store-entries connection {:as params, :keys [security-origin database-name object-store-name key-range]})

Delete a range of entries from an object store

Parameters map keys:

Key Description
:security-origin null
:database-name null
:object-store-name null
:key-range Range of entry keys to delete

disable

(disable)(disable {:as params, :keys []})(disable connection {:as params, :keys []})

Disables events from backend.

enable

(enable)(enable {:as params, :keys []})(enable connection {:as params, :keys []})

Enables events from backend.

get-metadata

(get-metadata)(get-metadata {:as params, :keys [security-origin database-name object-store-name]})(get-metadata connection {:as params, :keys [security-origin database-name object-store-name]})

Gets metadata of an object store

Parameters map keys:

Key Description
:security-origin Security origin.
:database-name Database name.
:object-store-name Object store name.

Return map keys:

Key Description
:entries-count the entries count
:key-generator-value the current value of key generator, to become the next inserted

key into the object store. Valid if objectStore.autoIncrement is true.

request-data

(request-data)(request-data {:as params, :keys [security-origin database-name object-store-name index-name skip-count page-size key-range]})(request-data connection {:as params, :keys [security-origin database-name object-store-name index-name skip-count page-size key-range]})

Requests data from object store or index.

Parameters map keys:

Key Description
:security-origin Security origin.
:database-name Database name.
:object-store-name Object store name.
:index-name Index name, empty string for object store data requests.
:skip-count Number of records to skip.
:page-size Number of records to fetch.
:key-range Key range. (optional)

Return map keys:

Key Description
:object-store-data-entries Array of object store data entries.
:has-more If true, there are more entries to fetch in the given range.

request-database

(request-database)(request-database {:as params, :keys [security-origin database-name]})(request-database connection {:as params, :keys [security-origin database-name]})

Requests database with given name in given frame.

Parameters map keys:

Key Description
:security-origin Security origin.
:database-name Database name.

Return map keys:

Key Description
:database-with-object-stores Database with an array of object stores.

request-database-names

(request-database-names)(request-database-names {:as params, :keys [security-origin]})(request-database-names connection {:as params, :keys [security-origin]})

Requests database names for given security origin.

Parameters map keys:

Key Description
:security-origin Security origin.

Return map keys:

Key Description
:database-names Database names for origin.