summaryrefslogtreecommitdiff
path: root/kurier/MySQL.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-10-12 20:59:25 +0200
committeremkael <emkael@tlen.pl>2018-10-12 20:59:25 +0200
commit74202e8d091886e703af302dff8ee59560d1f85a (patch)
treead84ed76878b470050cf0151ed455ca9ba4968ef /kurier/MySQL.cs
parent0550305e3f1f2558588b6b87a8c1b4004437ad3b (diff)
Listing MySQL DBs
Diffstat (limited to 'kurier/MySQL.cs')
-rw-r--r--kurier/MySQL.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/kurier/MySQL.cs b/kurier/MySQL.cs
index cafb5c8..81a3a0b 100644
--- a/kurier/MySQL.cs
+++ b/kurier/MySQL.cs
@@ -61,6 +61,12 @@ namespace kurier
return "";
}
+ public MySqlDataReader select(string query)
+ {
+ MySqlCommand comm = new MySqlCommand(query, conn);
+ return comm.ExecuteReader();
+ }
+
public static string getHost() { return Properties.Settings.Default.HOST; }
public static string getUser() { return Properties.Settings.Default.USER; }
public static string getPass() { return Properties.Settings.Default.PASS; }