We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The RESTful connection allows users do not to specify the database name. But running the following code piece will get an error "no auth info input".
using IoTSharp.Data.Taos; namespace Demo { class Program { private static void Main() { var builder = new TaosConnectionStringBuilder() { DataSource = "127.0.0.1", DataBase = null, Username = "root", Password = "taosdata", Port = 6041, Protocol = "RESTful" }; string configDir = "/etc/taos"; var connection = new TaosConnection(builder.ConnectionString, configDir); try { connection.Open(); var cmd = connection.CreateCommand(); cmd.CommandText = "show databases"; var res = cmd.ExecuteReader(); while (res.Read()) { Console.WriteLine(res.GetString(0)); } } catch (Exception ex) { Console.WriteLine(ex.Message); } finally { connection.Close(); } } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The RESTful connection allows users do not to specify the database name. But running the following code piece will get an error "no auth info input".
The text was updated successfully, but these errors were encountered: