storj/pkg/irreparabledb/dbx/irreparabledb.dbx
aligeti 9f6e5d6731
Keep track of 'irreparable' segments in a database (#686)
* initial irreparable development

* added the Open, Insert, Update, Get, Delete, Close  support

* added the Unit test cases

* code review changes
2018-12-04 11:26:30 -05:00

18 lines
499 B
Plaintext

// dbx.v1 golang irreparabledb.dbx .
model irreparabledb (
key segmentpath
field segmentpath blob
field segmentdetail blob (updatable)
field pieces_lost_count int64 (updatable)
field seg_damaged_unix_sec int64 (updatable)
field repair_attempt_count int64 (updatable)
)
create irreparabledb ( )
update irreparabledb ( where irreparabledb.segmentpath = ? )
delete irreparabledb ( where irreparabledb.segmentpath = ? )
read one (
select irreparabledb
where irreparabledb.segmentpath = ?
)