summaryrefslogtreecommitdiffstats
path: root/custodia/store/sqlite.py
Commit message (Collapse)AuthorAgeFilesLines
* Extend store interface to create namespacesSimo Sorce2015-10-191-0/+37
| | | | | | | | | | Use a new verb, "span" to create namespaces/containers. This will be needed for the Etcd plugin which need to distinguish between a directory and a key. The sqlite/enclite just pass the request to their set() method. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Christian Heimes <cheimes@redhat.com>
* Remove filter option for directory listingsSimo Sorce2015-10-191-25/+31
| | | | | | | | | | This commit removes the option to pas a filter parameter. It also changes the way database plugins are expected to return results, results are now expected to be relative to the path requested. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Christian Heimes <cheimes@redhat.com>
* Make tox pep8 happySimo Sorce2015-10-191-5/+5
| | | | | Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Christian Heimes <cheimes@redhat.com>
* Return only key/containers names on LIST operationSimo Sorce2015-04-081-20/+16
|
* Always initialize db on store class instantiationSimo Sorce2015-04-081-10/+15
| | | | | | | | This will precreate the default tale if it doesn't exist and fail early if there are general database issues. Also change all CSStoreError events to report a 500 error and not silently transform them into innocuous 'no such data' errors.
* Add explicit exception for storage conflictsSimo Sorce2015-04-071-2/+4
|
* Add interface to remove data from storeSimo Sorce2015-04-071-0/+27
|
* Allow caller to decide if replace is allowedSimo Sorce2015-04-071-2/+15
| | | | | | | When storing the caller decide if the DB can silently replace an existing value or not. Defaults to False
* Add Sqlite store unit testsSimo Sorce2015-04-071-0/+89
|
* Fix sqlite's list() commandSimo Sorce2015-04-061-3/+9
| | | | | | | | When listing do not add a / to the user filter it prevents matching key names with a prefix. When returning keys return a dict of key value pairs. If no values are available instead return None
* Fix sqlite store bugsSimo Sorce2015-04-011-4/+9
| | | | | | Use print statement that works in python3 Create table so that keys are unique. Return directly the bare value associated with the key, if any.
* Initial sinple store infrastructureSimo Sorce2015-03-251-0/+62