From 74202e8d091886e703af302dff8ee59560d1f85a Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 12 Oct 2018 20:59:25 +0200 Subject: Listing MySQL DBs --- kurier/MySQL.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kurier/MySQL.cs') 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; } -- cgit v1.2.3