The idea of this app is to showcase how you can use column families in RocksDB to store data with different schemas.
Method | Path | Description |
---|---|---|
POST | /api/rocksdb/createtable | Method to create table. |
POST | /api/rocksdb/put | Method to insert data in a given table. |
GET | api/rocksdb/get | Method to get information from give table |
DELETE | api/rocksdb/delete | Method to delete keys from given table |
{
"name": "USERS",
"columns": [
{
"name": "USERNAME",
"key": true,
"type": "VARCHAR"
},
{
"name": "EMAIL",
"key": true,
"type": "INT"
},
{
"name": "JOB",
"type": "VARCHAR"
},
{
"name": "AGE",
"type": "INT"
}
]
}
{ "name": "USERS", "columns": [ { "name": "USERNAME", "value": "lrpt" }, { "name": "EMAIL", "value": "[email protected]" }, { "name": "JOB", "value": "Software Engineer" }, { "name": "AGE", "value": 29 } ] }
{ "name": "USERS", "columns": [ { "name": "USERNAME", "value": "lrpt" }, { "name": "EMAIL", "value": "[email protected]" } ] }
{ "name": "USERS", "columns": [ { "name": "USERNAME", "value": "lrpt" }, { "name": "EMAIL", "value": "[email protected]" } ] }