|
@ -78,7 +78,7 @@ |
|
|
type="checkbox" |
|
|
type="checkbox" |
|
|
class="rounded border-gray-300" |
|
|
class="rounded border-gray-300" |
|
|
/> |
|
|
/> |
|
|
<span class="text-sm">Return Raw Results</span> |
|
|
<span class="text-sm">Return Raw Results (only raw for queries)</span> |
|
|
</label> |
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="sqlResult" class="mt-4"> |
|
|
<div v-if="sqlResult" class="mt-4"> |
|
@ -975,13 +975,13 @@ export default class Help extends Vue { |
|
|
async executeSql() { |
|
|
async executeSql() { |
|
|
try { |
|
|
try { |
|
|
const isSelect = this.sqlQuery.trim().toLowerCase().startsWith("select"); |
|
|
const isSelect = this.sqlQuery.trim().toLowerCase().startsWith("select"); |
|
|
|
|
|
|
|
|
if (this.returnRawResults) { |
|
|
if (this.returnRawResults) { |
|
|
// Use direct platform service methods for raw, unparsed results |
|
|
// Use direct platform service methods for raw, unparsed results |
|
|
if (isSelect) { |
|
|
if (isSelect) { |
|
|
this.sqlResult = await this.$dbQuery(this.sqlQuery); |
|
|
this.sqlResult = await this.$dbRawQuery(this.sqlQuery); |
|
|
} else { |
|
|
} else { |
|
|
this.sqlResult = await this.$dbExec(this.sqlQuery); |
|
|
this.sqlResult = await this.$exec(this.sqlQuery); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// Use methods that normalize the result objects |
|
|
// Use methods that normalize the result objects |
|
@ -991,7 +991,7 @@ export default class Help extends Vue { |
|
|
this.sqlResult = await this.$exec(this.sqlQuery); |
|
|
this.sqlResult = await this.$exec(this.sqlQuery); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
logger.log("Test SQL Result:", this.sqlResult); |
|
|
logger.log("Test SQL Result:", this.sqlResult); |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
logger.error("Test SQL Error:", error); |
|
|
logger.error("Test SQL Error:", error); |
|
|