73 Commits

Author SHA1 Message Date
Jaremy Creechley
24ce85e49b
add tests for new ds'es 2023-09-07 17:31:21 -06:00
Jaremy Creechley
619d3e9d56
add tests for new ds'es 2023-09-07 17:31:21 -06:00
Jaremy Creechley
0caa606f3e
fix test 2023-09-07 17:31:21 -06:00
Jaremy Creechley
1f0012530d
fix compiler issue -- wasn't detecting discard on result correctly 2023-09-07 17:31:20 -06:00
Jaremy Creechley
2d2b663516
compiler really doesn't like this 2023-09-07 17:31:20 -06:00
Jaremy Creechley
221d193b80
query iterator using items is breaks when the DS isn't blocking 2023-09-07 17:31:20 -06:00
Jaremy Creechley
8fccc77387
query iterator using items is breaks when the DS isn't blocking 2023-09-07 17:31:20 -06:00
Jaremy Creechley
9b004cde03
query iterator using items is breaks when the DS isn't blocking 2023-09-07 17:31:20 -06:00
Jaremy Creechley
ed508b4be9
query iterator using items is breaks when the DS isn't blocking 2023-09-07 17:31:20 -06:00
Jaremy Creechley
52286b8b39
query iterator using items is breaks when the DS isn't blocking 2023-09-07 17:31:20 -06:00
Jaremy Creechley
2c881d9eef
cleanup 2023-09-07 17:31:19 -06:00
Jaremy Creechley
76ec7e7f16
implementing query type 2023-09-07 17:31:19 -06:00
Jaremy Creechley
2979ae08fd
implementing query type 2023-09-07 17:31:18 -06:00
Jaremy Creechley
7a3c64d425
switch to result type 2023-09-07 17:31:17 -06:00
Jaremy Creechley
5f13765a49
switch to result type 2023-09-07 17:31:17 -06:00
Jaremy Creechley
485f2ecaed
cleanup 2023-09-07 17:31:17 -06:00
Jaremy Creechley
a2c9a7efc3
various cleanup 2023-09-07 17:31:16 -06:00
Jaremy Creechley
22c9d8556a
rename sharedds to threadproxyds 2023-09-07 17:31:16 -06:00
Jaremy Creechley
40cc03e3c3
updates 2023-09-07 17:31:15 -06:00
Jaremy Creechley
6364c8316d
test setup 2023-09-07 17:31:15 -06:00
Jaremy Creechley
a68ce94c8d
test setup 2023-09-07 17:31:15 -06:00
Jaremy Creechley
03830cef8f
cleanup 2023-09-07 17:31:15 -06:00
Jaremy Creechley
b27593e8cf
cleanup 2023-09-07 17:31:15 -06:00
Jaremy Creechley
a11a681a6f
basic datstore checks 2023-09-07 17:31:14 -06:00
Jaremy Creechley
344ba6a19b
basic datstore checks 2023-09-07 17:31:14 -06:00
Jaremy Creechley
23423e52a9
add memory (test) ds 2023-09-07 17:31:14 -06:00
Jaremy Creechley
de406a5b11
add memory (test) ds 2023-09-07 17:31:13 -06:00
Jaremy Creechley
904d65b98a
add memory (test) ds 2023-09-07 17:31:13 -06:00
Jaremy Creechley
727f8b6c2a
properly close signal even on cancel 2023-09-07 17:31:12 -06:00
Jaremy Creechley
86a7085539
switching up 2023-09-07 17:31:11 -06:00
Jaremy Creechley
6c133a2551
cleanup 2023-09-07 17:31:11 -06:00
Jaremy Creechley
0b2e016883
adding sharedds get 2023-09-07 17:31:11 -06:00
Jaremy Creechley
f66531de06
passing put args 2023-09-07 17:31:11 -06:00
Jaremy Creechley
8ab5da01c6
create backend 2023-09-07 17:31:10 -06:00
Jaremy Creechley
464896bf88
adding test backend 2023-09-07 17:31:10 -06:00
Jaremy Creechley
0daf1683e8
adding testing 2023-09-07 17:31:09 -06:00
Jaremy Creechley
edc9321658
updates 2023-09-07 17:31:07 -06:00
Jaremy Creechley
e81c5faf40
add helpers 2023-09-07 17:31:07 -06:00
Jaremy Creechley
542fdf268c
initial data buffer 2023-09-07 17:31:06 -06:00
Dmitriy Ryajov
030dc9e16e
fix conflicting testing symbols 2023-09-07 17:26:34 -06:00
Dmitriy Ryajov
b322d0bb8e
setup the path correctly 2023-09-07 17:26:16 -06: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
e6430b6b85
close db 2022-09-20 09:51:28 -06:00
Dmitriy Ryajov
a3781edc6a
remove path sanitization for now, address in upcoming pr 2022-09-20 09:16:56 -06:00