新增sql连接,目前支持mysql、sqlite、oracle连接以及相关数据库操作

This commit is contained in:
taocong
2026-06-26 10:36:47 +08:00
commit 903d805f31
238 changed files with 86008 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#include "src/mainwindow/mainwindow.h"
#include "ElaApplication.h"
#include "src/utils/configmanager.h"
#include <QApplication>
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QString basePath = QCoreApplication::applicationDirPath();
qputenv("QT_PLUGIN_PATH", basePath.toUtf8());
// QODBC Unicode 模式: 规避 Oracle char/varchar2 字段读取 NULL 问题
qputenv("QODBC_USE_UNICODE", "1");
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":resources/images/gjx.png"));
eApp->init();
QCoreApplication::addLibraryPath(basePath);
QCoreApplication::addLibraryPath(basePath + "/sqldrivers");
ConfigManager::instance()->loadConfig(basePath);
MainWindow w;
w.show();
return a.exec();
}