V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hunk
V2EX  ›  问与答

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

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