265 Commits

Author SHA1 Message Date
Jaremy Creechley
aa0392486f
switch to smartptrs 2023-08-25 15:08:19 -07:00
Jaremy Creechley
892bd550d5
properly close signal even on cancel 2023-08-25 15:00:18 -07:00
Jaremy Creechley
4798fd7e9b
switching up errors 2023-08-25 14:48:49 -07:00
Jaremy Creechley
61b1046707
switching up errors 2023-08-25 14:46:29 -07:00
Jaremy Creechley
73899e7fcf
switching up 2023-08-25 14:34:11 -07:00
Jaremy Creechley
ef402c4276
cleanup 2023-08-24 22:20:49 -07:00
Jaremy Creechley
93898c4e24
adding sharedds get 2023-08-24 22:14:21 -07:00
Jaremy Creechley
5501126b99
passing put args 2023-08-24 21:55:53 -07:00
Jaremy Creechley
790b8449bd
add threadid 2023-08-24 21:19:59 -07:00
Jaremy Creechley
591b7f1fd4
create backend 2023-08-24 21:18:22 -07:00
Jaremy Creechley
ef32d38f58
updates 2023-08-24 21:07:07 -07:00
Jaremy Creechley
79f6a22a3f
updates 2023-08-24 20:44:50 -07:00
Jaremy Creechley
94c6526345
updates 2023-08-24 20:28:22 -07:00
Jaremy Creechley
1187bb6cc2
setup sharedptr 2023-08-24 20:15:22 -07:00
Jaremy Creechley
dbce1538fd
fixing tp setup 2023-08-24 20:07:03 -07:00
Jaremy Creechley
9e6be88af7
adding test backend 2023-08-24 19:59:37 -07:00
Jaremy Creechley
0b34b68a43
adding testing 2023-08-24 19:56:36 -07:00
Jaremy Creechley
b13758dd30
adding testing 2023-08-24 19:55:44 -07:00
Jaremy Creechley
f7a4f82e9b
adding testing 2023-08-24 19:51:04 -07:00
Jaremy Creechley
7560713a41
adding testing 2023-08-24 19:50:58 -07:00
Jaremy Creechley
39e915fc11
cleanup 2023-08-24 19:10:08 -07:00
Jaremy Creechley
669bdd7297
cleanup 2023-08-24 19:05:12 -07:00
Jaremy Creechley
9e778c6649
fixes 2023-08-24 19:02:46 -07:00
Jaremy Creechley
4964604963
fixes 2023-08-24 18:57:06 -07:00
Jaremy Creechley
7017dd7593
getting somewhere now 2023-08-24 18:53:06 -07:00
Jaremy Creechley
90e0ca364d
more changes 2023-08-24 18:48:56 -07:00
Jaremy Creechley
a6fa280c91
more changes 2023-08-24 18:35:56 -07:00
Jaremy Creechley
04927c9faa
more changes 2023-08-24 18:33:20 -07:00
Jaremy Creechley
8a41b0651b
reworking results and tasks 2023-08-24 18:28:30 -07:00
Jaremy Creechley
909c676c26
plumbing values 2023-08-24 18:06:02 -07:00
Jaremy Creechley
221bfb7433
plumbing values 2023-08-24 17:59:43 -07:00
Jaremy Creechley
7926417db4
plumbing values 2023-08-24 17:33:32 -07:00
Jaremy Creechley
394ff94c49
plumbing 2023-08-24 16:32:57 -07:00
Jaremy Creechley
141c7f75fa
setting up thread backend 2023-08-24 16:29:25 -07:00
Jaremy Creechley
37d2c8c06b
updates 2023-08-24 16:18:31 -07:00
Jaremy Creechley
b9880d636f
updating items 2023-08-24 16:02:13 -07:00
Jaremy Creechley
3243038838
make blank sharedds 2023-08-24 15:57:15 -07:00
Jaremy Creechley
3937d570d0
setup shared datastore 2023-08-24 15:51:25 -07:00
Jaremy Creechley
597b16e3c3
add helpers 2023-08-24 15:25:15 -07:00
Jaremy Creechley
81eb8034da
initial data buffer 2023-08-24 15:19:52 -07:00
Ben Bierens
0cde8aeb67
enables stylecheck (#40) 2023-03-09 10:24:44 +01:00
Dmitriy Ryajov
44c198b96a
rework contains to return a bool (#39) 2022-12-02 16:25:44 -06:00
Dmitriy Ryajov
9d49c8016e
Several fixes and missing features (#38)
* shorten lines

* only return data when `query.value == true`

* test `query.value = false`

* close mounted ds

* allow passing dispose to query iter constructor

* fix fs querying

* use currentSourcePath

* remove `dsobj` extensions from directories

* don't return error on missing key delete

* return `DatastoreKeyNotFound` on empty `get`

* return `DatastoreKeyNotFound` on missing sql key
2022-11-22 15:23:23 -06:00
Dmitriy Ryajov
6c06a3b095
Adding batching capabilities (#37)
* adding batch entry

* add batched put and delete

* add batched tests

* adding batching capabilities to remaining stores

* open db in readonly mode

* make naming consistent

* release prepared statements

* don't use deprecated add

* check file exists on test exit

* remove unused var
2022-09-30 08:24:26 -06:00
Dmitriy Ryajov
308b5c08be
Better fsds path sanitization (#31)
* add better path sanytizing

* rebase master

* Bugfixed and moved all checks into path()

* added check for empty basename in order to avoid bug in isValidFilename
* refactored - all filename checks are moved into path() function that constructs this filename

Co-authored-by: Bulat-Ziganshin <bulat.ziganshin@gmail.com>
2022-09-29 11:56:24 -06:00
Dmitriy Ryajov
f5dadd93be
Adding mounted store (#33)
* adding monted store

* misc spelling

* adding mounted store tests to suite

* split out key

* relaxed key initialization

* always mount and lookup by path

* cleaned up and reorged tests

* test lookup by path

* add re-exports

* more re-exports

* fix warnings and re-exports
2022-09-21 18:13:50 -06:00
Dmitriy Ryajov
446de6f978
Fsds query (#32)
* add basic query capabilities to fsds

* rename common tests

* make query tests common

* sanitize key

* check it's possible to query keys at same level
2022-09-20 18:18:33 -06:00
Dmitriy Ryajov
02167bb69e
Add proper sqlite query support (#30)
* Add query support for sqlite backend

* basic tests with in memory ds

* remove `close` default implementation
2022-09-20 14:41:54 -06:00
Dmitriy Ryajov
8775b2d49a
Merge pull request #29 from status-im/refactor
Refactor datastore to prepare for proper query support
2022-09-20 14:12:08 -04:00
Dmitriy Ryajov
e6430b6b85
close db 2022-09-20 09:51:28 -06:00