IndexedDB::Store class of PicoRuby

Singleton methods

new

IndexedDB::Store.new(Database database, String name, ?js_store: untyped, ?upgrading: bool) -> void

Instance methods

await_request

instance.await_request(untyped req) -> untyped

clear

instance.clear() -> nil

count

instance.count(?untyped? key_or_range) -> Integer

create_index

instance.create_index(String index_name, String key_path, ?unique: bool, ?multi_entry: bool) -> nil

delete

instance.delete(untyped key) -> nil

delete_index

instance.delete_index(String index_name) -> nil

each

instance.each(?untyped? range, ?direction: Symbol) ?{ ([untyped, untyped]) -> void } -> (Enumerator[[untyped, untyped], void] | void)

get

instance.get(untyped key) -> untyped

index

instance.index(String index_name) -> Index

index_names

instance.index_names() -> Array[String]

js_array_to_ruby

instance.js_array_to_ruby(untyped js_arr) -> Array[untyped]

js_to_ruby

instance.js_to_ruby(untyped js_val) -> untyped

keys

instance.keys(?untyped? range) -> Array[untyped]

put

instance.put(untyped value, ?key: untyped?) -> untyped

to_a

instance.to_a(?untyped? range) -> Array[untyped]

to_js_key

instance.to_js_key(untyped key) -> untyped

with_readonly_store

instance.with_readonly_store[T] () { (untyped) -> T } -> T

Attr accessors

name (reader)

instance.name -> String
Tags: class