We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7107ce8 commit ed63464Copy full SHA for ed63464
src-tauri/src/postgres.rs
@@ -66,6 +66,11 @@ pub async fn get_sql_result(
66
let client = client.as_ref().unwrap();
67
68
let rows = client.query(sql.as_str(), &[]).await.unwrap();
69
+
70
+ if rows.is_empty() {
71
+ return Ok((Vec::new(), Vec::new()));
72
+ }
73
74
let columns = rows
75
.first()
76
.unwrap()
src-tauri/tauri.conf.json
@@ -8,7 +8,7 @@
8
},
9
"package": {
10
"productName": "Rust SQL GUI",
11
- "version": "0.0.1"
+ "version": "1.0.0.alpha"
12
13
"tauri": {
14
"allowlist": {
0 commit comments