# taibai-cpp **Repository Path**: coraldane/taibai-cpp ## Basic Information - **Project Name**: taibai-cpp - **Description**: 用于taibai这个数据库的cpp驱动 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-09 - **Last Updated**: 2026-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # taibai-cpp C++17 driver for Monax, compatible with the taibai wire protocol. ## Build ```bash cmake -S . -B build -DCMAKE_BUILD_TYPE=Release cmake --build build ``` The default build creates `libtaibai_cpp` and the `taibai_query` example. ## Use ```cpp #include #include int main() { taibai::Client client; client.connect("127.0.0.1", 5151); client.login("root", "", "main"); taibai::RecordBatch batch; batch.add_string_column("security_id", {"600000.SH", "000001.SZ"}); batch.add_int32_column("trans_date", {20260610, 20260610}); batch.add_float64_column("last_price", {12.34, 10.01}); client.bulk_insert_columnar("stock_l2_snapshot", batch); } ``` ## Install ```bash cmake --install build --prefix /usr/local ``` Downstream CMake projects can link the installed target: ```cmake find_package(taibai_cpp CONFIG REQUIRED) target_link_libraries(app PRIVATE taibai::taibai_cpp) ```