hunk
V2EX  ›  问与答

请教在 c++回调函数中如何初始化数据库连接?

  •  
  •   hunk · Jan 2, 2023 · 1303 views
    This topic created in 1253 days ago, the information mentioned may be changed or developed.
    想在回调函数中写入 TDengine 数据,但不知道数据库连接在主程序中初始化作为参数传入加成调函数好,还是回调函数中初始化?
    原来程序 demo 中是写入文本文件,不存在此问题。刚刚写 c++,有些思路上还没吃透,谢谢。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:07 · PVG 10:07 · LAX 19:07 · JFK 22:07
    ♥ Do have faith in what you're doing.