Skip to content

cursusdb/cursusdb-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }
}