0 | module Web.Raw.IndexedDB
3 | import Web.Internal.IndexedDBPrim
4 | import Web.Internal.Types
17 | {auto 0 _ : JSType t1}
18 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
20 | -> JSIO IDBCursorDirection
21 | direction a = tryJS "IDBCursor.direction" $
IDBCursor.prim__direction (up a)
26 | {auto 0 _ : JSType t1}
27 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
30 | key a = tryJS "IDBCursor.key" $
IDBCursor.prim__key (up a)
35 | {auto 0 _ : JSType t1}
36 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
39 | primaryKey a = tryJS "IDBCursor.primaryKey" $
40 | IDBCursor.prim__primaryKey (up a)
45 | {auto 0 _ : JSType t1}
46 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
49 | request a = primJS $
IDBCursor.prim__request (up a)
54 | {auto 0 _ : JSType t1}
55 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
57 | -> JSIO (HSum [IDBObjectStore, IDBIndex])
58 | source a = tryJS "IDBCursor.source" $
IDBCursor.prim__source (up a)
63 | {auto 0 _ : JSType t1}
64 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
68 | advance a b = primJS $
IDBCursor.prim__advance (up a) b
73 | {auto 0 _ : JSType t1}
74 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
76 | -> (key : Optional Any)
78 | continue' a b = primJS $
IDBCursor.prim__continue (up a) (toFFI b)
82 | {auto 0 _ : JSType t1}
83 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
86 | continue a = primJS $
IDBCursor.prim__continue (up a) undef
90 | continuePrimaryKey :
91 | {auto 0 _ : JSType t1}
92 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
95 | -> (primaryKey : Any)
97 | continuePrimaryKey a b c = primJS $
98 | IDBCursor.prim__continuePrimaryKey (up a) (toFFI b) (toFFI c)
103 | {auto 0 _ : JSType t1}
104 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
107 | delete a = primJS $
IDBCursor.prim__delete (up a)
112 | {auto 0 _ : JSType t1}
113 | -> {auto 0 _ : Elem IDBCursor (Types t1)}
117 | update a b = primJS $
IDBCursor.prim__update (up a) (toFFI b)
121 | namespace IDBCursorWithValue
124 | value : (obj : IDBCursorWithValue) -> JSIO Any
125 | value a = tryJS "IDBCursorWithValue.value" $
IDBCursorWithValue.prim__value a
129 | namespace IDBDatabase
132 | name : (obj : IDBDatabase) -> JSIO String
133 | name a = primJS $
IDBDatabase.prim__name a
137 | objectStoreNames : (obj : IDBDatabase) -> JSIO DOMStringList
138 | objectStoreNames a = primJS $
IDBDatabase.prim__objectStoreNames a
142 | onabort : IDBDatabase -> Attribute False Maybe EventHandlerNonNull
143 | onabort v = fromNullablePrim
144 | "IDBDatabase.getonabort"
151 | onclose : IDBDatabase -> Attribute False Maybe EventHandlerNonNull
152 | onclose v = fromNullablePrim
153 | "IDBDatabase.getonclose"
160 | onerror : IDBDatabase -> Attribute False Maybe EventHandlerNonNull
161 | onerror v = fromNullablePrim
162 | "IDBDatabase.getonerror"
169 | onversionchange : IDBDatabase -> Attribute False Maybe EventHandlerNonNull
170 | onversionchange v = fromNullablePrim
171 | "IDBDatabase.getonversionchange"
172 | prim__onversionchange
173 | prim__setOnversionchange
178 | version : (obj : IDBDatabase) -> JSIO JSBits64
179 | version a = primJS $
IDBDatabase.prim__version a
183 | close : (obj : IDBDatabase) -> JSIO ()
184 | close a = primJS $
IDBDatabase.prim__close a
188 | createObjectStore' :
189 | {auto 0 _ : JSType t3}
190 | -> {auto 0 _ : Elem IDBObjectStoreParameters (Types t3)}
191 | -> (obj : IDBDatabase)
193 | -> (options : Optional t3)
194 | -> JSIO IDBObjectStore
195 | createObjectStore' a b c = primJS $
196 | IDBDatabase.prim__createObjectStore a b (optUp c)
199 | createObjectStore :
200 | (obj : IDBDatabase)
202 | -> JSIO IDBObjectStore
203 | createObjectStore a b = primJS $
IDBDatabase.prim__createObjectStore a b undef
207 | deleteObjectStore : (obj : IDBDatabase) -> (name : String) -> JSIO ()
208 | deleteObjectStore a b = primJS $
IDBDatabase.prim__deleteObjectStore a b
213 | {auto 0 _ : JSType t4}
214 | -> {auto 0 _ : Elem IDBTransactionOptions (Types t4)}
215 | -> (obj : IDBDatabase)
216 | -> (storeNames : HSum [String, Array String])
217 | -> (mode : Optional IDBTransactionMode)
218 | -> (options : Optional t4)
219 | -> JSIO IDBTransaction
220 | transaction' a b c d = primJS $
221 | IDBDatabase.prim__transaction a (toFFI b) (toFFI c) (optUp d)
225 | (obj : IDBDatabase)
226 | -> (storeNames : HSum [String, Array String])
227 | -> JSIO IDBTransaction
228 | transaction a b = primJS $
229 | IDBDatabase.prim__transaction a (toFFI b) undef undef
233 | namespace IDBFactory
236 | cmp : (obj : IDBFactory) -> (first : Any) -> (second : Any) -> JSIO Int16
237 | cmp a b c = primJS $
IDBFactory.prim__cmp a (toFFI b) (toFFI c)
241 | databases : (obj : IDBFactory) -> JSIO (Promise (Array IDBDatabaseInfo))
242 | databases a = primJS $
IDBFactory.prim__databases a
249 | -> JSIO IDBOpenDBRequest
250 | deleteDatabase a b = primJS $
IDBFactory.prim__deleteDatabase a b
257 | -> (version : Optional JSBits64)
258 | -> JSIO IDBOpenDBRequest
259 | open' a b c = primJS $
IDBFactory.prim__open a b (toFFI c)
262 | open_ : (obj : IDBFactory) -> (name : String) -> JSIO IDBOpenDBRequest
263 | open_ a b = primJS $
IDBFactory.prim__open a b undef
270 | keyPath : (obj : IDBIndex) -> JSIO Any
271 | keyPath a = tryJS "IDBIndex.keyPath" $
IDBIndex.prim__keyPath a
275 | multiEntry : (obj : IDBIndex) -> JSIO Bool
276 | multiEntry a = tryJS "IDBIndex.multiEntry" $
IDBIndex.prim__multiEntry a
280 | name : IDBIndex -> Attribute True Prelude.id String
281 | name v = fromPrim "IDBIndex.getname" prim__name prim__setName v
285 | objectStore : (obj : IDBIndex) -> JSIO IDBObjectStore
286 | objectStore a = primJS $
IDBIndex.prim__objectStore a
290 | unique : (obj : IDBIndex) -> JSIO Bool
291 | unique a = tryJS "IDBIndex.unique" $
IDBIndex.prim__unique a
295 | count' : (obj : IDBIndex) -> (query : Optional Any) -> JSIO IDBRequest
296 | count' a b = primJS $
IDBIndex.prim__count a (toFFI b)
299 | count : (obj : IDBIndex) -> JSIO IDBRequest
300 | count a = primJS $
IDBIndex.prim__count a undef
306 | -> (query : Optional Any)
307 | -> (count : Optional Bits32)
309 | getAll' a b c = primJS $
IDBIndex.prim__getAll a (toFFI b) (toFFI c)
312 | getAll : (obj : IDBIndex) -> JSIO IDBRequest
313 | getAll a = primJS $
IDBIndex.prim__getAll a undef undef
319 | -> (query : Optional Any)
320 | -> (count : Optional Bits32)
322 | getAllKeys' a b c = primJS $
IDBIndex.prim__getAllKeys a (toFFI b) (toFFI c)
325 | getAllKeys : (obj : IDBIndex) -> JSIO IDBRequest
326 | getAllKeys a = primJS $
IDBIndex.prim__getAllKeys a undef undef
330 | get : (obj : IDBIndex) -> (query : Any) -> JSIO IDBRequest
331 | get a b = primJS $
IDBIndex.prim__get a (toFFI b)
335 | getKey : (obj : IDBIndex) -> (query : Any) -> JSIO IDBRequest
336 | getKey a b = primJS $
IDBIndex.prim__getKey a (toFFI b)
342 | -> (query : Optional Any)
343 | -> (direction : Optional IDBCursorDirection)
345 | openCursor' a b c = primJS $
IDBIndex.prim__openCursor a (toFFI b) (toFFI c)
348 | openCursor : (obj : IDBIndex) -> JSIO IDBRequest
349 | openCursor a = primJS $
IDBIndex.prim__openCursor a undef undef
355 | -> (query : Optional Any)
356 | -> (direction : Optional IDBCursorDirection)
358 | openKeyCursor' a b c = primJS $
359 | IDBIndex.prim__openKeyCursor a (toFFI b) (toFFI c)
362 | openKeyCursor : (obj : IDBIndex) -> JSIO IDBRequest
363 | openKeyCursor a = primJS $
IDBIndex.prim__openKeyCursor a undef undef
367 | namespace IDBKeyRange
373 | -> (lowerOpen : Optional Bool)
374 | -> (upperOpen : Optional Bool)
375 | -> JSIO IDBKeyRange
376 | bound' a b c d = primJS $
377 | IDBKeyRange.prim__bound (toFFI a) (toFFI b) (toFFI c) (toFFI d)
380 | bound : (lower : Any) -> (upper : Any) -> JSIO IDBKeyRange
381 | bound a b = primJS $
IDBKeyRange.prim__bound (toFFI a) (toFFI b) undef undef
385 | lowerBound' : (lower : Any) -> (open_ : Optional Bool) -> JSIO IDBKeyRange
386 | lowerBound' a b = primJS $
IDBKeyRange.prim__lowerBound (toFFI a) (toFFI b)
389 | lowerBound : (lower : Any) -> JSIO IDBKeyRange
390 | lowerBound a = primJS $
IDBKeyRange.prim__lowerBound (toFFI a) undef
394 | only : (value : Any) -> JSIO IDBKeyRange
395 | only a = primJS $
IDBKeyRange.prim__only (toFFI a)
399 | upperBound' : (upper : Any) -> (open_ : Optional Bool) -> JSIO IDBKeyRange
400 | upperBound' a b = primJS $
IDBKeyRange.prim__upperBound (toFFI a) (toFFI b)
403 | upperBound : (upper : Any) -> JSIO IDBKeyRange
404 | upperBound a = primJS $
IDBKeyRange.prim__upperBound (toFFI a) undef
408 | lower : (obj : IDBKeyRange) -> JSIO Any
409 | lower a = tryJS "IDBKeyRange.lower" $
IDBKeyRange.prim__lower a
413 | lowerOpen : (obj : IDBKeyRange) -> JSIO Bool
414 | lowerOpen a = tryJS "IDBKeyRange.lowerOpen" $
IDBKeyRange.prim__lowerOpen a
418 | upper : (obj : IDBKeyRange) -> JSIO Any
419 | upper a = tryJS "IDBKeyRange.upper" $
IDBKeyRange.prim__upper a
423 | upperOpen : (obj : IDBKeyRange) -> JSIO Bool
424 | upperOpen a = tryJS "IDBKeyRange.upperOpen" $
IDBKeyRange.prim__upperOpen a
428 | includes : (obj : IDBKeyRange) -> (key : Any) -> JSIO Bool
429 | includes a b = tryJS "IDBKeyRange.includes" $
430 | IDBKeyRange.prim__includes a (toFFI b)
434 | namespace IDBObjectStore
437 | autoIncrement : (obj : IDBObjectStore) -> JSIO Bool
438 | autoIncrement a = tryJS "IDBObjectStore.autoIncrement" $
439 | IDBObjectStore.prim__autoIncrement a
443 | indexNames : (obj : IDBObjectStore) -> JSIO DOMStringList
444 | indexNames a = primJS $
IDBObjectStore.prim__indexNames a
448 | keyPath : (obj : IDBObjectStore) -> JSIO Any
449 | keyPath a = tryJS "IDBObjectStore.keyPath" $
IDBObjectStore.prim__keyPath a
453 | name : IDBObjectStore -> Attribute True Prelude.id String
454 | name v = fromPrim "IDBObjectStore.getname" prim__name prim__setName v
458 | transaction : (obj : IDBObjectStore) -> JSIO IDBTransaction
459 | transaction a = primJS $
IDBObjectStore.prim__transaction a
464 | (obj : IDBObjectStore)
466 | -> (key : Optional Any)
468 | add' a b c = primJS $
IDBObjectStore.prim__add a (toFFI b) (toFFI c)
471 | add : (obj : IDBObjectStore) -> (value : Any) -> JSIO IDBRequest
472 | add a b = primJS $
IDBObjectStore.prim__add a (toFFI b) undef
476 | clear : (obj : IDBObjectStore) -> JSIO IDBRequest
477 | clear a = primJS $
IDBObjectStore.prim__clear a
481 | count' : (obj : IDBObjectStore) -> (query : Optional Any) -> JSIO IDBRequest
482 | count' a b = primJS $
IDBObjectStore.prim__count a (toFFI b)
485 | count : (obj : IDBObjectStore) -> JSIO IDBRequest
486 | count a = primJS $
IDBObjectStore.prim__count a undef
491 | {auto 0 _ : JSType t4}
492 | -> {auto 0 _ : Elem IDBIndexParameters (Types t4)}
493 | -> (obj : IDBObjectStore)
495 | -> (keyPath : HSum [String, Array String])
496 | -> (options : Optional t4)
498 | createIndex' a b c d = primJS $
499 | IDBObjectStore.prim__createIndex a b (toFFI c) (optUp d)
503 | (obj : IDBObjectStore)
505 | -> (keyPath : HSum [String, Array String])
507 | createIndex a b c = primJS $
508 | IDBObjectStore.prim__createIndex a b (toFFI c) undef
512 | delete : (obj : IDBObjectStore) -> (query : Any) -> JSIO IDBRequest
513 | delete a b = primJS $
IDBObjectStore.prim__delete a (toFFI b)
517 | deleteIndex : (obj : IDBObjectStore) -> (name : String) -> JSIO ()
518 | deleteIndex a b = primJS $
IDBObjectStore.prim__deleteIndex a b
523 | (obj : IDBObjectStore)
524 | -> (query : Optional Any)
525 | -> (count : Optional Bits32)
527 | getAll' a b c = primJS $
IDBObjectStore.prim__getAll a (toFFI b) (toFFI c)
530 | getAll : (obj : IDBObjectStore) -> JSIO IDBRequest
531 | getAll a = primJS $
IDBObjectStore.prim__getAll a undef undef
536 | (obj : IDBObjectStore)
537 | -> (query : Optional Any)
538 | -> (count : Optional Bits32)
540 | getAllKeys' a b c = primJS $
541 | IDBObjectStore.prim__getAllKeys a (toFFI b) (toFFI c)
544 | getAllKeys : (obj : IDBObjectStore) -> JSIO IDBRequest
545 | getAllKeys a = primJS $
IDBObjectStore.prim__getAllKeys a undef undef
549 | get : (obj : IDBObjectStore) -> (query : Any) -> JSIO IDBRequest
550 | get a b = primJS $
IDBObjectStore.prim__get a (toFFI b)
554 | getKey : (obj : IDBObjectStore) -> (query : Any) -> JSIO IDBRequest
555 | getKey a b = primJS $
IDBObjectStore.prim__getKey a (toFFI b)
559 | index : (obj : IDBObjectStore) -> (name : String) -> JSIO IDBIndex
560 | index a b = primJS $
IDBObjectStore.prim__index a b
565 | (obj : IDBObjectStore)
566 | -> (query : Optional Any)
567 | -> (direction : Optional IDBCursorDirection)
569 | openCursor' a b c = primJS $
570 | IDBObjectStore.prim__openCursor a (toFFI b) (toFFI c)
573 | openCursor : (obj : IDBObjectStore) -> JSIO IDBRequest
574 | openCursor a = primJS $
IDBObjectStore.prim__openCursor a undef undef
579 | (obj : IDBObjectStore)
580 | -> (query : Optional Any)
581 | -> (direction : Optional IDBCursorDirection)
583 | openKeyCursor' a b c = primJS $
584 | IDBObjectStore.prim__openKeyCursor a (toFFI b) (toFFI c)
587 | openKeyCursor : (obj : IDBObjectStore) -> JSIO IDBRequest
588 | openKeyCursor a = primJS $
IDBObjectStore.prim__openKeyCursor a undef undef
593 | (obj : IDBObjectStore)
595 | -> (key : Optional Any)
597 | put' a b c = primJS $
IDBObjectStore.prim__put a (toFFI b) (toFFI c)
600 | put : (obj : IDBObjectStore) -> (value : Any) -> JSIO IDBRequest
601 | put a b = primJS $
IDBObjectStore.prim__put a (toFFI b) undef
605 | namespace IDBOpenDBRequest
608 | onblocked : IDBOpenDBRequest -> Attribute False Maybe EventHandlerNonNull
609 | onblocked v = fromNullablePrim
610 | "IDBOpenDBRequest.getonblocked"
619 | -> Attribute False Maybe EventHandlerNonNull
620 | onupgradeneeded v = fromNullablePrim
621 | "IDBOpenDBRequest.getonupgradeneeded"
622 | prim__onupgradeneeded
623 | prim__setOnupgradeneeded
628 | namespace IDBRequest
632 | {auto 0 _ : JSType t1}
633 | -> {auto 0 _ : Elem IDBRequest (Types t1)}
635 | -> JSIO (Maybe DOMException)
636 | error a = tryJS "IDBRequest.error" $
IDBRequest.prim__error (up a)
641 | {auto 0 _ : JSType t}
642 | -> {auto 0 _ : Elem IDBRequest (Types t)}
644 | -> Attribute False Maybe EventHandlerNonNull
645 | onerror v = fromNullablePrim
646 | "IDBRequest.getonerror"
654 | {auto 0 _ : JSType t}
655 | -> {auto 0 _ : Elem IDBRequest (Types t)}
657 | -> Attribute False Maybe EventHandlerNonNull
658 | onsuccess v = fromNullablePrim
659 | "IDBRequest.getonsuccess"
667 | {auto 0 _ : JSType t1}
668 | -> {auto 0 _ : Elem IDBRequest (Types t1)}
670 | -> JSIO IDBRequestReadyState
671 | readyState a = tryJS "IDBRequest.readyState" $
672 | IDBRequest.prim__readyState (up a)
677 | {auto 0 _ : JSType t1}
678 | -> {auto 0 _ : Elem IDBRequest (Types t1)}
681 | result a = tryJS "IDBRequest.result" $
IDBRequest.prim__result (up a)
686 | {auto 0 _ : JSType t1}
687 | -> {auto 0 _ : Elem IDBRequest (Types t1)}
689 | -> JSIO (Maybe (HSum [IDBObjectStore, IDBIndex, IDBCursor]))
690 | source a = tryJS "IDBRequest.source" $
IDBRequest.prim__source (up a)
695 | {auto 0 _ : JSType t1}
696 | -> {auto 0 _ : Elem IDBRequest (Types t1)}
698 | -> JSIO (Maybe IDBTransaction)
699 | transaction a = tryJS "IDBRequest.transaction" $
700 | IDBRequest.prim__transaction (up a)
704 | namespace IDBTransaction
707 | db : (obj : IDBTransaction) -> JSIO IDBDatabase
708 | db a = primJS $
IDBTransaction.prim__db a
712 | durability : (obj : IDBTransaction) -> JSIO IDBTransactionDurability
713 | durability a = tryJS "IDBTransaction.durability" $
714 | IDBTransaction.prim__durability a
718 | error : (obj : IDBTransaction) -> JSIO (Maybe DOMException)
719 | error a = tryJS "IDBTransaction.error" $
IDBTransaction.prim__error a
723 | mode : (obj : IDBTransaction) -> JSIO IDBTransactionMode
724 | mode a = tryJS "IDBTransaction.mode" $
IDBTransaction.prim__mode a
728 | objectStoreNames : (obj : IDBTransaction) -> JSIO DOMStringList
729 | objectStoreNames a = primJS $
IDBTransaction.prim__objectStoreNames a
733 | onabort : IDBTransaction -> Attribute False Maybe EventHandlerNonNull
734 | onabort v = fromNullablePrim
735 | "IDBTransaction.getonabort"
742 | oncomplete : IDBTransaction -> Attribute False Maybe EventHandlerNonNull
743 | oncomplete v = fromNullablePrim
744 | "IDBTransaction.getoncomplete"
746 | prim__setOncomplete
751 | onerror : IDBTransaction -> Attribute False Maybe EventHandlerNonNull
752 | onerror v = fromNullablePrim
753 | "IDBTransaction.getonerror"
760 | abort : (obj : IDBTransaction) -> JSIO ()
761 | abort a = primJS $
IDBTransaction.prim__abort a
765 | commit : (obj : IDBTransaction) -> JSIO ()
766 | commit a = primJS $
IDBTransaction.prim__commit a
770 | objectStore : (obj : IDBTransaction) -> (name : String) -> JSIO IDBObjectStore
771 | objectStore a b = primJS $
IDBTransaction.prim__objectStore a b
775 | namespace IDBVersionChangeEvent
779 | {auto 0 _ : JSType t2}
780 | -> {auto 0 _ : Elem IDBVersionChangeEventInit (Types t2)}
782 | -> (eventInitDict : Optional t2)
783 | -> JSIO IDBVersionChangeEvent
784 | new' a b = primJS $
IDBVersionChangeEvent.prim__new a (optUp b)
787 | new : (type : String) -> JSIO IDBVersionChangeEvent
788 | new a = primJS $
IDBVersionChangeEvent.prim__new a undef
792 | newVersion : (obj : IDBVersionChangeEvent) -> JSIO (Maybe JSBits64)
793 | newVersion a = tryJS "IDBVersionChangeEvent.newVersion" $
794 | IDBVersionChangeEvent.prim__newVersion a
798 | oldVersion : (obj : IDBVersionChangeEvent) -> JSIO JSBits64
799 | oldVersion a = primJS $
IDBVersionChangeEvent.prim__oldVersion a
809 | namespace IDBDatabaseInfo
813 | (name : Optional String)
814 | -> (version : Optional JSBits64)
815 | -> JSIO IDBDatabaseInfo
816 | new' a b = primJS $
IDBDatabaseInfo.prim__new (toFFI a) (toFFI b)
819 | new : JSIO IDBDatabaseInfo
820 | new = primJS $
IDBDatabaseInfo.prim__new undef undef
825 | {auto 0 _ : JSType t}
826 | -> {auto 0 _ : Elem IDBDatabaseInfo (Types t)}
828 | -> Attribute False Optional String
829 | name v = fromUndefOrPrimNoDefault
830 | "IDBDatabaseInfo.getname"
833 | (v :> IDBDatabaseInfo)
838 | {auto 0 _ : JSType t}
839 | -> {auto 0 _ : Elem IDBDatabaseInfo (Types t)}
841 | -> Attribute False Optional JSBits64
842 | version v = fromUndefOrPrimNoDefault
843 | "IDBDatabaseInfo.getversion"
846 | (v :> IDBDatabaseInfo)
850 | namespace IDBIndexParameters
854 | (unique : Optional Bool)
855 | -> (multiEntry : Optional Bool)
856 | -> JSIO IDBIndexParameters
857 | new' a b = primJS $
IDBIndexParameters.prim__new (toFFI a) (toFFI b)
860 | new : JSIO IDBIndexParameters
861 | new = primJS $
IDBIndexParameters.prim__new undef undef
866 | {auto 0 _ : JSType t}
867 | -> {auto 0 _ : Elem IDBIndexParameters (Types t)}
869 | -> Attribute True Optional Bool
870 | multiEntry v = fromUndefOrPrim
871 | "IDBIndexParameters.getmultiEntry"
873 | prim__setMultiEntry
875 | (v :> IDBIndexParameters)
880 | {auto 0 _ : JSType t}
881 | -> {auto 0 _ : Elem IDBIndexParameters (Types t)}
883 | -> Attribute True Optional Bool
884 | unique v = fromUndefOrPrim
885 | "IDBIndexParameters.getunique"
889 | (v :> IDBIndexParameters)
893 | namespace IDBObjectStoreParameters
897 | (keyPath : Optional (Maybe (HSum [String, Array String])))
898 | -> (autoIncrement : Optional Bool)
899 | -> JSIO IDBObjectStoreParameters
900 | new' a b = primJS $
IDBObjectStoreParameters.prim__new (toFFI a) (toFFI b)
903 | new : JSIO IDBObjectStoreParameters
904 | new = primJS $
IDBObjectStoreParameters.prim__new undef undef
909 | {auto 0 _ : JSType t}
910 | -> {auto 0 _ : Elem IDBObjectStoreParameters (Types t)}
912 | -> Attribute True Optional Bool
913 | autoIncrement v = fromUndefOrPrim
914 | "IDBObjectStoreParameters.getautoIncrement"
915 | prim__autoIncrement
916 | prim__setAutoIncrement
918 | (v :> IDBObjectStoreParameters)
923 | {auto 0 _ : JSType t}
924 | -> {auto 0 _ : Elem IDBObjectStoreParameters (Types t)}
926 | -> Attribute True Optional (Maybe (Union2 String (Array String)))
927 | keyPath v = fromUndefOrPrim
928 | "IDBObjectStoreParameters.getkeyPath"
932 | (v :> IDBObjectStoreParameters)
936 | namespace IDBTransactionOptions
940 | (durability : Optional IDBTransactionDurability)
941 | -> JSIO IDBTransactionOptions
942 | new' a = primJS $
IDBTransactionOptions.prim__new (toFFI a)
945 | new : JSIO IDBTransactionOptions
946 | new = primJS $
IDBTransactionOptions.prim__new undef
951 | {auto 0 _ : JSType t}
952 | -> {auto 0 _ : Elem IDBTransactionOptions (Types t)}
954 | -> Attribute False Optional IDBTransactionDurability
955 | durability v = fromUndefOrPrimNoDefault
956 | "IDBTransactionOptions.getdurability"
958 | prim__setDurability
959 | (v :> IDBTransactionOptions)
963 | namespace IDBVersionChangeEventInit
967 | (oldVersion : Optional JSBits64)
968 | -> (newVersion : Optional (Maybe JSBits64))
969 | -> JSIO IDBVersionChangeEventInit
970 | new' a b = primJS $
IDBVersionChangeEventInit.prim__new (toFFI a) (toFFI b)
973 | new : JSIO IDBVersionChangeEventInit
974 | new = primJS $
IDBVersionChangeEventInit.prim__new undef undef
979 | {auto 0 _ : JSType t}
980 | -> {auto 0 _ : Elem IDBVersionChangeEventInit (Types t)}
982 | -> Attribute True Optional (Maybe JSBits64)
983 | newVersion v = fromUndefOrPrim
984 | "IDBVersionChangeEventInit.getnewVersion"
986 | prim__setNewVersion
988 | (v :> IDBVersionChangeEventInit)
993 | {auto 0 _ : JSType t}
994 | -> {auto 0 _ : Elem IDBVersionChangeEventInit (Types t)}
996 | -> Attribute True Optional JSBits64
997 | oldVersion v = fromUndefOrPrim
998 | "IDBVersionChangeEventInit.getoldVersion"
1002 | (v :> IDBVersionChangeEventInit)