A command-line tool to export FoundationDB stored Protocol buffers to ClickhouseDB.
N/A
fdb-ch [command]
fdb-ch [command] help
The mapping file is used to bind proto messages to table definitions as well as specifying the range of keys to export.
[
{
"from": "users",
"to": "users\\xFF",
"proto": "protos.User",
"table": "default.users"
}
]
fdb-ch setup view
fdb-ch setup set --cluster-file /etc/foundationdb/fdb.cluster
fdb-ch setup set --clickhouse-url http://localhost:8083
fdb-ch setup set --proto-file ~/demo.proto
fdb-ch setup set --mapping-file ~/mapping.json
Export with logs on
RUST_LOG=info fdb-ch export
- A few unsupported proto types
- Edge cases with nested objects