89 Commits

Author SHA1 Message Date
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
3da60e021b
add threadid 2023-09-07 17:31:11 -06:00
Jaremy Creechley
8ab5da01c6
create backend 2023-09-07 17:31:10 -06:00
Jaremy Creechley
a3cff9861b
updates 2023-09-07 17:31:10 -06:00
Jaremy Creechley
ab850d4114
updates 2023-09-07 17:31:10 -06:00
Jaremy Creechley
a9e90766cc
updates 2023-09-07 17:31:10 -06:00
Jaremy Creechley
0790ccacef
setup sharedptr 2023-09-07 17:31:10 -06:00
Jaremy Creechley
6c5059ecdf
fixing tp setup 2023-09-07 17:31:10 -06:00
Jaremy Creechley
464896bf88
adding test backend 2023-09-07 17:31:10 -06:00
Jaremy Creechley
2e9695ea86
adding testing 2023-09-07 17:31:10 -06:00
Jaremy Creechley
d5fe24c372
adding testing 2023-09-07 17:31:09 -06:00
Jaremy Creechley
b48e45c03f
adding testing 2023-09-07 17:31:09 -06:00
Jaremy Creechley
567f84e460
cleanup 2023-09-07 17:31:09 -06:00
Jaremy Creechley
321a4b6749
cleanup 2023-09-07 17:31:09 -06:00
Jaremy Creechley
567e0d7003
fixes 2023-09-07 17:31:09 -06:00
Jaremy Creechley
8644cbc9dc
fixes 2023-09-07 17:31:09 -06:00
Jaremy Creechley
28097881f8
getting somewhere now 2023-09-07 17:31:08 -06:00
Jaremy Creechley
368c25172e
more changes 2023-09-07 17:31:08 -06:00
Jaremy Creechley
ec4b442125
more changes 2023-09-07 17:31:08 -06:00
Jaremy Creechley
972ee22efd
more changes 2023-09-07 17:31:08 -06:00
Jaremy Creechley
a0d60cc9be
reworking results and tasks 2023-09-07 17:31:08 -06:00
Jaremy Creechley
3bde00d111
plumbing values 2023-09-07 17:31:08 -06:00
Jaremy Creechley
5ef4196e51
plumbing values 2023-09-07 17:31:08 -06:00
Jaremy Creechley
055edb4a41
plumbing values 2023-09-07 17:31:08 -06:00
Jaremy Creechley
d09ef9b21a
plumbing 2023-09-07 17:31:07 -06:00
Jaremy Creechley
d39c0965ff
setting up thread backend 2023-09-07 17:31:07 -06:00
Jaremy Creechley
edc9321658
updates 2023-09-07 17:31:07 -06:00
Jaremy Creechley
e592aaf74e
updating items 2023-09-07 17:31:07 -06:00
Jaremy Creechley
57450fe25a
make blank sharedds 2023-09-07 17:31:07 -06:00
Jaremy Creechley
da0eafe16e
setup shared datastore 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
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
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
Dmitriy Ryajov
bb387650ab
exclude windows from protected dirs checking 2022-09-19 23:19:38 -06:00
Dmitriy Ryajov
b4b90485ef
wip 2022-09-19 23:11:47 -06:00
Dmitriy Ryajov
29577b6dd7
paths are already sanitized, removing allowed 2022-09-19 23:01:10 -06:00
Dmitriy Ryajov
309ac94f21
test invalid char on windows 2022-09-19 22:40:46 -06:00
Dmitriy Ryajov
fc842663bb
implement close method for sqlite 2022-09-19 22:40:01 -06:00
Dmitriy Ryajov
68f3f86cd9
fix invalid identation on nim 1.6.6 2022-09-19 22:31:24 -06:00
Dmitriy Ryajov
1dfc30f64a
more valid chars 2022-09-19 22:28:58 -06:00