工作中用到的数据库类型为Oracle和Sql Server.还有SqlLite这种轻型数据库。
#include<iostream>
#include<boost/filesystem.hpp>//包含boost的nuget包
#include<SQLiteCpp/Database.h>//前提是含有sqlite相关的nuget包
#include<boost/uuids/random_generator.hpp>
class TempDBEnv
{
public:
TempDBEnv()
{
boost::uuids::random_generator uuid; //定义一个随机数对象
//利用boost库,创建临时目录,并补全path
m_tempPath = boost::filesystem::