KtorZ
cd93ad676e
add documentation to IDBTransaction + complete db and objectStoreNames accessor
2017-07-06 15:17:36 +02:00
KtorZ
6f7562fe4f
add documentation to IDBObjectStore
2017-07-06 15:08:34 +02:00
KtorZ
02acc707ee
add documentation to IDBKeyRange
2017-07-06 14:59:13 +02:00
KtorZ
3461bebbce
add documentation for IDBKeys
2017-07-06 14:38:30 +02:00
KtorZ
d19b84c291
add documentation for IDBIndex
2017-07-06 14:30:50 +02:00
KtorZ
2ab8adb219
add documentation to IDBFactory
2017-07-06 14:12:45 +02:00
KtorZ
5ec6af3d40
add documentation to IDBDatabase
2017-07-06 14:06:01 +02:00
KtorZ
e3e8c10e95
add documentation to IDBCursor module + wrap key & primaryKey return types in Aff (can throw)
2017-07-06 13:55:19 +02:00
KtorZ
d1ae85cce3
add documentation to the Core module
2017-07-06 13:54:51 +02:00
KtorZ
d86c6e0497
prepare CI environment
2017-07-06 12:26:28 +02:00
KtorZ
1a1e3e3810
rework README
2017-06-30 23:47:30 +02:00
KtorZ
cba6b08b7a
finalize implementation of cursor.source
2017-06-30 22:51:07 +02:00
KtorZ
c958e2d134
add few test cases for IDBIndex
2017-06-30 22:50:57 +02:00
KtorZ
751b940437
fix boolean inversion in Spec.Mocha for describe.only
2017-06-30 22:43:22 +02:00
KtorZ
9c145f91c5
wrap all native calls with Aff in try catch (they can throw out of the onerror callback :|)
2017-06-30 22:43:02 +02:00
KtorZ
a2bf21df62
replace all Eff with Aff for consistency and ease of use
2017-06-30 21:15:20 +02:00
KtorZ
8dcfdda43b
remove Main file
2017-06-30 18:41:21 +02:00
KtorZ
9877c1ca1b
review test cases and add some for IDBIndex
2017-06-30 18:39:57 +02:00
KtorZ
a5170f3893
Use IDBKey type-class to make add & put more friendly
2017-06-30 18:39:36 +02:00
KtorZ
376d435658
add missing alternative case for Array in Eq, Ord and Show instances of IDBKey
2017-06-30 18:39:10 +02:00
KtorZ
ae0952a5df
add transaction to onUpgradeNeeded callback
2017-06-30 17:19:31 +02:00
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