Commit Graph

95 Commits

Author SHA1 Message Date
KtorZ
652e6518f6
add event handlers to Database and Transaction 2017-06-30 17:19:12 +02:00
KtorZ
bd0306927e
remove EXCEPTION effects from Aff effects and rename eff -> e 2017-06-30 14:12:15 +02:00
KtorZ
fdbbd1703e
add some sugar (defaultParameters) and use type synonym to improve readability 2017-06-30 13:49:59 +02:00
KtorZ
f583308d73
complete test suite for IDBObjectStore 2017-06-30 11:31:10 +02:00
KtorZ
fc4915bddf
add missing export for class method 2017-06-30 11:30:50 +02:00
KtorZ
0bcf2b0323
make CursorDirection non-optional when openin cursor 2017-06-30 11:30:27 +02:00
KtorZ
302a9f31af
add IDBKey instance to Key 2017-06-30 11:30:06 +02:00
KtorZ
ea5183dcc7
complete test cases for IDBKeyRange interface 2017-06-29 18:03:00 +02:00
KtorZ
aeca81c760
add Show instances for other foreign types 2017-06-29 18:02:44 +02:00
KtorZ
889b7767a9
change constructors for IDBKeyRange -> return Maybe when used with Bounce 2017-06-29 17:51:11 +02:00
KtorZ
629979d88f
add Show and Ord instances to IDBKeys 2017-06-29 17:50:13 +02:00
KtorZ
d84ad46e12
rework a bit watching script 2017-06-29 17:06:46 +02:00
KtorZ
ca3346e4ef
fix IDBKeyRange implementation accordingly 2017-06-29 17:06:28 +02:00
KtorZ
41f0d5df7d
add test cases for IDBKeyRange 2017-06-29 17:06:16 +02:00
KtorZ
3004733e9e
add IDBKey instance for numbers 2017-06-29 17:05:53 +02:00
KtorZ
a955d2cfb2
fix wrong native function called introduced during refactor 2017-06-29 17:05:32 +02:00
KtorZ
aa6595d33f
move IDBIndex implementation in an Internal folder (shared with IDBObject) 2017-06-29 17:05:11 +02:00
KtorZ
e1ed58b420
remove old index.html file 2017-06-29 15:49:48 +02:00
KtorZ
277bef4fa1
update tests with latest API changes 2017-06-29 15:49:11 +02:00
KtorZ
45df4f6fe8
add npm and bower to gitignore 2017-06-29 15:43:38 +02:00
KtorZ
ec1fd09edc
add IDBKeyRange API bindings 2017-06-29 15:41:30 +02:00
KtorZ
464d609156
review implementation structure completely. See details
- Introduce type-class for almost all IDB* interfaces

- Expose only methods in type classes and use plain function for attributes getter (methods are
  shared between some entities but not attributes)

- Normalize naming for foreign functions (always start with a _)

- Remove any external imports in native modules (duplicate helper functions in necessary modules
  and inject constructors and helpers from PureScript when necessary)

- Finalize implementation of IDBIndex interface

- Use an Database.IndexedDB.IDBKey.Internal module to hide implementation details about key

- Remove all warnings
2017-06-29 15:39:29 +02:00
KtorZ
607929ce98
write 'start' script for dev using entr (pulp watcher doesn't do well with recursive watch in nested dirs 2017-06-29 11:23:05 +02:00
KtorZ
85e6e996fd
implement binding for IDBCursor
NOTE: source needs some testing about how to determine whether a source is a IDBObjectStore or a IDBIndex
2017-06-29 11:22:24 +02:00
KtorZ
5454bfa567
rename KeyPath -> IDBKey and fix IDBObjectStore type signature 2017-06-29 11:21:30 +02:00
KtorZ
757377cb2b
rename Key -> KeyPath & complete methods binding of IDBObjectStore 2017-06-23 21:39:31 +02:00
KtorZ
27fcfe4dc3
add add() method and corresponding specs 2017-06-23 18:13:25 +02:00
KtorZ
1565c5bd0f
define Key type and implement serialization for Int, String, Date and Array of those 2017-06-23 18:12:59 +02:00
KtorZ
846ad4dd1b
implement direct accessors for IDBObjectStore + fix createObjectStore impl 2017-06-23 14:28:42 +02:00
KtorZ
43f28e480b
add specs for IDBDatabase methods 2017-06-23 14:28:19 +02:00
KtorZ
7e71fe18ab
fix onBlocked callback -> request not ready, so no db accessible 2017-06-23 13:13:48 +02:00
KtorZ
16d379d6cd
write specs for IDBFactory 2017-06-23 13:13:12 +02:00
KtorZ
521f354802
remove Synchronous / Asynchronous type and pass fromMaybe as dependency 2017-06-23 10:34:32 +02:00
KtorZ
a20d12741a
initiate karma test runner 2017-06-23 10:20:39 +02:00
KtorZ
a41af095e7
complete methods for Transaction API 2017-06-22 17:24:08 +02:00
KtorZ
86afd03dbe
move open and deleteDatabase in IDBFactory module 2017-06-22 17:02:29 +02:00
KtorZ
08b42d717d
add transaction method and finalize IDBDatabase API 2017-06-22 16:49:37 +02:00
KtorZ
3945b8a436
remove previously exported Main.js 2017-06-22 16:48:56 +02:00
KtorZ
0b0579aa12
add deleteObjectStore, createObjectStore and close methods to IDBDatabase 2017-06-22 16:19:21 +02:00
KtorZ
02e2a5832e
introduce 'deleteDatabase' method for IDBDatabase 2017-06-22 15:29:19 +02:00
KtorZ
25ecf277d2
move success callback as a result of the Aff computation 2017-06-22 14:56:43 +02:00
KtorZ
57a377b1ef
get hands around FFI in PureScript -> open function done 2017-06-22 14:21:12 +02:00
KtorZ
2c8601441e
initialize the purescript project 2017-06-22 14:20:27 +02:00
KtorZ
fd43068cdf
collect and groom informations on the API specifications 2017-06-16 16:35:58 +02:00
Matthias Benkort
923711b346 Initial commit 2017-06-16 15:12:20 +02:00