usql update

usql is still very primitive..it just barely works
This commit is contained in:
2021-07-23 00:00:39 +02:00
parent 4f113ab2c5
commit 5005644d98
26 changed files with 877 additions and 472 deletions

View File

@@ -19,11 +19,11 @@ MlValue uSQL::ivaluize(const usql::Table *table) {
auto c = row.ithColumn(i);
auto type = table->m_col_defs[i].type;
if (type == ColumnType::integer_type) {
columns.push_back(MlValue((long)c->integerValue()));
columns.push_back(MlValue(c->getIntValue()));
} else if (type == ColumnType::float_type) {
columns.push_back(MlValue((double)c->floatValue()));
columns.push_back(MlValue(c->getDoubleValue()));
} else {
columns.push_back(MlValue::string(c->stringValue()));
columns.push_back(MlValue::string(c->getStringValue()));
}
}
rows.push_back(columns);