aboutsummaryrefslogtreecommitdiff
path: root/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.cpp')
-rw-r--r--client/main.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/client/main.cpp b/client/main.cpp
index 157abe6..b70733d 100644
--- a/client/main.cpp
+++ b/client/main.cpp
@@ -24,7 +24,21 @@ int main(int argc, char *argv[])
dbRef = QSqlDatabase::addDatabase("QMYSQL");
- w.show();
+// QString input = "000e,1d,2f,28\n000d,1d,2f,28\n000c,1d,2f,29\n000b,1d,2f,28\n000a,1d,2f,2a";
+// CSV_Import import;
+
+
+// QString output = "INSERT INTO `WSdb`.`tblMain` () VALUES ";
+// QVector<QString> list = input.split("\n");
+// for (int i = 0; i < list.size(); ++i) {
+// output.append(import.csvToSql(list[i]));
+// if (i+1 < list.size()){
+// output.append(",");
+// }
+// }
+// qDebug() << output;
+
+ w.show();
return a.exec();
}