Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 668 Bytes

readme.md

File metadata and controls

30 lines (24 loc) · 668 Bytes

CursusDB C# Native Client Package

nuget

dotnet add package CursusDB --version 1.1.0

Example

CursusDB.Client client = new CursusDB.Client("0.0.0.0", 7681, "username", "password", false);

if (client != null) {
    try {
        string connectResponse = client.Connect();
        Console.WriteLine(connectResponse);

        try {
            string queryResponse = client.Query("ping;");
            Console.WriteLine(queryResponse);

            client.Close();
        } catch(CursusDB.Client.QueryException ex) {
            Console.WriteLine(ex);
        }
        
    } catch(Exception ex) {
        Console.WriteLine(ex);
    }
}