Revision 4d15c94e snf-pithos-backend/pithos/backends/lib/sqlite/xfeatures.py
b/snf-pithos-backend/pithos/backends/lib/sqlite/xfeatures.py | ||
---|---|---|
99 | 99 |
q = "delete from xfeatures where path = ?" |
100 | 100 |
self.execute(q, (path,)) |
101 | 101 |
|
102 |
def xfeature_destroy_bulk(self, paths): |
|
103 |
"""Destroy features and all their key, value pairs.""" |
|
104 |
|
|
105 |
placeholders = ','.join('?' for path in paths) |
|
106 |
q = "delete from xfeatures where path in (%s)" % placeholders |
|
107 |
self.execute(q, paths) |
|
108 |
|
|
102 | 109 |
def feature_dict(self, feature): |
103 | 110 |
"""Return a dict mapping keys to list of values for feature.""" |
104 | 111 |
|
Also available in: Unified diff