53 Commits

Author SHA1 Message Date
Jaremy Creechley
02956c6fb9
various cleanup 2023-08-29 13:14:33 -07:00
Jaremy Creechley
0f32ea2344
rename sharedds to threadproxyds 2023-08-29 12:50:36 -07:00
Jaremy Creechley
ae584e900a
updates 2023-08-28 22:26:00 -07:00
Jaremy Creechley
7b053c8b2b
test setup 2023-08-28 22:18:08 -07:00
Jaremy Creechley
bf663c4d90
test setup 2023-08-28 21:59:31 -07:00
Jaremy Creechley
a06adf3388
cleanup 2023-08-28 21:56:29 -07:00
Jaremy Creechley
9c3542ac3d
cleanup 2023-08-28 21:45:55 -07:00
Jaremy Creechley
f0e79a696e
basic datstore checks 2023-08-28 19:55:05 -07:00
Jaremy Creechley
0f0a85a046
basic datstore checks 2023-08-28 19:51:34 -07:00
Jaremy Creechley
af73966357
add memory (test) ds 2023-08-28 19:44:41 -07:00
Jaremy Creechley
5cc0af4b56
add memory (test) ds 2023-08-28 18:43:42 -07:00
Jaremy Creechley
344b50c703
add memory (test) ds 2023-08-28 18:22:53 -07:00
Jaremy Creechley
892bd550d5
properly close signal even on cancel 2023-08-25 15:00:18 -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
591b7f1fd4
create backend 2023-08-24 21:18:22 -07:00
Jaremy Creechley
9e6be88af7
adding test backend 2023-08-24 19:59:37 -07:00
Jaremy Creechley
f7a4f82e9b
adding testing 2023-08-24 19:51:04 -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
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
a045aa4ef1
close db 2022-09-19 23:11:57 -06:00
Dmitriy Ryajov
29577b6dd7
paths are already sanitized, removing allowed 2022-09-19 23:01:10 -06:00
Dmitriy Ryajov
9901e71a88
add basic tests to tired ds 2022-09-19 17:23:19 -06:00
Dmitriy Ryajov
c60ff35bdd
cleanup tired db tests 2022-09-19 17:14:06 -06:00
Dmitriy Ryajov
1f97a923fa
fix query basic test 2022-09-19 17:13:46 -06:00
Dmitriy Ryajov
60e0ea5573
get rid of null datastore 2022-09-19 17:12:52 -06:00
Dmitriy Ryajov
f5c7a3c02b
add common basic tests 2022-09-19 15:54:29 -06:00
Dmitriy Ryajov
86b13495f1
rename tests 2022-09-19 15:54:19 -06:00
Dmitriy Ryajov
36655e318a
cleanup tests 2022-09-19 15:53:38 -06:00
Dmitriy Ryajov
c7df334836
rename sql tests 2022-09-16 21:15:43 -06:00
Dmitriy Ryajov
5d29ad905d
add sql backend tests 2022-09-16 21:15:28 -06:00
Dmitriy Ryajov
77807d8948
wip: rework sql store tests 2022-09-16 21:15:08 -06:00
Dmitriy Ryajov
acd77c5385
rename and cleanup fs store tests 2022-09-16 21:14:02 -06:00
Dmitriy Ryajov
f0f979539f
cleanup key tests 2022-09-16 21:13:03 -06:00
Dmitriy Ryajov
78653d9dd4
wip 2022-09-12 12:30:52 -06:00
Dmitriy Ryajov
ed6842b743
simplify key api 2022-09-10 13:50:05 -06:00
Michael Bradley, Jr
2769ce1de2 refactor Datastore impls so root/basePath creation is user's responsibility 2022-08-08 16:33:54 -05:00
Michael Bradley, Jr
249f63a589 add basic query implementation 2022-07-21 13:20:43 -05:00
Michael Bradley, Jr
bf6724b30a
capitalize AS so as to be consistent with capitalizing SELECT, etc. 2022-07-15 11:11:53 -05:00