Database object storage backend for Ceph. The Cdobs class implements the SQL datastorage accroding to the schema described here.
Install the following packages on Fedora for SQLite3:
sudo dnf install sqlite-devel sqlite-tcl sqlite-jdbc# clone the repo
git clone https://github.com/forumulator/cdobs
mkdir cdobs/build
cd cdobs/build/
# Run cmake to create makefile
cmake ..
makeThis will create the executable cdobs/build/src/cdobs
Debug mode build
cd cdobs/build/
cmake ..
make debugAny output written to stream dout will output to console in this mode.
- Init
- Create Bucket
- Delete Bucket
- List Buckets
- Put Object (Large and small objects)
- Delete Object
- List objects in bucket
# initialize the db file
./cdobs init
# Create a bucket named b1
./cdobs bucket create b1
# List all buckets
./cdobs bucket
# Put object named makefile, with contents on Makefile in b1
./cdobs object put -b b1 -f Makefile makefile
# List objects in bucket b1
./cdobs object list -b b1
# Delete object makafile in bucket b1
./cdobs object delete -b b1 makefile
# Delete bucekt b1
./cdobs bucket delete b1