首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

c++操作Clickhouse数据库读取表数据写入文件

后端 78.84KB 30 需要积分: 1
立即下载

资源介绍:

c++操作Clickhouse数据库读取表数据写入文件,c++操作Clickhouse很快,配合调度工具,毫秒级就能完成海量数据写入,编译需要gcc 8.0以上,编译后运行gcc 4.2就可以了,经过大量实践,效果很好。 1.升级到gcc8.0以上编译,gcc11.0以上也可以 2.注意cmake的版本,至少3.20以上 3.在项目根目录下简历build目录,然后cmake ./之后,在make 4.运行时注意传递的参数 有任何问题,可以联系。
SET ( clickhouse-cpp-lib-src base/compressed.cpp base/input.cpp base/output.cpp base/platform.cpp base/socket.cpp base/wire_format.cpp columns/array.cpp columns/date.cpp columns/decimal.cpp columns/enum.cpp columns/factory.cpp columns/ip4.cpp columns/ip6.cpp columns/lowcardinality.cpp columns/lowcardinalityadaptor.h columns/nullable.cpp columns/numeric.cpp columns/string.cpp columns/tuple.cpp columns/uuid.cpp columns/itemview.cpp types/type_parser.cpp types/types.cpp block.cpp client.cpp query.cpp ) IF (WITH_OPENSSL) LIST(APPEND clickhouse-cpp-lib-src base/sslsocket.cpp) ENDIF () ADD_LIBRARY (clickhouse-cpp-lib SHARED ${clickhouse-cpp-lib-src}) SET_TARGET_PROPERTIES(clickhouse-cpp-lib PROPERTIES LINKER_LANGUAGE CXX) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib absl-lib cityhash-lib lz4-lib ) ADD_LIBRARY (clickhouse-cpp-lib-static STATIC ${clickhouse-cpp-lib-src}) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib-static absl-lib cityhash-lib lz4-lib ) IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # there is a problem with __builtin_mul_overflow call at link time # the error looks like: ... undefined reference to `__muloti4' ... # caused by clang bug https://bugs.llvm.org/show_bug.cgi?id=16404 # explicit linking to compiler-rt allows to workaround the problem set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} --rtlib=compiler-rt") # some workaround for linking issues on linux: # /usr/bin/ld: CMakeFiles/simple-test.dir/main.cpp.o: undefined reference to symbol '_Unwind_Resume@@GCC_3.0' # /usr/bin/ld: /lib/x86_64-linux-gnu/libgcc_s.so.1: error adding symbols: DSO missing from command line # FIXME: that workaround breaks clang build on mingw TARGET_LINK_LIBRARIES (clickhouse-cpp-lib gcc_s) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib-static gcc_s) ENDIF () INSTALL (TARGETS clickhouse-cpp-lib clickhouse-cpp-lib-static ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) # general INSTALL(FILES block.h DESTINATION include/clickhouse/) INSTALL(FILES client.h DESTINATION include/clickhouse/) INSTALL(FILES error_codes.h DESTINATION include/clickhouse/) INSTALL(FILES exceptions.h DESTINATION include/clickhouse/) INSTALL(FILES protocol.h DESTINATION include/clickhouse/) INSTALL(FILES query.h DESTINATION include/clickhouse/) # base INSTALL(FILES base/buffer.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/compressed.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/input.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/output.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/platform.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/singleton.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/socket.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/string_utils.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/string_view.h DESTINATION include/clickhouse/base/) INSTALL(FILES base/wire_format.h DESTINATION include/clickhouse/base/) # columns INSTALL(FILES columns/array.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/column.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/date.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/decimal.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/enum.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/factory.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/ip4.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/ip6.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/itemview.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/lowcardinality.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/nullable.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/numeric.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/string.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/tuple.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/utils.h DESTINATION include/clickhouse/columns/) INSTALL(FILES columns/uuid.h DESTINATION include/clickhouse/columns/) # types INSTALL(FILES types/type_parser.h DESTINATION include/clickhouse/types/) INSTALL(FILES types/types.h DESTINATION include/clickhouse/types/) IF (WITH_OPENSSL) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib OpenSSL::SSL) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib-static OpenSSL::SSL) ENDIF () IF (WIN32 OR MINGW) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib wsock32 ws2_32) TARGET_LINK_LIBRARIES (clickhouse-cpp-lib-static wsock32 ws2_32) ENDIF ()

资源文件列表:

