#include #include #include using namespace std; struct VID { int64_t Vid; int64_t vlen; string sid; int64_t level; XPACK(A(Vid, "db:vid"), O(vlen, sid, level)); }; int main(int argc, char **argv) { (void)argc; char *errMsg = NULL; sqlite *pDB = sqlite_open("./test.db", 0, &errMsg); if (NULL == pDB) { cout<<"open sqlite db fail:"<