db-to-data-rw.zip 大约有73个文件
  1. clickhouse/
  2. clickhouse/base/
  3. clickhouse/base/buffer.h 116B
  4. clickhouse/base/compressed.cpp 5.34KB
  5. clickhouse/base/compressed.h 905B
  6. clickhouse/base/input.cpp 1.78KB
  7. clickhouse/base/input.h 2.26KB
  8. clickhouse/base/output.cpp 2.18KB
  9. clickhouse/base/output.h 3.19KB
  10. clickhouse/base/platform.cpp 22B
  11. clickhouse/base/platform.h 783B
  12. clickhouse/base/singleton.h 127B
  13. clickhouse/base/socket.cpp 9.97KB
  14. clickhouse/base/socket.h 3.39KB
  15. clickhouse/base/sslsocket.cpp 11.07KB
  16. clickhouse/base/sslsocket.h 2.51KB
  17. clickhouse/base/string_utils.h 414B
  18. clickhouse/base/string_view.h 3.44KB
  19. clickhouse/base/wire_format.cpp 2.17KB
  20. clickhouse/base/wire_format.h 2.28KB
  21. clickhouse/block.cpp 2.49KB
  22. clickhouse/block.h 2.33KB
  23. clickhouse/client.cpp 22.97KB
  24. clickhouse/client.h 9.34KB
  25. clickhouse/CMakeLists.txt 4.65KB
  26. clickhouse/columns/
  27. clickhouse/columns/array.cpp 2.36KB
  28. clickhouse/columns/array.h 1.24KB
  29. clickhouse/columns/column.h 2.09KB
  30. clickhouse/columns/date.cpp 4.97KB
  31. clickhouse/columns/date.h 3.78KB
  32. clickhouse/columns/decimal.cpp 6.54KB
  33. clickhouse/columns/decimal.h 1019B
  34. clickhouse/columns/enum.cpp 2.67KB
  35. clickhouse/columns/enum.h 1.51KB
  36. clickhouse/columns/factory.cpp 6.49KB
  37. clickhouse/columns/factory.h 256B
  38. clickhouse/columns/ip4.cpp 2.25KB
  39. clickhouse/columns/ip4.h 1.54KB
  40. clickhouse/columns/ip6.cpp 2.45KB
  41. clickhouse/columns/ip6.h 1.53KB
  42. clickhouse/columns/itemview.cpp 2.03KB
  43. clickhouse/columns/itemview.h 2.23KB
  44. clickhouse/columns/lowcardinality.cpp 13.08KB
  45. clickhouse/columns/lowcardinality.h 4.61KB
  46. clickhouse/columns/lowcardinalityadaptor.h 1.69KB
  47. clickhouse/columns/nothing.h 1.78KB
  48. clickhouse/columns/nullable.cpp 2.08KB
  49. clickhouse/columns/nullable.h 1.21KB
  50. clickhouse/columns/numeric.cpp 2.58KB
  51. clickhouse/columns/numeric.h 1.88KB
  52. clickhouse/columns/string.cpp 7.14KB
  53. clickhouse/columns/string.h 3.01KB
  54. clickhouse/columns/tuple.cpp 1.87KB
  55. clickhouse/columns/tuple.h 1018B
  56. clickhouse/columns/utils.h 393B
  57. clickhouse/columns/uuid.cpp 1.54KB
  58. clickhouse/columns/uuid.h 1.21KB
  59. clickhouse/error_codes.h 694B
  60. clickhouse/exceptions.h 585B
  61. clickhouse/protocol.h 2.51KB
  62. clickhouse/query.cpp 402B
  63. clickhouse/query.h 4.25KB
  64. clickhouse/types/
  65. clickhouse/types/types.cpp 9.66KB
  66. clickhouse/types/types.h 7.52KB
  67. clickhouse/types/type_parser.cpp 7.66KB
  68. clickhouse/types/type_parser.h 1.62KB
  69. CMakeLists.txt 976B
  70. GetPropertyUtils.cpp 4.3KB
  71. GetPropertyUtils.h 1.1KB
  72. info.conf 112B
  73. main.cpp 6.17KB
0评论
提交 加载更多评论
其他资源 QTableView使用示例-Qt模型视图代理(Model-View-Delegate)使用示例
本实例基于QT的委托代理机制实现的Qt模型视图代理(Model-View-Delegate)使用示例。以QTableView为基础,实现表头排序,列表复选框,插入按钮、下拉框、进度条。 模型视图委托(MVD)是Qt中特有的设计模式,类似MVC设计模式,将MVC设计模式中的Controller当做MVD中的Delegate,两者的概念基本相同。不同的是委托不是独立存在,而是包含在视图里面。 模型视图委托设计模式中,模型负责存储和管理数据;视图负责显示数据,其中界面的框架和基础信息是视图负责,具体数据的显示是委托负责;委托不仅仅负责数据的显示,还有一个重要的功能是负责数据的编辑,如在视图中双击就可以编辑数据。
F4-OOP.zip,面向对象编程
F4-OOP.zip,面向对象编程
F4-Log.zip调试打印
F4-Log.zip调试打印
F103-Capture.zip
输入捕获
altera usb3.0开发板资料
usb3.0+altera fpga
“华数杯”全国大学生数学建模竞赛历年优秀论文
基于遗传算法的环形振荡器优化设计 摘要 数字芯片是高端制造业的核心基石,随着工艺尺寸的不断缩小,数字芯片的优化设 计变得尤为要。本文主要以数字芯片中环形振荡器面积最小、功耗最小以及功耗最小时 芯片上能够安放环形振荡器的最大数量为优化目标,建立一系列目标规划模型,基于遗 传算法进行反相器尺寸的设计和求解最优个数,进而使得环形振荡器能够高效运行。 针对问题一,查阅相关文献资料,建立了计算环形振荡器频率的数学模型,然后根 据各指标相关参数,利用 MATLAB 软件,求得 10 种不同设计方案下环形振荡器的输出 频率分别为 15.4611、3.8653、0.9663、4.7629、1.1907、0.2977、3.4868、0.8717、0.3874 和 0.0687 MHz 。 针对问题二,在问题一计算分析的基础上,建立了以环形振荡器最小面积为目标函 数的单目标非线性规划模型,然后结合问题一中的数学模型和各指标的参数值确定约束 条件,采用遗传算法,在约束条件下进行了环形振荡器面积全局最小寻优,最终求解得 出:当环形振荡器的输出频率为10MHz ,反相器个数为 51,反相器中的 PMOS 晶体管
75f0bc5e2c05cb05588cda1329573f79.zip
75f0bc5e2c05cb05588cda1329573f79.zip
video speed controller
Google视频加速插件